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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4803e0]
cmp byte [eax + 0xc], 0
je 0x447d5d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447d56
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481b9c], 0
jne 0x447c44
push 0x447d64
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447d6c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481b9c], eax
cmp dword [0x47ec58], 0
jne 0x447d3f
push 0x447d7c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47ec58], eax
cmp dword [0x47ec58], 0
je 0x447d3f
push 0x447d88
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ba0], eax
push 0x447d98
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ba4], eax
push 0x447dac
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481ba8], eax
push 0x447dc4
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bac], eax
push 0x447ddc
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb0], eax
push 0x447df0
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb4], eax
push 0x447e08
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bb8], eax
push 0x447e20
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bbc], eax
push 0x447e3c
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc0], eax
push 0x447e48
mov eax, dword [0x47ec58]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447d5d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44bc68
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404098
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44bcb7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404308
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4533fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45344c]
test si, 4
je 0x453410
or bl, 1
test si, 8
je 0x45341a
or bl, 4
test si, 1
je 0x453424
or bl, 8
test si, 2
je 0x45342e
or bl, 0x10
test si, 0x10
je 0x453438
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453447
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453488]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453469
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453478
or bl, 4
test esi, 0x20000000
je 0x453483
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459b30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459b42
add esp, 0xfffffff0
call fcn.004035e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1f0
mov eax, dword [0x47ff20]
mov dword [eax + 4], ebx
mov dword [eax], 0x459ed4
mov eax, dword [0x47ff30]
mov dword [eax + 4], ebx
mov dword [eax], 0x459ee0
mov eax, ebx
call fcn.00459eec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
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, 0x456308
push eax
push 0
push 0
mov eax, dword [0x480124]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bc74]
call fcn.0041d3e8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bc74]
call fcn.0041d3e8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bc74]
call fcn.0041d3e8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045a30c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a1e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a1e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a1e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459c7f
call fcn.00403640
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x459fcc
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 0x45a177
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a158
mov dl, 1
mov eax, dword [0x411f78]
call fcn.00403294
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404098
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a147
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.00447f50
test al, al
je 0x45a13a
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, 0x45a188
lea eax, [ebp - 0x254]
call fcn.00408da8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a13a
xor eax, eax
push ebp
push 0x45a133
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 0x45a1c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a11c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404308
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 0x45a11c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a13a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a03d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415ed8
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 0x45a17e
lea eax, [ebp - 0x260]
call fcn.00404098
ret

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

Disassembly:
push ecx
mov eax, dword [0x481be8]
cmp byte [eax + 0xa5], 0
jne 0x45ab1d
cmp dword [0x481c00], 0
jne 0x45aade
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45aa68
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481c00], eax
cmp dword [0x481bfc], 0
jne 0x45aaf9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x481bfc], eax
cmp dword [0x481c04], 0
jne 0x45ab1d
push esp
push 0
push 0
push 0x45aa0c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x481c04], eax
pop edx
ret
Function at 0x45ac14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ac2b
add esp, 0xfffffff0
call fcn.004035e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1f0
mov eax, dword [0x4800fc]
cmp word [eax + 2], 0
jne 0x45ac53
mov eax, dword [0x4800fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c394
mov eax, dword [0x48021c]
cmp word [eax + 2], 0
jne 0x45ac6d
mov eax, dword [0x48021c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c58c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411aa4]
call fcn.00403294
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41c754]
call fcn.00423f34
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45adf4
mov eax, dword [0x47ffbc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424304
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cb3c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47ffbc]
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.0040c4ec
test eax, eax
je 0x45ad62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408788
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c514
test eax, eax
je 0x45ad76
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404308
mov eax, dword [0x47fde4]
cmp byte [eax], 0
jne 0x45adaa
mov eax, ebx
call fcn.0045af1c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045cd18
mov eax, ebx
call fcn.0045d6dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45adea
call fcn.00403640
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b19c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481be8]
cmp dword [eax + 0x30], 0
je 0x45b246
cmp dword [ebx + 0x94], 0
jne 0x45b240
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b12c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b240
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 0x45b206
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b240
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.00413f44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b215
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45bda8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45bddd
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.00404188
jmp 0x45bdea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45cef4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45cf35
mov eax, esi
call fcn.00443538
test al, al
je 0x45cf35
mov eax, dword [ebx + 0x84]
call fcn.00443234
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45cf35
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443234
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x469bb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x469bde
mov eax, ebx
call fcn.0046a664
cmp dword [ebx + 0x40], 0
je 0x469bd7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x469c4f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x469c41
cmp dword [ebx + 8], 0
je 0x469c00
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 0x469c12
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x469c41
cmp dword [ebx + 8], 0
je 0x469bf3
cmp eax, 3
je 0x469c25
dec eax
jne 0x469bf3
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 0x469bf3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x469bf3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x469c6d
cmp dword [ebx + 0x14], 0xcc
je 0x469c6d
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.00469c78
pop ebx
ret
Function at 0x47ac6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x47aca4]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47ac82
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47ac91
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x47aca0
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x47c0b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4801e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47c0d6
push 0
mov eax, dword [0x4801e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4097f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40984a
test eax, edx
je 0x40984d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40980d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409833
add ecx, 4
js 0x409823
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409830
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409859
test edx, edx
jne 0x409800
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x425a80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x425a86
ret
Function at 0x4045e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x438010]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x435780]
push ebx
push esi
movups xmmword [ebp - 0x2c], xmm0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xc], 0
movaps xmm0, xmmword [0x435790]
push edi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 3
nop word [eax + eax]
push dword [esi]
call fcn.00404700
add esi, 4
lea eax, [ebp - 4]
cmp esi, eax
jne 0x404620
mov eax, 0x21
cmp eax, 0x1c5
jl 0x40463f
call 0x7444bba5
add ch, cl
outsb dx, byte [esi]
jne 0x404645
je 0x404645
jmp 0xf6f72eb6
call fcn.00403d00
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add eax, 0x13
jne 0x404660
jmp 0xdc2c2f0d
call 0x402250
mov eax, 0x13
cmp eax, 0x1a5
jl 0x404673
jmp 0x7444bbf6
jne 0x404679
je 0x404679
jmp 0x6a40b121
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAnyAccessesGranted]
call fcn.00406770
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0x30], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.00406f50
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx ebx, ax
test esi, esi
je 0x4046cf
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4046cf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
mov ecx, edi
call fcn.004077e0
mov ecx, edi
call fcn.00405fb0
call fcn.00404310
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b18c
mov esp, ebp
pop ebp
ret
Function at 0x402b70
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402fc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403060
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403040
xor eax, eax
push ebp
push 0x403039
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 0x40307c
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 0x403040
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46a024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x403d85
cmp word [0x46c21c], 0xd7b2
jne 0x403d4d
cmp dword [0x46c224], 0
jbe 0x403d4d
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a070
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 0x403dac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a034], 0
jne 0x403da1
push 0
push 0x46a068
push 0x46a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a8e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404110
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b8c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a95
lea eax, [ebp - 0x10]
call fcn.00403ea0
ret

Function at 0x40aac4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aafd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f90
jmp 0x40ab06
mov eax, ebx
mov edx, esi
call fcn.00403ef4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ab31
mov al, byte [esp]
jmp 0x40ab33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b1b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b030
mov eax, dword [0x46b9f4]
cmp byte [eax], 0
je 0x40b234
mov eax, dword [0x46b80c]
call fcn.004029dc
call fcn.00402834
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408338
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b27c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b26a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b7b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c664]
call fcn.00404f3c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret