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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46bef8]
cmp byte [eax + 0xc], 0
je 0x43ea59
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ea52
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46cb68], 0
jne 0x43e940
push 0x43ea60
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ea68
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb68], eax
cmp dword [0x46ac20], 0
jne 0x43ea3b
push 0x43ea78
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ac20], eax
cmp dword [0x46ac20], 0
je 0x43ea3b
push 0x43ea84
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb6c], eax
push 0x43ea94
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb70], eax
push 0x43eaa8
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb74], eax
push 0x43eac0
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb78], eax
push 0x43ead8
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb7c], eax
push 0x43eaec
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb80], eax
push 0x43eb04
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb84], eax
push 0x43eb1c
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb88], eax
push 0x43eb38
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb8c], eax
push 0x43eb44
mov eax, dword [0x46ac20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46cb90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ea59
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4428e4
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.004040e8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x442933
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.00404358
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a0c0]
test si, 4
je 0x44a084
or bl, 1
test si, 8
je 0x44a08e
or bl, 4
test si, 1
je 0x44a098
or bl, 8
test si, 2
je 0x44a0a2
or bl, 0x10
test si, 0x10
je 0x44a0ac
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a0bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a0c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a0fc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a0dd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a0ec
or bl, 4
test esi, 0x20000000
je 0x44a0f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4507a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4507b6
add esp, 0xfffffff0
call fcn.00403638
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041af48
mov eax, dword [0x46b9d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450b48
mov eax, dword [0x46b9e8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450b54
mov eax, ebx
call fcn.00450b60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
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, 0x44cf7c
push eax
push 0
push 0
mov eax, dword [0x46bbec]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041ddb8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041ddb8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c974]
call fcn.0041ddb8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450f80
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450e5c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450e5c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450e5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4508f3
call fcn.00403690
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450c40
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 0x450deb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450dcc
mov dl, 1
mov eax, dword [0x41277c]
call fcn.004032fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450dbb
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.0043ec4c
test al, al
je 0x450dae
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, 0x450dfc
lea eax, [ebp - 0x254]
call fcn.00409254
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450dae
xor eax, eax
push ebp
push 0x450da7
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 0x450e34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450d90
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
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 0x450d90
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450dae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450cb1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416aec
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 0x450df2
lea eax, [ebp - 0x260]
call fcn.004040e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cbb4]
cmp byte [eax + 0xa5], 0
jne 0x451791
cmp dword [0x46cbcc], 0
jne 0x451752
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4516dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cbcc], eax
cmp dword [0x46cbc8], 0
jne 0x45176d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cbc8], eax
cmp dword [0x46cbd0], 0
jne 0x451791
push esp
push 0
push 0
push 0x451680
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46cbd0], eax
pop edx
ret
Function at 0x451888
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45189f
add esp, 0xfffffff0
call fcn.00403638
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041af48
mov eax, dword [0x46bbcc]
cmp word [eax + 2], 0
jne 0x4518c7
mov eax, dword [0x46bbcc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452f60
mov eax, dword [0x46bcf8]
cmp word [eax + 2], 0
jne 0x4518e1
mov eax, dword [0x46bcf8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453158
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412118]
call fcn.004032fc
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 [0x41d124]
call fcn.00422d6c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451a68
mov eax, dword [0x46ba78]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042313c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453708
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46ba78]
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.0040cb14
test eax, eax
je 0x4519d6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c48
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb3c
test eax, eax
je 0x4519ea
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.00404358
mov eax, dword [0x46b8ac]
cmp byte [eax], 0
jne 0x451a1e
mov eax, ebx
call fcn.00451b90
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.004538e4
mov eax, ebx
call fcn.004542a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451a5e
call fcn.00403690
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451e10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46cbb4]
cmp dword [eax + 0x30], 0
je 0x451eba
cmp dword [ebx + 0x94], 0
jne 0x451eb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451da0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451eb4
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 0x451e7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451eb4
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.0041476c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451e89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452a1c
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 0x452a51
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.004041d8
jmp 0x452a5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040413c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453ac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453b01
mov eax, esi
call fcn.0043a278
test al, al
je 0x453b01
mov eax, dword [ebx + 0x84]
call fcn.00439f74
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453b01
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439f74
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x402924
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402961
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402981
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404448
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ae8
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.004041d8
test esi, esi
jne 0x402b1e
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.004042c8
jmp 0x402b3c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029fc
mov edi, eax
test esi, esi
je 0x402b3c
cmp dword [ebx], 0
je 0x402b3c
dec esi
jmp 0x402b25
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403218
Capabilities:
Query or enumerate registry value

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

Function at 0x40405c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47404c], 0
je 0x4040bd
cmp word [0x474220], 0xd7b2
jne 0x404085
cmp dword [0x474228], 0
jbe 0x404085
mov eax, 0x47421c
call dword [0x474238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47206c
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 0x4040e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x4040d9
push 0
push 0x472064
push 0x47206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061e4
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 0x40624a
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.00404448
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406234
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406251
lea eax, [ebp - 0x10]
call fcn.004041d8
ret

Function at 0x40b668
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 0x40b6a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042c8
jmp 0x40b6aa
mov eax, ebx
mov edx, esi
call fcn.0040422c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd5c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbd4
mov eax, dword [0x4734a0]
cmp byte [eax], 0
je 0x40bdd8
mov eax, dword [0x473270]
call fcn.00402bdc
call fcn.004028b0
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.00408de8
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 0x40be20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be0e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x473218]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x474668]
call fcn.004056dc
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
Function at 0x40c6bc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c792
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404270
lea eax, [ebp - 8]
call fcn.004046e8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404698
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c77c
mov eax, ebx
call fcn.00402748
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c775
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404698
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c75f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c75f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c77c
mov eax, dword [ebp - 0x10]
call fcn.00402768
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c799
lea eax, [ebp - 8]
call fcn.004041d8
ret

Function at 0x40cc10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cc74
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404448
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408870
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc7b
lea eax, [ebp - 0xc]
call fcn.004041d8
ret

Function at 0x41faf8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x474888
cmp dword [edi], 0
jne 0x41fb74
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x474884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4724a4
mov ecx, 2
call fcn.004029bc
mov edx, 0x41fad0
lea eax, [esi + 5]
call fcn.0041faf0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041faf0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fb49
mov dword [0x474884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x420d98
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 0x420d9e
ret
Function at 0x423354
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4233a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42338c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42337c
jmp 0x4233a5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42338d
pop ebx
mov esp, ebp
pop ebp
ret