joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46805c
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 [0x505cdc]
cmp esi, dword [eax + 0x30]
jne 0x468083
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 0x4680b2
mov eax, dword [0x505cdc]
cmp esi, dword [eax + 0x30]
jne 0x4680ae
mov eax, dword [0x505cdc]
cmp byte [eax + 0x5b], 0
jne 0x4680b2
xor eax, eax
jmp 0x4680b4
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x4680c9
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x4680e0
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x4680ef
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 0x4680fe
test bl, bl
je 0x468114
test bl, bl
je 0x46810c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x468114
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4683b8
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 0x4683de
mov eax, esp
push eax
push 0x468380
call sub.user32.dll_EnumWindows
jmp 0x4683f1
mov eax, esp
push eax
push 0x468360
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 0x468498
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4684ec]
test si, 4
je 0x4684ad
or bl, 1
test si, 8
je 0x4684b7
or bl, 4
test si, 1
je 0x4684c1
or bl, 8
test si, 2
je 0x4684cb
or bl, 0x10
test si, 0x10
je 0x4684d5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4684e4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4684f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x46852c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46850a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x468519
or bl, 4
test esi, 0x20000000
je 0x468524
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4703f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47040a
add esp, 0xfffffff0
call fcn.00404804
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042380c
mov eax, dword [0x4ffd58]
mov dword [eax + 4], ebx
mov dword [eax], 0x47079c
mov eax, dword [0x4ffd68]
mov dword [eax + 4], ebx
mov dword [eax], 0x4707a8
mov eax, ebx
call fcn.004707b4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
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, 0x46be64
push eax
push 0
push 0
mov eax, dword [0x4fffd4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42761c]
call fcn.00428e70
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42761c]
call fcn.00428e70
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42761c]
call fcn.00428e70
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00470be4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470ab4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470ab4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x470ab4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x470547
call fcn.0040485c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x470898
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 0x470a43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x470a24
mov dl, 1
mov eax, dword [0x41a578]
call fcn.004044b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004053e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x470a13
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.00462b64
test al, al
je 0x470a06
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, 0x470a54
lea eax, [ebp - 0x254]
call fcn.0040baa4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x470a06
xor eax, eax
push ebp
push 0x4709ff
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 0x470a8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4709e8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405650
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 0x4709e8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470a06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x470909
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041eefc
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 0x470a4a
lea eax, [ebp - 0x260]
call fcn.004053e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x505cdc]
cmp byte [eax + 0xad], 0
jne 0x47142d
cmp dword [0x505cf8], 0
jne 0x4713ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x471378
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x505cf8], eax
cmp dword [0x505cf4], 0
jne 0x471409
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x505cf4], eax
cmp dword [0x505cfc], 0
jne 0x47142d
push esp
push 0
push 0
push 0x47131c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x505cfc], eax
pop edx
ret
Function at 0x471600
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x471617
add esp, 0xfffffff0
call fcn.00404804
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042380c
mov eax, dword [0x4fffac]
cmp word [eax + 2], 0
jne 0x47163f
mov eax, dword [0x4fffac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473218
mov eax, dword [0x5000e0]
cmp word [eax + 2], 0
jne 0x471659
mov eax, dword [0x5000e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00473424
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x419f0c]
call fcn.004044b0
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 [0x42812c]
call fcn.004302d4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x471810
mov eax, dword [0x4ffe1c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004306a8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x473af8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ffe1c]
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.0040fae4
test eax, eax
je 0x471760
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b0ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fb18
test eax, eax
je 0x471774
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.00405650
mov byte [ebx + 0xd4], 0
push ebx
push 0x472d28
call fcn.0042499c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4ffbd0]
cmp byte [eax], 0
jne 0x4717c5
mov eax, ebx
call fcn.00471954
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.00473cd0
mov eax, ebx
call fcn.00474834
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x471805
call fcn.0040485c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471bd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x471c73
cmp dword [ebx + 0x94], 0
jne 0x471c6d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x471b5c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x471c6d
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 0x471c33
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x471c6d
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.0041c5dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x471c42
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x505cdc]
cmp dword [eax + 0x30], 0
je 0x471fe9
test bl, bl
jne 0x471f3a
cmp dword [esi + 0x9c], 0
jne 0x471f2f
mov eax, esi
call fcn.004746b0
push eax
push 0x471db8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x471f00
mov eax, dword [0x505cdc]
call fcn.00474d90
test al, al
je 0x471f00
mov eax, dword [0x505d00]
call fcn.0040695c
mov edi, eax
cmp edi, 0
jl 0x471f00
push 0
mov eax, dword [0x505d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x471eea
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x471f2f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c5dc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x471f0f
inc dword [esi + 0x9c]
jmp 0x471fe9
cmp dword [esi + 0x9c], 0
jle 0x471fe9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x471fe9
cmp dword [esi + 0x44], 0
je 0x471f95
mov eax, dword [0x505cdc]
call fcn.00474d90
test al, al
je 0x471f95
mov eax, dword [0x505d00]
call fcn.0040695c
mov edi, eax
cmp edi, 0
jl 0x471f95
push 5
mov eax, dword [0x505d00]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x471f7f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x471fc4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041c5dc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x471fa4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x505d00
mov ecx, 1
mov edx, dword [0x471d98]
call fcn.00406b10
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x472a7c
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 0x472ae6
mov eax, ebx
call fcn.00474d90
test al, al
jne 0x472ae6
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.004054d0
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x472ad3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x472af3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405434
jmp 0x472af3
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405434
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x473eb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x473f22
mov eax, esi
call fcn.0045d79c
test al, al
je 0x473f22
mov eax, dword [ebx + 0x84]
call fcn.0045d3ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x473f22
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x473f16
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d3ec
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004552cc
jmp 0x473f22
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00473cf0
pop esi
pop ebx
ret

Function at 0x475764
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.00403ad4
ret
Function at 0x477f5c
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 0x4780cd
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 0x4780a8
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.004055c8
lea eax, [ebp - 0x118]
mov edx, 0x4780e4
call fcn.004056ac
mov eax, dword [ebp - 0x118]
call fcn.00405870
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x47801a
lea eax, [ebp - 0x111]
call fcn.0040b058
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004054d0
jmp 0x478021
mov eax, esi
call fcn.004053e0
cmp bl, 0x61
jae 0x478042
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f9b0
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405434
jmp 0x47805c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f91c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405434
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, 0x4780f0
call fcn.0040bb24
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4780af
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x47d718
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.00405860
xor eax, eax
push ebp
push 0x47d776
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0047d7f4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x47d75e
lea eax, [ebp - 4]
call fcn.0047d7f4
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47d760
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d77d
lea eax, [ebp - 4]
call fcn.004053e0
ret

Function at 0x47d784
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.00405860
xor eax, eax
push ebp
push 0x47d7e8
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.0047d7f4
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d7ef
lea eax, [ebp - 4]
call fcn.004053e0
ret
Function at 0x47dda8
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.00405860
xor eax, eax
push ebp
push 0x47dea1
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.0047d4a8
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.0040ae88
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047e778
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ad48
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047e7f0
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 0x47dea8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret
Function at 0x47deb0
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.00405860
xor eax, eax
push ebp
push 0x47dfb9
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.0047d4a8
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 0x47df7f
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ae88
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047e778
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ad48
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047e7f0
jmp 0x47df91
xor edx, edx
mov eax, ebx
call fcn.0047e778
xor edx, edx
mov eax, ebx
call fcn.0047e7f0
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 0x47dfc0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405404
ret

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

Function at 0x48491c
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 0x484942
inc esi
mov eax, edi
call fcn.00484900
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.004848a8
inc ebx
dec esi
jne 0x48492b
pop edi
pop esi
pop ebx
ret
Function at 0x4849d8
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.00405860
xor eax, eax
push ebp
push 0x484a4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00484948
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00484900
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004848a8
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x484a18
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a55
lea eax, [ebp - 4]
call fcn.004053e0
ret