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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45e250]
cmp byte [eax + 0xc], 0
je 0x43cd55
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cd4e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fbc0], 0
jne 0x43cc3c
push 0x43cd5c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43cd64
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbc0], eax
cmp dword [0x45d9f4], 0
jne 0x43cd37
push 0x43cd74
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45d9f4], eax
cmp dword [0x45d9f4], 0
je 0x43cd37
push 0x43cd80
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbc4], eax
push 0x43cd90
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbc8], eax
push 0x43cda4
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbcc], eax
push 0x43cdbc
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbd0], eax
push 0x43cdd4
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbd4], eax
push 0x43cde8
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbd8], eax
push 0x43ce00
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbdc], eax
push 0x43ce18
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbe0], eax
push 0x43ce34
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbe4], eax
push 0x43ce40
mov eax, dword [0x45d9f4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fbe8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cd55
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x440adc
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.004044ac
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x440b2b
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.00404714
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4489a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4489f4]
test si, 4
je 0x4489b8
or bl, 1
test si, 8
je 0x4489c2
or bl, 4
test si, 1
je 0x4489cc
or bl, 8
test si, 2
je 0x4489d6
or bl, 0x10
test si, 0x10
je 0x4489e0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4489ef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4489f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448a30]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448a11
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448a20
or bl, 4
test esi, 0x20000000
je 0x448a2b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f034
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f046
add esp, 0xfffffff0
call fcn.00403a20
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d4a8
mov eax, dword [0x45df18]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f3d8
mov eax, dword [0x45df24]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f3e4
mov eax, ebx
call fcn.0044f3f0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
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, 0x44b8b8
push eax
push 0
push 0
mov eax, dword [0x45e064]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eeb0]
call fcn.00420584
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eeb0]
call fcn.00420584
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eeb0]
call fcn.00420584
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f810
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6ec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f6ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f183
call fcn.00403a78
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f4d0
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 0x44f67b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f65c
mov dl, 1
mov eax, dword [0x4132b8]
call fcn.0040368c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004044ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f64b
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.0043cf48
test al, al
je 0x44f63e
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, 0x44f68c
lea eax, [ebp - 0x254]
call fcn.004094ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f63e
xor eax, eax
push ebp
push 0x44f637
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 0x44f6c4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f620
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404714
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 0x44f620
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f63e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f541
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041756c
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 0x44f682
lea eax, [ebp - 0x260]
call fcn.004044ac
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fc04]
cmp byte [eax + 0xa5], 0
jne 0x450021
cmp dword [0x45fc1c], 0
jne 0x44ffe2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ff6c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fc1c], eax
cmp dword [0x45fc18], 0
jne 0x44fffd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fc18], eax
cmp dword [0x45fc20], 0
jne 0x450021
push esp
push 0
push 0
push 0x44ff10
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45fc20], eax
pop edx
ret
Function at 0x450118
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45012f
add esp, 0xfffffff0
call fcn.00403a20
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d4a8
mov eax, dword [0x45e054]
cmp word [eax + 2], 0
jne 0x450157
mov eax, dword [0x45e054]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451764
mov eax, dword [0x45e0f4]
cmp word [eax + 2], 0
jne 0x450171
mov eax, dword [0x45e0f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045195c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412dc8]
call fcn.0040368c
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], 0x80000018
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 [0x41f930]
call fcn.00426c20
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4502f8
mov eax, dword [0x45df74]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426ff0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451edc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45df74]
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.0040c0b8
test eax, eax
je 0x450266
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e48
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0e0
test eax, eax
je 0x45027a
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.00404714
mov eax, dword [0x45de6c]
cmp byte [eax], 0
jne 0x4502ae
mov eax, ebx
call fcn.00450420
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.004520b8
mov eax, ebx
call fcn.004529f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4502ee
call fcn.00403a78
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450694
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fc04]
cmp dword [eax + 0x30], 0
je 0x45073e
cmp dword [ebx + 0x94], 0
jne 0x450738
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450624
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450738
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 0x4506fe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450738
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.004155d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45070d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45121c
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 0x451251
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.0040459c
jmp 0x45125e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404500
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452294
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4522d5
mov eax, esi
call fcn.00438680
test al, al
je 0x4522d5
mov eax, dword [ebx + 0x84]
call fcn.0043837c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4522d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043837c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453018
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00452cfc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040495c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x453076
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45e06c]
mov dl, 1
mov eax, dword [0x452c20]
call fcn.0040b450
call fcn.00403e88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x453204
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x45323c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45321a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453229
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453238
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x456020
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x45e0e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x45605a
mov eax, dword [0x45e0e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45605a
push 0
mov eax, dword [0x45e0e0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x458c6c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
test byte [ebx + 0x1c], 0x10
jne 0x458d19
mov cl, 1
mov dl, 1
mov eax, dword [0x453f60]
call fcn.0041d020
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458ce2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00458ec0
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0041d25c
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ebx
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
mov dword [eax + 0x30], edx
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00458f74
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458cf9
push 0
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [ebx + 0x58]
mov byte [eax + 0xf], 1
call fcn.0041d408
mov eax, dword [ebp - 4]
mov dword [ebx + 0x58], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402a04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040d4
test esi, esi
jne 0x402a3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041c4
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403178
Capabilities:
Query or enumerate registry value

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

Function at 0x403ed4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x492048], 0
je 0x403f35
cmp word [0x49221c], 0xd7b2
jne 0x403efd
cmp dword [0x492224], 0
jbe 0x403efd
mov eax, 0x492218
call dword [0x492234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48f06c
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 0x403f5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48f030], 0
jne 0x403f51
push 0
push 0x48f064
push 0x48f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404088
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x492049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404050
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4056b8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40573b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4058e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40573b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405904
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4057c4
xor eax, eax
push ebp
push 0x4057bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405500
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057a2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405924
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4057a2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4057c4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4058de
cmp byte [ebp - 0xd], 0
jne 0x40580b
cmp byte [ebp - 0x12], 0
je 0x4058de
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405824
dec ebx
cmp byte [ebx], 0x2e
je 0x405833
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405823
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4058de
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405870
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4058de
cmp byte [ebp - 0xd], 0
je 0x4058de
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4058de
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405fb0
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 0x406016
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.00404344
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d0c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406000
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40601d
lea eax, [ebp - 0x10]
call fcn.004040d4
ret

Function at 0x40b630
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 0x40b669
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041c4
jmp 0x40b672
mov eax, ebx
mov edx, esi
call fcn.00404128
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b67c
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 0x40b69d
mov al, byte [esp]
jmp 0x40b69f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd24
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb9c
mov eax, dword [0x49192c]
cmp byte [eax], 0
je 0x40bda0
mov eax, dword [0x4916e8]
call fcn.00402b3c
call fcn.00402844
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.00408d90
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 0x40bde8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x491694]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x492664]
call fcn.004054c4
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