text string | label int64 |
|---|---|
[CLS]
00402000 <.text>:
402000: e4 e1 in $0xe1,%al
402002: 06 push %es
402003: 00 00 add %al,(%eax)
402005: 00 00 add %al,(%eax)
402007: 00 48 00 add %cl,0x0(%eax)
40200a: 00 00 add %al,(%eax)
40200c: 02 00... | 1 |
[CLS]
4021a9: 00 0a add %cl,(%edx)
4021ab: 00 02 add %al,(%edx)
4021ad: 28 2d 00 00 0a 00 sub %ch,0xa0000
4021b3: 2a 13 sub (%ebx),%dl
4021b5: 30 04 00 xor %al,(%eax,%eax,1)
4021b8: c7 01 00 00 04 00 movl $0x40000,(%ecx)
4021be: 00 11... | 1 |
[CLS]
402343: 02 06 add (%esi),%al
402345: 73 33 jae 0x40237a
402347: 00 00 add %al,(%eax)
402349: 0a 73 34 or 0x34(%ebx),%dh
40234c: 00 00 add %al,(%eax)
40234e: 0a 28 or (%eax),%ch
402350: 35 00 00 0a 00 ... | 1 |
[CLS]
4024a2: 00 00 add %al,(%eax)
4024a4: 0a 00 or (%eax),%al
4024a6: 73 26 jae 0x4024ce
4024a8: 00 00 add %al,(%eax)
4024aa: 0a 0b or (%ebx),%cl
4024ac: 07 pop %es
4024ad: 03 6f 4b add ... | 1 |
[CLS]
4025f3: 28 29 sub %ch,(%ecx)
4025f5: 00 00 add %al,(%eax)
4025f7: 0a 72 5b or 0x5b(%edx),%dh
4025fa: 00 00 add %al,(%eax)
4025fc: 70 6f jo 0x40266d
4025fe: 36 00 00 add %al,%ss:(%eax)
402601: 0a 74 20 00 ... | 1 |
[CLS]
402764: 0a 00 or (%eax),%al
402766: 08 6f 57 or %ch,0x57(%edi)
402769: 00 00 add %al,(%eax)
40276b: 0a 09 or (%ecx),%cl
40276d: 6f outsl %ds:(%esi),(%dx)
40276e: 58 pop %eax
40276f: 00 00 ... | 1 |
[CLS]
4028c0: 02 00 add (%eax),%al
4028c2: 68 00 d4 3c 01 push $0x13cd400
4028c7: 2d 00 00 00 00 sub $0x0,%eax
4028cc: ee out %al,(%dx)
4028cd: 02 73 68 add 0x68(%ebx),%dh
4028d0: 00 00 add %al,(%eax)
4028d2: 0a 7d 08 ... | 1 |
[CLS]
402a27: 00 0a add %cl,(%edx)
402a29: 02 7b 0b add 0xb(%ebx),%bh
402a2c: 00 00 add %al,(%eax)
402a2e: 04 6f add $0x6f,%al
402a30: 77 00 ja 0x402a32
402a32: 00 0a add %cl,(%edx)
402a34: 13 04 12 ... | 1 |
[CLS]
402b86: 04 6f add $0x6f,%al
402b88: 77 00 ja 0x402b8a
402b8a: 00 0a add %cl,(%edx)
402b8c: 13 04 12 adc (%edx,%edx,1),%eax
402b8f: 04 28 add $0x28,%al
402b91: 78 00 js 0x402b93
402b93: 00 0a ... | 1 |
[CLS]
402cd5: 00 28 add %ch,(%eax)
402cd7: 74 00 je 0x402cd9
402cd9: 00 0a add %cl,(%edx)
402cdb: 73 75 jae 0x402d52
402cdd: 00 00 add %al,(%eax)
402cdf: 0a 6f 76 or 0x76(%edi),%ch
402ce2: 00 00 ... | 1 |
[CLS]
402e4d: 02 7b 0b add 0xb(%ebx),%bh
402e50: 00 00 add %al,(%eax)
402e52: 04 16 add $0x16,%al
402e54: 6f outsl %ds:(%esi),(%dx)
402e55: 90 nop
402e56: 00 00 add %al,(%eax)
402e58: 0a 00 or... | 1 |
SMU_MalwareDetection PE Assembly Dataset
This dataset consists of assembly code fragments extracted from malicious and benign Portable Executable (PE) files. It was created to support deep learning-based malware classification. Assembly code was segmented using a sliding window technique to preserve contextual information.
⚠️ Note: Class Imbalance
This dataset has a class imbalance, with fewer benign samples (0 label) compared to malware samples (1 label).
While the difference is not extreme, users should be aware of this imbalance and consider applying appropriate techniques (e.g., class weighting, sampling strategies) during training or evaluation.
Dataset Description
The dataset includes assembly code segments derived from two types of PE files:
Malware Samples
Malicious PE files were downloaded from MalwareBazaar, specifically focusing on samples uploaded in 2020. Each file was disassembled into assembly code using theobjdumpcommand on Ubuntu.Benign Samples
Benign PE files were collected from regular executable files stored on a PC using PowerShell. These files were also disassembled usingobjdumpto extract assembly code in the same manner.
Sliding Window Preprocessing
To prepare the data for machine learning:
- Assembly code was segmented using a sliding window approach:
- Window Size: 350 lines
- Stride: 175 lines (50% overlap)
- This setup ensures that the segments preserve contextual relationships between instructions.
- Importantly, all segments generated from a single file are kept together to maintain file-level grouping and avoid mixing across files.
- No tokenization was applied; the raw assembly code was used as-is during segmentation.
Data Format
Each entry in the dataset includes:
assembly: A segment of assembly code extracted via sliding windowlabel: A binary classification label indicatingmalwareorbenign
Intended Use
This dataset is suitable for the following tasks:
- Malware classification using NLP-based models (e.g., Transformer-based models)
- Research on malware detection using sliding window context segmentation
Tools Used
objdump(for extracting assembly code)- PowerShell (for collecting benign files)
- Python scripts (for sliding window segmentation and maintaining per-file chunk structure)
- Downloads last month
- 75