joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4633bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c9808]
cmp byte [eax + 0xc], 0
je 0x463529
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463522
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ceca4], 0
jne 0x463410
push 0x463530
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x463538
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ceca4], eax
cmp dword [0x4c4924], 0
jne 0x46350b
push 0x463548
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c4924], eax
cmp dword [0x4c4924], 0
je 0x46350b
push 0x463554
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ceca8], eax
push 0x463564
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecac], eax
push 0x463578
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecb0], eax
push 0x463590
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecb4], eax
push 0x4635a8
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecb8], eax
push 0x4635bc
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecbc], eax
push 0x4635d4
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecc0], eax
push 0x4635ec
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecc4], eax
push 0x463608
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4cecc8], eax
push 0x463614
mov eax, dword [0x4c4924]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ceccc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463529
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x468a18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x4cecdc]
cmp esi, dword [eax + 0x30]
jne 0x468a3f
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x468a6e
mov eax, dword [0x4cecdc]
cmp esi, dword [eax + 0x30]
jne 0x468a6a
mov eax, dword [0x4cecdc]
cmp byte [eax + 0x5b], 0
jne 0x468a6e
xor eax, eax
jmp 0x468a70
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x468a85
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x468a9c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x468aab
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x468aba
test bl, bl
je 0x468ad0
test bl, bl
je 0x468ac8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x468ad0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x468d74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x468d9a
mov eax, esp
push eax
push 0x468d3c
call sub.user32.dll_EnumWindows
jmp 0x468dad
mov eax, esp
push eax
push 0x468d1c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x468e38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x468e8c]
test si, 4
je 0x468e4d
or bl, 1
test si, 8
je 0x468e57
or bl, 4
test si, 1
je 0x468e61
or bl, 8
test si, 2
je 0x468e6b
or bl, 0x10
test si, 0x10
je 0x468e75
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468e84
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x468e90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x468ecc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468eaa
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468eb9
or bl, 4
test esi, 0x20000000
je 0x468ec4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x470db4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x470dc6
add esp, 0xfffffff0
call fcn.00404880
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423624
mov eax, dword [0x4c9230]
mov dword [eax + 4], ebx
mov dword [eax], 0x471158
mov eax, dword [0x4c9240]
mov dword [eax + 4], ebx
mov dword [eax], 0x471164
mov eax, ebx
call fcn.00471170
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46c804
push eax
push 0
push 0
mov eax, dword [0x4c949c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4276a0]
call fcn.00428f94
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4276a0]
call fcn.00428f94
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4276a0]
call fcn.00428f94
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004715a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471470
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471470
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x471470
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x470f03
call fcn.004048d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x471254
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4713ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4713e0
mov dl, 1
mov eax, dword [0x41a3e4]
call fcn.0040452c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040545c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4713cf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00463718
test al, al
je 0x4713c2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x471410
lea eax, [ebp - 0x254]
call fcn.0040bc78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4713c2
xor eax, eax
push ebp
push 0x4713bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x471448
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4713a4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004056cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4713a4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004056cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4713c2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4712c5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ed68
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471406
lea eax, [ebp - 0x260]
call fcn.0040545c
ret

Function at 0x471d78
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4cecdc]
cmp byte [eax + 0xad], 0
jne 0x471de9
cmp dword [0x4cecf8], 0
jne 0x471daa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x471d34
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4cecf8], eax
cmp dword [0x4cecf4], 0
jne 0x471dc5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4cecf4], eax
cmp dword [0x4cecfc], 0
jne 0x471de9
push esp
push 0
push 0
push 0x471cd8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cecfc], eax
pop edx
ret
Function at 0x471fbc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x471fd3
add esp, 0xfffffff0
call fcn.00404880
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423624
mov eax, dword [0x4c9478]
cmp word [eax + 2], 0
jne 0x471ffb
mov eax, dword [0x4c9478]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473bd4
mov eax, dword [0x4c95a4]
cmp word [eax + 2], 0
jne 0x472015
mov eax, dword [0x4c95a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473de0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x419d78]
call fcn.0040452c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x428250]
call fcn.004304bc
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4721cc
mov eax, dword [0x4c92ec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430890
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4744b4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4c92ec]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040fcc4
test eax, eax
je 0x47211c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b280
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fcf8
test eax, eax
je 0x472130
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004056cc
mov byte [ebx + 0xd4], 0
push ebx
push 0x4736e4
call fcn.004247b4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4c90b4]
cmp byte [eax], 0
jne 0x472181
mov eax, ebx
call fcn.00472310
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0047468c
mov eax, ebx
call fcn.004751f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4721c1
call fcn.004048d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472590
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x47262f
cmp dword [ebx + 0x94], 0
jne 0x472629
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x472518
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x472629
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4725ef
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x472629
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c448
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4725fe
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x472848
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cecdc]
cmp dword [eax + 0x30], 0
je 0x4729a5
test bl, bl
jne 0x4728f6
cmp dword [esi + 0x9c], 0
jne 0x4728eb
mov eax, esi
call fcn.0047506c
push eax
push 0x472774
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4728bc
mov eax, dword [0x4cecdc]
call fcn.0047574c
test al, al
je 0x4728bc
mov eax, dword [0x4ced00]
call fcn.00406920
mov edi, eax
cmp edi, 0
jl 0x4728bc
push 0
mov eax, dword [0x4ced00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4728a6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4728eb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c448
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4728cb
inc dword [esi + 0x9c]
jmp 0x4729a5
cmp dword [esi + 0x9c], 0
jle 0x4729a5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4729a5
cmp dword [esi + 0x44], 0
je 0x472951
mov eax, dword [0x4cecdc]
call fcn.0047574c
test al, al
je 0x472951
mov eax, dword [0x4ced00]
call fcn.00406920
mov edi, eax
cmp edi, 0
jl 0x472951
push 5
mov eax, dword [0x4ced00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47293b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x472980
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c448
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x472960
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4ced00
mov ecx, 1
mov edx, dword [0x472754]
call fcn.00406ad4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x473438
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4734a2
mov eax, ebx
call fcn.0047574c
test al, al
jne 0x4734a2
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040554c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x47348f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4734af
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004054b0
jmp 0x4734af
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004054b0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x474870
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4748de
mov eax, esi
call fcn.0045e394
test al, al
je 0x4748de
mov eax, dword [ebx + 0x84]
call fcn.0045dfe4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4748de
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4748d2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045dfe4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00455e84
jmp 0x4748de
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004746ac
pop esi
pop ebx
ret

Function at 0x476120
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403b50
ret
Function at 0x478918
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 0x478a89
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 0x478a64
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.00405644
lea eax, [ebp - 0x118]
mov edx, 0x478aa0
call fcn.00405728
mov eax, dword [ebp - 0x118]
call fcn.004058ec
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4789d6
lea eax, [ebp - 0x111]
call fcn.0040b22c
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0040554c
jmp 0x4789dd
mov eax, esi
call fcn.0040545c
cmp bl, 0x61
jae 0x4789fe
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040fb90
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004054b0
jmp 0x478a18
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040fafc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004054b0
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, 0x478aac
call fcn.0040bcf8
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004054b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478a6b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x47e0d4
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.004058dc
xor eax, eax
push ebp
push 0x47e132
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0047e1b0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x47e11a
lea eax, [ebp - 4]
call fcn.0047e1b0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47e11c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e139
lea eax, [ebp - 4]
call fcn.0040545c
ret

Function at 0x47e140
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.004058dc
xor eax, eax
push ebp
push 0x47e1a4
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.0047e1b0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b46c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e1ab
lea eax, [ebp - 4]
call fcn.0040545c
ret
Function at 0x47e764
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.004058dc
xor eax, eax
push ebp
push 0x47e85d
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.0047de64
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.0040b010
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047f134
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040aed0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047f1ac
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 0x47e864
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405480
ret
Function at 0x47e86c
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.004058dc
xor eax, eax
push ebp
push 0x47e975
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.0047de64
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 0x47e93b
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b010
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047f134
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040aed0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047f1ac
jmp 0x47e94d
xor edx, edx
mov eax, ebx
call fcn.0047f134
xor edx, edx
mov eax, ebx
call fcn.0047f1ac
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 0x47e97c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405480
ret

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

Function at 0x4852d8
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 0x4852fe
inc esi
mov eax, edi
call fcn.004852bc
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.00485264
inc ebx
dec esi
jne 0x4852e7
pop edi
pop esi
pop ebx
ret