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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x63ff64]
cmp byte [eax + 0xc], 0
je 0x43f1f9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f1f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x640af8], 0
jne 0x43f0e0
push 0x43f200
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f208
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640af8], eax
cmp dword [0x45ab04], 0
jne 0x43f1db
push 0x43f218
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45ab04], eax
cmp dword [0x45ab04], 0
je 0x43f1db
push 0x43f224
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640afc], eax
push 0x43f234
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b00], eax
push 0x43f248
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b04], eax
push 0x43f260
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b08], eax
push 0x43f278
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b0c], eax
push 0x43f28c
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b10], eax
push 0x43f2a4
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b14], eax
push 0x43f2bc
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b18], eax
push 0x43f2d8
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b1c], eax
push 0x43f2e4
mov eax, dword [0x45ab04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f1f9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4430ac
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.00404454
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4430fb
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.004046c4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a8cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a91c]
test si, 4
je 0x44a8e0
or bl, 1
test si, 8
je 0x44a8ea
or bl, 4
test si, 1
je 0x44a8f4
or bl, 8
test si, 2
je 0x44a8fe
or bl, 0x10
test si, 0x10
je 0x44a908
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a917
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a958]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a939
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a948
or bl, 4
test esi, 0x20000000
je 0x44a953
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45101c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45102e
add esp, 0xfffffff0
call fcn.004039e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419ba0
mov eax, dword [0x63fc44]
mov dword [eax + 4], ebx
mov dword [eax], 0x4513c0
mov eax, dword [0x63fc50]
mov dword [eax + 4], ebx
mov dword [eax], 0x4513cc
mov eax, ebx
call fcn.004513d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411db8]
call fcn.0040367c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411db8]
call fcn.0040367c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411db8]
call fcn.0040367c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411db8]
call fcn.0040367c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411db8]
call fcn.0040367c
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, 0x44d7f0
push eax
push 0
push 0
mov eax, dword [0x63fd8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b5f8]
call fcn.0041cd90
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b5f8]
call fcn.0041cd90
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b5f8]
call fcn.0041cd90
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451828
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4516f0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4516f0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4516f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45116b
call fcn.00403a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4514d4
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 0x45167f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451660
mov dl, 1
mov eax, dword [0x4121d4]
call fcn.0040367c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404454
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45164f
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.0043f3ec
test al, al
je 0x451642
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, 0x451690
lea eax, [ebp - 0x254]
call fcn.004090f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451642
xor eax, eax
push ebp
push 0x45163b
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 0x4516c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451624
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c4
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 0x451624
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451642
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451545
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d38
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 0x451686
lea eax, [ebp - 0x260]
call fcn.00404454
ret

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

Disassembly:
push ecx
mov eax, dword [0x640b44]
cmp byte [eax + 0xa5], 0
jne 0x452039
cmp dword [0x640b5c], 0
jne 0x451ffa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451f84
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x640b5c], eax
cmp dword [0x640b58], 0
jne 0x452015
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x640b58], eax
cmp dword [0x640b60], 0
jne 0x452039
push esp
push 0
push 0
push 0x451f28
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x640b60], eax
pop edx
ret
Function at 0x4526cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x640b44]
cmp dword [eax + 0x30], 0
je 0x452776
cmp dword [ebx + 0x94], 0
jne 0x452770
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45265c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452770
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 0x452736
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452770
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.00414134
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452745
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4532d4
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 0x453309
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.00404544
jmp 0x453316
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4544c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454509
mov eax, esi
call fcn.0043a984
test al, al
je 0x454509
mov eax, dword [ebx + 0x84]
call fcn.0043a680
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454509
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a680
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454e94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404904
mov eax, dword [ebp - 8]
call fcn.00404904
xor eax, eax
push ebp
push 0x454f58
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404914
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404914
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x640b78], eax
cmp dword [0x640b78], 0
je 0x454f32
mov eax, dword [ebp - 8]
call fcn.00404914
push eax
mov eax, dword [0x640b78]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x640b7c], eax
push 0x640b84
push 0x40
push 0x22233f4
push 0x640b7c
call sub.kernel32.dll_VirtualProtect
mov edx, 0x640b7c
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00454e84
mov eax, dword [0x640b78]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f5f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404478
ret
Function at 0x4034f4
Capabilities:
Query or enumerate registry value

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

Function at 0x404238
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x404299
cmp word [0x45821c], 0xd7b2
jne 0x404261
cmp dword [0x458224], 0
jbe 0x404261
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456090
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 0x4042c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x456030], 0
jne 0x4042b5
push 0
push 0x456088
push 0x456090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405614
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 0x405844
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405697
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405844
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405697
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405860
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405720
xor eax, eax
push ebp
push 0x405719
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040545c
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 0x4056fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405880
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4056fe
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 0x405720
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 0x40583a
cmp byte [ebp - 0xd], 0
jne 0x405767
cmp byte [ebp - 0x12], 0
je 0x40583a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405780
dec ebx
cmp byte [ebx], 0x2e
je 0x40578f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40577f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40583a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4057cc
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 0x40583a
cmp byte [ebp - 0xd], 0
je 0x40583a
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 0x40583a
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 0x405f0c
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 0x405f72
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.00404624
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f5c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f79
lea eax, [ebp - 0x10]
call fcn.004043b4
ret

Function at 0x40b0e4
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 0x40b11d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044a4
jmp 0x40b126
mov eax, ebx
mov edx, esi
call fcn.00404408
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b7d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b650
mov eax, dword [0x457154]
cmp byte [eax], 0
je 0x40b854
mov eax, dword [0x456f74]
call fcn.00402c94
call fcn.0040286c
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.00408944
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 0x40b89c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b88a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x456f24]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x458664]
call fcn.00405420
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 0x40c0f0
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 0x40c1c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040444c
lea eax, [ebp - 8]
call fcn.004048c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404874
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c1b0
mov eax, ebx
call fcn.00402704
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c1a9
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.00404874
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c193
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c1d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c193
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 0x40c1b0
mov eax, dword [ebp - 0x10]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1cd
lea eax, [ebp - 8]
call fcn.004043b4
ret

Function at 0x40c6bc
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 0x40c720
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.00404624
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408414
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c727
lea eax, [ebp - 0xc]
call fcn.004043b4
ret

Function at 0x41a848
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x458884
cmp dword [edi], 0
jne 0x41a8c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x458880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x456410
mov ecx, 2
call fcn.0040290c
mov edx, 0x41a820
lea eax, [esi + 5]
call fcn.0041a840
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a840
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 0x41a899
mov dword [0x458880], 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 0x41bae0
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 0x41bae6
ret