joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov edi, eax
push 0xffffffffffffffec
push edi
call sub.user32.dll_GetWindowLongA
mov esi, eax
test bl, bl
je 0x459f45
test esi, 0x40000
je 0x459f5f
test bl, bl
jne 0x459ff9
mov eax, esi
and eax, 0x40000
cmp eax, 0x40000
jne 0x459ff9
push edi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push edi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x459f92
mov eax, dword [0x4b4ca4]
cmp edi, dword [eax + 0x30]
jne 0x459f8e
mov eax, dword [0x4b4ca4]
cmp byte [eax + 0x5b], 0
jne 0x459f92
xor eax, eax
jmp 0x459f94
mov al, 1
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x459fab
push 0
push edi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x459fc0
or esi, 0x40000
push esi
push 0xffffffffffffffec
push edi
call sub.user32.dll_SetWindowLongA
jmp 0x459fcf
and esi, 0xfffbffff
push esi
push 0xffffffffffffffec
push edi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x459fe0
cmp byte [esp + 2], 0
je 0x459ff9
cmp byte [esp + 2], 0
je 0x459ff1
push 6
push edi
call sub.user32.dll_ShowWindow
jmp 0x459ff9
push 5
push edi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45a29c
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 0x45a2c2
mov eax, esp
push eax
push 0x45a264
call sub.user32.dll_EnumWindows
jmp 0x45a2d5
mov eax, esp
push eax
push 0x45a244
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 0x45a360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45a3b4]
test si, 4
je 0x45a375
or bl, 1
test si, 8
je 0x45a37f
or bl, 4
test si, 1
je 0x45a389
or bl, 8
test si, 2
je 0x45a393
or bl, 0x10
test si, 0x10
je 0x45a39d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a3ac
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a3b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45a3f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a3d2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a3e1
or bl, 4
test esi, 0x20000000
je 0x45a3ec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x462460
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x462472
add esp, 0xfffffff0
call fcn.00404020
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425088
mov eax, dword [0x4af0c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x462804
mov eax, dword [0x4af0d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x462810
mov eax, ebx
call fcn.0046281c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
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, 0x45dcc4
push eax
push 0
push 0
mov eax, dword [0x4af360]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428e7c]
call fcn.0042a6d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428e7c]
call fcn.0042a6d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428e7c]
call fcn.0042a6d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00462c94
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462b64
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462b64
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462b64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4625af
call fcn.00404078
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x462948
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 0x462af3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462ad4
mov dl, 1
mov eax, dword [0x41b79c]
call fcn.00403ccc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404cdc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x462ac3
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.004540a0
test al, al
je 0x462ab6
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, 0x462b04
lea eax, [ebp - 0x254]
call fcn.0040aeb8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462ab6
xor eax, eax
push ebp
push 0x462aaf
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 0x462b3c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462a98
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f4c
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 0x462a98
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462ab6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4629b9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0042075c
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 0x462afa
lea eax, [ebp - 0x260]
call fcn.00404cdc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4b4ca4]
cmp byte [eax + 0xad], 0
jne 0x4634dd
cmp dword [0x4b4cc0], 0
jne 0x46349e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x463428
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b4cc0], eax
cmp dword [0x4b4cbc], 0
jne 0x4634b9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b4cbc], eax
cmp dword [0x4b4cc4], 0
jne 0x4634dd
push esp
push 0
push 0
push 0x4633cc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b4cc4], eax
pop edx
ret
Function at 0x4636e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4636f7
add esp, 0xfffffff0
call fcn.00404020
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425088
mov eax, dword [0x4af338]
cmp word [eax + 2], 0
jne 0x46371f
mov eax, dword [0x4af338]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004653e8
mov eax, dword [0x4af470]
cmp word [eax + 2], 0
jne 0x463739
mov eax, dword [0x4af470]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004655f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41af84]
call fcn.00403ccc
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 [0x42998c]
call fcn.00431058
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4638f0
mov eax, dword [0x4af18c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043142c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x465cb8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4af18c]
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.0040ece0
test eax, eax
je 0x463840
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a4d4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ed14
test eax, eax
je 0x463854
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.00404f4c
mov byte [ebx + 0xd4], 0
push ebx
push 0x464e5c
call fcn.00426204
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4aef68]
cmp byte [eax], 0
jne 0x4638a5
mov eax, ebx
call fcn.00463a34
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.00465e9c
mov eax, ebx
call fcn.00466a00
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4638e5
call fcn.00404078
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463cb4
Capabilities:
Enumerate gui resources

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

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b4ca4]
cmp dword [eax + 0x30], 0
je 0x4640c9
test bl, bl
jne 0x46401a
cmp dword [esi + 0x9c], 0
jne 0x46400f
mov eax, esi
call fcn.0046687c
push eax
push 0x463e98
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x463fe0
mov eax, dword [0x4b4ca4]
call fcn.00466f5c
test al, al
je 0x463fe0
mov eax, dword [0x4b4cc8]
call fcn.004061e4
mov edi, eax
cmp edi, 0
jl 0x463fe0
push 0
mov eax, dword [0x4b4cc8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x463fca
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x46400f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d850
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x463fef
inc dword [esi + 0x9c]
jmp 0x4640c9
cmp dword [esi + 0x9c], 0
jle 0x4640c9
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4640c9
cmp dword [esi + 0x44], 0
je 0x464075
mov eax, dword [0x4b4ca4]
call fcn.00466f5c
test al, al
je 0x464075
mov eax, dword [0x4b4cc8]
call fcn.004061e4
mov edi, eax
cmp edi, 0
jl 0x464075
push 5
mov eax, dword [0x4b4cc8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x46405f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4640a4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041d850
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x464084
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4b4cc8
mov ecx, 1
mov edx, dword [0x463e78]
call fcn.00406398
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x464bb0
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 0x464c1a
mov eax, ebx
call fcn.00466f5c
test al, al
jne 0x464c1a
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.00404dcc
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x464c07
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x464c27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d30
jmp 0x464c27
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d30
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x466080
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4660ee
mov eax, esi
call fcn.0044ecf0
test al, al
je 0x4660ee
mov eax, dword [ebx + 0x84]
call fcn.0044e950
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4660ee
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4660e2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e950
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004467c4
jmp 0x4660ee
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00465ebc
pop esi
pop ebx
ret

Function at 0x48528c
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 0x4852e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048527c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00482b6c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00482684
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 0x4852ed
lea eax, [ebp - 4]
call fcn.00404cdc
ret
Function at 0x4a6c08
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a6ceb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404cdc
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4a6cd5
xor edx, edx
push ebp
push 0x4a6cce
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404d74
cmp dword [ebp - 4], 0
jne 0x4a6c88
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004053fc
push 0x104
mov eax, dword [ebp - 4]
call fcn.0040516c
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 4]
call fcn.0040516c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a6cbb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1a0], eax
push dword [ebp - 0x1a0]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6cd5
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6cf2
lea eax, [ebp - 4]
call fcn.00404cdc
ret

Function at 0x4a6e48
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a6fb4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x24
call fcn.0040361c
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x18]
mov dword [0x4aef30], eax
mov eax, dword [ebp - 0x10]
mov dword [0x4aef34], eax
mov eax, dword [ebp - 0x28]
mov dword [0x4aef38], eax
xor eax, eax
mov dword [0x4b5c8c], eax
push 0x4a6fc0
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004a6954
cmp byte [0x4aef20], 0
jne 0x4a6f0f
mov eax, dword [ebp - 4]
call fcn.004a6fd0
test al, al
je 0x4a6f0f
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4a6b44]
call fcn.004a7058
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a6f08
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.004a7878
mov eax, dword [ebp - 0x50]
mov dword [0x4b5c8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6f0f
mov eax, dword [ebp - 8]
call fcn.00403cfc
ret
mov eax, dword [0x4af6ac]
cmp dword [eax], 2
sete byte [0x4aef20]
call fcn.004a6d2c
and eax, 0x7f
cmp eax, 8
ja case.0x4a6f2b.0
jmp dword [eax*4 + 0x4a6f32]
mov byte [0x4aef0c], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef10], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef14], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef18], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef1c], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef24], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef28], 1
jmp case.0x4a6f2b.0
mov byte [0x4aef2c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6fbb
lea eax, [ebp - 4]
call fcn.00404cdc
ret
Function at 0x4a6fd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a7048
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.0040516c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4a7032
lea eax, [ebp - 4]
mov edx, edi
call fcn.004053fc
mov eax, dword [ebp - 4]
call fcn.0040516c
push eax
push edi
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.0040516c
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a704f
lea eax, [ebp - 4]
call fcn.00404cdc
ret

Function at 0x4a7058
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4a706d
add esp, 0xfffffff0
call fcn.00404020
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.0040516c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4a70a2
mov ecx, dword [0x4af288]
mov dl, 1
mov eax, dword [0x4a6a90]
call fcn.004a69a8
call fcn.00404634
lea eax, [ebx + 4]
mov edx, esi
call fcn.004053fc
mov eax, dword [ebx + 4]
call fcn.0040516c
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.0040516c
push eax
call sub.version.dll_GetFileVersionInfoA
call fcn.0040f588
mov eax, ebx
call fcn.004a75f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a70ea
call fcn.00404078
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a93a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040515c
xor eax, eax
push ebp
push 0x4a94e7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x4a94fc
call fcn.00404d74
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404f4c
push dword [ebp - 0x120]
push dword [ebp - 0xc]
push dword [ebx + 0x390]
push 0x4a9508
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.00405070
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
call fcn.00405620
lea eax, [ebp - 0x124]
mov edx, dword [ebp - 8]
call fcn.00404f64
mov eax, dword [ebp - 0x124]
call fcn.00409e08
test al, al
je 0x4a94a7
push ebp
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 8]
call fcn.00404f64
mov eax, dword [ebp - 0x128]
call fcn.004a8f20
pop ecx
test al, al
jne 0x4a94b1
push ebp
mov eax, dword [ebp - 8]
call fcn.004a9288
pop ecx
jmp 0x4a94b1
push ebp
mov eax, dword [ebp - 8]
call fcn.004a9288
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a94ee
lea eax, [ebp - 0x128]
mov edx, 4
call fcn.00404d00
lea eax, [ebp - 0xc]
call fcn.00404cdc
lea eax, [ebp - 8]
call fcn.004054bc
lea eax, [ebp - 4]
call fcn.00404cdc
ret
Function at 0x402f18
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x459008], 0x8088405
inc edx
mov dword [ebx + 0x459008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40369c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403734
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403714
xor eax, eax
push ebp
push 0x40370d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403750
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403714
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x459024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4043f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b048], 0
je 0x404459
cmp word [0x45b21c], 0xd7b2
jne 0x404421
cmp dword [0x45b224], 0
jbe 0x404421
mov eax, 0x45b218
call dword [0x45b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x459074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404480
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459034], 0
jne 0x404475
push 0
push 0x45906c
push 0x459074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret