joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bfd48
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x4bfef4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bfeec
xor eax, eax
push ebp
push 0x4bfee5
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 0x4bff00
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x4bfdc0
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 0x4bff00
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x4bfe01
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.0042b348
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.0042b348
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.0042b348
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.0042b348
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x53ee58], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfeec
cmp dword [ebp - 4], 0
je 0x4bfee4
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 0x4bff04
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.004bf6d0
test al, al
je 0x4bff31
cmp dword [0x54de98], 0x40047
jl 0x4bff31
cmp byte [0x53ee58], 0
jne 0x4bff31
call fcn.004bfd48
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x53ee5c]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4bff94
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4bff89
mov word [esp], 0
mov eax, dword [esi*4 + 0x53ee5c]
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 0x4ce6ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4ce6da
mov eax, ebx
call fcn.004cf160
cmp dword [ebx + 0x40], 0
je 0x4ce6d3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4ce74b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4ce73d
cmp dword [ebx + 8], 0
je 0x4ce6fc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4ce70e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4ce73d
cmp dword [ebx + 8], 0
je 0x4ce6ef
cmp eax, 3
je 0x4ce721
dec eax
jne 0x4ce6ef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4ce6ef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4ce6ef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4ce769
cmp dword [ebx + 0x14], 0xcc
je 0x4ce769
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004ce774
pop ebx
ret

Function at 0x4edb28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4edb82
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004edb18
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004eb408
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004eaf20
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edb89
lea eax, [ebp - 4]
call fcn.00404f44
ret
Function at 0x4f8304
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 0x4f8475
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 0x4f8450
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.0040512c
lea eax, [ebp - 0x118]
mov edx, 0x4f848c
call fcn.00405210
mov eax, dword [ebp - 0x118]
call fcn.004053d4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4f83c2
lea eax, [ebp - 0x111]
call fcn.0040ae4c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405034
jmp 0x4f83c9
mov eax, esi
call fcn.00404f44
cmp bl, 0x61
jae 0x4f83ea
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f778
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404f98
jmp 0x4f8404
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f6e4
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404f98
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, 0x4f8498
call fcn.0040b918
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8457
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4fdabc
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.004053c4
xor eax, eax
push ebp
push 0x4fdb1a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004fdb98
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x4fdb02
lea eax, [ebp - 4]
call fcn.004fdb98
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4fdb04
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdb21
lea eax, [ebp - 4]
call fcn.00404f44
ret

Function at 0x4fdb28
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.004053c4
xor eax, eax
push ebp
push 0x4fdb8c
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.004fdb98
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b08c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdb93
lea eax, [ebp - 4]
call fcn.00404f44
ret
Function at 0x4fe14c
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.004053c4
xor eax, eax
push ebp
push 0x4fe245
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.004fd850
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.0040ac94
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004feb1c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ab54
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004feb94
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 0x4fe24c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f68
ret
Function at 0x4fe254
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.004053c4
xor eax, eax
push ebp
push 0x4fe35d
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.004fd850
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 0x4fe323
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ac94
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004feb1c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ab54
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004feb94
jmp 0x4fe335
xor edx, edx
mov eax, ebx
call fcn.004feb1c
xor edx, edx
mov eax, ebx
call fcn.004feb94
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 0x4fe364
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f68
ret

Function at 0x504d10
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.00504f4c
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.00504f4c
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x504d84
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 0x504daa
inc esi
mov eax, edi
call fcn.00504d68
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.00504d10
inc ebx
dec esi
jne 0x504d93
pop edi
pop esi
pop ebx
ret
Function at 0x504e40
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.004053c4
xor eax, eax
push ebp
push 0x504eb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00504db0
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00504d68
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00504d10
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x504e80
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504ebd
lea eax, [ebp - 4]
call fcn.00404f44
ret
Function at 0x505b50
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 0x505d36
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x505cf2
mov eax, dword [ebp - 4]
call fcn.005074f8
cmp ebx, eax
jge 0x505cf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004fc234
mov edx, dword [0x4fdbec]
call fcn.00404190
mov esi, eax
mov eax, esi
call fcn.004feab0
test al, al
je 0x505ce8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x505cdc
xor eax, eax
push ebp
push 0x505cd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00506108
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.00421710
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.00405664
mov eax, dword [ebp - 8]
call fcn.00405434
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.00505ecc
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 0x505d20
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 0x505cd4
mov eax, dword [ebp - 4]
call fcn.0050618c
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b08c
jmp 0x505d20
mov eax, dword [ebp - 8]
call fcn.00404f44
jmp 0x505d20
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.0040a478
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41bd70]
call fcn.0040e8a0
call fcn.00404894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505d3d
lea eax, [ebp - 0x54]
call fcn.00404f44
ret
Function at 0x510564
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x510586
mov edx, ebx
mov eax, dword [0x5474c8]
call fcn.00407170
jmp 0x5105bd
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x5105b6
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.004051b4
jmp 0x5105bd
mov eax, ebx
call fcn.00404f44
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x510f40
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 0x510f73
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x510f6c
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.004053c4
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x401144]
call fcn.00405c70
xor eax, eax
push ebp
push 0x511101
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x5110c9
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 8]
push 0x511128
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004052d8
mov eax, dword [ebp - 0x158]
call fcn.004053d4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5110bd
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x5110a2
test al, 2
jne 0x5110a2
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0x511128
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004051b4
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.004052d8
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.004bf858
call fcn.0040863c
test al, al
je 0x511060
or edi, 0xffffffff
jmp 0x51106f
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004bf9f4
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.004bf7bc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.004051b4
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 0x510ff5
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x510fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511108
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00404f68
lea eax, [ebp - 8]
call fcn.00404f44
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x401144]
call fcn.00405b30
ret
Function at 0x512204
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51229b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x700f0037
mov eax, dword [0x5476c4]
cmp dword [eax + 4], 0x60000
jl 0x51223c
or dword [ebp - 8], 0x400000
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00512330
mov eax, dword [ebp - 4]
call fcn.00510118
test al, al
je 0x51226c
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x51226c
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 0x5122a2
lea eax, [ebp - 4]
call fcn.00404f44
ret

Function at 0x515d8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004053d4
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x515dce
dec eax
je 0x515daf
sub eax, 2
je 0x515dce
jmp 0x515ddf
movzx eax, byte [ebx]
call fcn.004c1038
test al, al
je 0x515ddf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.004041dc
jmp 0x515ddf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xff9e
call fcn.004041dc
pop esi
pop ebx
pop ebp
ret

Function at 0x515de4
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 0x515e93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x430], 0
jne 0x515e32
push 0x465
mov eax, dword [ebp - 4]
call fcn.004633c4
mov ecx, eax
mov dl, 1
mov eax, dword [0x5124cc]
call fcn.00512538
mov edx, dword [ebp - 4]
mov dword [edx + 0x430], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call fcn.00512a18
lea eax, [ebp - 8]
mov edx, 0x515ea8
call fcn.00404fdc
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x515e7d
test bl, 1
je 0x515e76
lea eax, [ebp - 8]
call fcn.00405434
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.00515d8c
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x515e5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515e9a
lea eax, [ebp - 8]
call fcn.00404f44
ret
Function at 0x516900
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004053c4
xor eax, eax
push ebp
push 0x516a1e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5169f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.004053d4
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5169ce
test byte [ebp - 0x14c], 0x10
jne 0x5169b1
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.004051b4
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00409ad4
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x516974
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x5169da
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5169f8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x51b5f8
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, eax
movzx eax, byte [ebx + 4]
sub al, 1
jb 0x51b607
je 0x51b60c
jmp 0x51b630
mov eax, dword [ebx + 8]
pop ebx
ret
cmp dword [ebx + 8], 0
jne 0x51b62b
lea eax, [ebx + 8]
push eax
movzx eax, byte [ebx + 0xc]
push eax
mov eax, dword [0x5473d4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
pop ebx
ret
xor eax, eax
pop ebx
ret