joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4707e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x470842
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004708c0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x47082a
lea eax, [ebp - 4]
call fcn.004708c0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47082c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470849
lea eax, [ebp - 4]
call fcn.00404a78
ret

Function at 0x470850
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x4708b4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004708c0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a46c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4708bb
lea eax, [ebp - 4]
call fcn.00404a78
ret

Function at 0x470e74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x470f6d
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00470574
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a080
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00471844
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409f40
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004718bc
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470f74
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a9c
ret
Function at 0x470f7c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x471085
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00470574
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x47104b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a080
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00471844
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409f40
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004718bc
jmp 0x47105d
xor edx, edx
mov eax, ebx
call fcn.00471844
xor edx, edx
mov eax, ebx
call fcn.004718bc
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47108c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a9c
ret
Function at 0x47484c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4749bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474998
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404c60
lea eax, [ebp - 0x118]
mov edx, 0x4749d4
call fcn.00404d44
mov eax, dword [ebp - 0x118]
call fcn.00404f3c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47490a
lea eax, [ebp - 0x111]
call fcn.0040a244
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404b68
jmp 0x474911
mov eax, esi
call fcn.00404a78
cmp bl, 0x61
jae 0x474932
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e254
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404acc
jmp 0x47494c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e1c0
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404acc
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4749e0
call fcn.0040a95c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404acc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47499f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x47d678
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0047d8b4
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0047d8b4
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x47d6ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x47d712
inc esi
mov eax, edi
call fcn.0047d6d0
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.0047d678
inc ebx
dec esi
jne 0x47d6fb
pop edi
pop esi
pop ebx
ret
Function at 0x47d7a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x47d81e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0047d718
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0047d6d0
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0047d678
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x47d7e8
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d825
lea eax, [ebp - 4]
call fcn.00404a78
ret
Function at 0x47e4b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e69e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x47e65a
mov eax, dword [ebp - 4]
call fcn.0047fe60
cmp ebx, eax
jge 0x47e65a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.0046f54c
mov edx, dword [0x470914]
call fcn.00403ce4
mov esi, eax
mov eax, esi
call fcn.004717d8
test al, al
je 0x47e650
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x47e644
xor eax, eax
push ebp
push 0x47e63d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047ea70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041d570
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004051c4
mov eax, dword [ebp - 8]
call fcn.00404f94
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047e834
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e688
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x47e63c
mov eax, dword [ebp - 4]
call fcn.0047eaf4
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a46c
jmp 0x47e688
mov eax, dword [ebp - 8]
call fcn.00404a78
jmp 0x47e688
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409970
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x417fe4]
call fcn.0040d3f4
call fcn.004043e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e6a5
lea eax, [ebp - 0x54]
call fcn.00404a78
ret
Function at 0x48c93c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48c9f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404f3c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x48c97e
call fcn.00404494
jmp 0x48c9fa
mov eax, ebx
call fcn.00402d2c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404f3c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x48c9a7
call fcn.00404494
jmp 0x48c9fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48ca08
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x48c9c8
call fcn.00404494
jmp 0x48c9fa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c9fa
mov eax, dword [ebp - 8]
call fcn.00402d48
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48cc54
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48ccbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.0040345c
test ebx, ebx
jne 0x48cc91
mov word [ebp - 2], 0
lea ebx, [ebp - 2]
or esi, 0x4008
push esi
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ccc8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48cfa8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x48d154
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48d14c
xor eax, eax
push ebp
push 0x48d145
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x48d160
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x48d020
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x48d160
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x48d061
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.00426e34
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.00426e34
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.00426e34
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.00426e34
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x4f0194], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d14c
cmp dword [ebp - 4], 0
je 0x48d144
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48d164
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.0048c930
test al, al
je 0x48d191
cmp dword [0x4f5698], 0x40047
jl 0x48d191
cmp byte [0x4f0194], 0
jne 0x48d191
call fcn.0048cfa8
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4f0198]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x48d1f4
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x48d1e9
mov word [esp], 0
mov eax, dword [esi*4 + 0x4f0198]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4a934c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a9354
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a94a1
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4a93aa
lea edx, [ebp - 4]
mov eax, dword [0x4f15b0]
call fcn.00406b78
cmp ebx, 1
jbe 0x4a93e1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4a94b8
call fcn.0040a95c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404d44
jmp 0x4a93e1
lea eax, [ebp - 4]
mov edx, 0x4a94c8
call fcn.00404b10
cmp ebx, 1
jbe 0x4a93e1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4a94d8
call fcn.0040a95c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404d44
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404d88
mov eax, dword [ebp - 0x18]
call fcn.00404f3c
push eax
call sub.kernel32.dll_CreateDirectoryA_1
test eax, eax
jne 0x4a9469
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x4a9419
mov bl, 1
jmp 0x4a9479
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040cb80
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x4f195c]
call fcn.00406b78
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.0048df90
mov eax, dword [ebp - 0x1c]
movzx ecx, word [0x4a94dc]
xor edx, edx
call fcn.0044139c
mov bl, 2
jmp 0x4a9479
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00404acc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a94a8
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404a9c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a9c
ret

Function at 0x4a9b1c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x4a9b3e
mov edx, ebx
mov eax, dword [0x4f1958]
call fcn.00406b78
jmp 0x4a9b75
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4a9b6e
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.00404ce8
jmp 0x4a9b75
mov eax, ebx
call fcn.00404a78
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4aa4f8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4aa52b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4aa524
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404f2c
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x4010e4]
call fcn.004057d0
xor eax, eax
push ebp
push 0x4aa6b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4aa681
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x4aa6e0
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 0x158]
call fcn.00404f3c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aa675
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4aa65a
test al, 2
jne 0x4aa65a
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x4aa6e0
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404ce8
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.0048cab8
call fcn.00407dbc
test al, al
je 0x4aa618
or edi, 0xffffffff
jmp 0x4aa627
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0048cc54
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0048ca1c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404ce8
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4aa5ad
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4aa570
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa6c0
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00404a9c
lea eax, [ebp - 8]
call fcn.00404a78
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010e4]
call fcn.00405690
ret
Function at 0x4ab820
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ab8ed
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ab8d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x4f1ab0]
cmp dword [eax + 4], 0x60000
jl 0x4ab870
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004ab980
mov eax, dword [ebp - 4]
call fcn.004a96d0
test al, al
je 0x4ab8a0
mov eax, dword [ebp - 4]
call fcn.00404f3c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4ab8a0
and dword [ebp - 8], 0xfffbffff
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x468]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab8d7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4af3ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404f3c
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4af42e
dec eax
je 0x4af40f
sub eax, 2
je 0x4af42e
jmp 0x4af43f
movzx eax, byte [ebx]
call fcn.0048e434
test al, al
je 0x4af43f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00403d30
jmp 0x4af43f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.00403d30
pop esi
pop ebx
pop ebp
ret

Function at 0x4af444
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af4f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x430], 0
jne 0x4af492
push 0x465
mov eax, dword [ebp - 4]
call fcn.00457bd8
mov ecx, eax
mov dl, 1
mov eax, dword [0x4abb1c]
call fcn.004abb88
mov edx, dword [ebp - 4]
mov dword [edx + 0x430], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.004ac068
lea eax, [ebp - 8]
mov edx, 0x4af508
call fcn.00404b10
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4af4dd
test bl, 1
je 0x4af4d6
lea eax, [ebp - 8]
call fcn.00404f94
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004af3ec
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4af4ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af4fa
lea eax, [ebp - 8]
call fcn.00404a78
ret