Byte-plot CNN (2-D)
Each file becomes a 64x64 grayscale image. Code, text, padding and packed or encrypted regions look different, so a CNN can classify them and Grad-CAM can show where it looked.
Input 1x64x64
Conv3x3 16 + BN + ReLU + Pool
Conv3x3 32 + BN + ReLU + Pool
Conv3x3 64 + BN + ReLU + Pool
Conv3x3 128 + BN + ReLU (8x8 map for Grad-CAM)
GlobalAvgPool, Dropout 0.3, Linear 4
Classes: benign, packed_or_encrypted,
trojan_dropper, ransomware_like