joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430cf8
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 0x430ea3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x430e84
mov dl, 1
mov eax, dword [0x411e24]
call fcn.004039e0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404784
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x430e73
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.0044c27c
test al, al
je 0x430e66
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, 0x430eb4
lea eax, [ebp - 0x254]
call fcn.00408ff8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x430e66
xor eax, eax
push ebp
push 0x430e5f
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 0x430eec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x430e48
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049f4
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 0x430e48
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004049f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430e66
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x430d69
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415900
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 0x430eaa
lea eax, [ebp - 0x260]
call fcn.00404784
ret

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

Disassembly:
push ecx
mov eax, dword [0x451afc]
cmp byte [eax + 0xa5], 0
jne 0x43185d
cmp dword [0x451b14], 0
jne 0x43181e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4317a8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451b14], eax
cmp dword [0x451b10], 0
jne 0x431839
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x451b10], eax
cmp dword [0x451b18], 0
jne 0x43185d
push esp
push 0
push 0
push 0x43174c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451b18], eax
pop edx
ret
Function at 0x431ef0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451afc]
cmp dword [eax + 0x30], 0
je 0x431f9a
cmp dword [ebx + 0x94], 0
jne 0x431f94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x431e80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x431f94
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 0x431f5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x431f94
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.00413d70
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x431f69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x432af8
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 0x432b2d
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.00404874
jmp 0x432b3a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004047d8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x433ac8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x433b09
mov eax, esi
call fcn.00447a34
test al, al
je 0x433b09
mov eax, dword [ebx + 0x84]
call fcn.004477d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433b09
push 0
mov eax, dword [ebx + 0x84]
call fcn.004477d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x436a48
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.00404784
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x436a97
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.004049f4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ec3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x451b7c], 0
je 0x43ed8b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44fef0]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43ed8b
mov eax, dword [0x451b80]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x451b7c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ed5a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x451b7c]
call fcn.00413d70
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ed52
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43ed52
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43ed52
mov eax, dword [ebp - 0x14]
call fcn.004477d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ed52
push ebp
call fcn.0043ebf8
pop ecx
test al, al
jne 0x43ed52
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43ed0e
mov eax, dword [ebp - 0x14]
call fcn.00446304
dec eax
jle 0x43ed52
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403c18
cmp byte [ebp - 1], 0
je 0x43ed52
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43ed52
mov edx, dword [ebp - 0x14]
mov eax, dword [0x451b80]
call fcn.0043e3c4
inc edi
dec ebx
jne 0x43eca1
mov eax, dword [0x451b80]
cmp dword [eax + 8], 0
jle 0x43ed72
mov eax, dword [0x451b80]
call fcn.0043e454
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ed8b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043ea60
pop ecx
test al, al
jne 0x43ed8b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442344
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x442390
mov eax, esi
call fcn.0042a2e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442390
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x442390
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4424cf
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4423d0
cmp eax, 0x108
ja 0x4423d0
mov eax, esi
call fcn.0042a2e8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4424c6
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4424cf
jmp 0x4424c6
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4424af
cmp eax, 0x20a
ja 0x4424af
test byte [esi + 0x50], 0x80
jne 0x442402
sub eax, 0x203
je 0x4423ff
sub eax, 3
je 0x4423ff
sub eax, 3
jne 0x442402
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x442416
dec eax
je 0x44242b
dec eax
je 0x442448
dec eax
je 0x44242b
jmp 0x44244f
mov ecx, ebx
mov eax, dword [0x44fef0]
mov eax, dword [eax]
mov edx, esi
call fcn.00433980
jmp 0x4424c6
cmp byte [esi + 0x5d], 1
jne 0x442441
mov eax, esi
mov si, 0xffed
call fcn.00403c18
jmp 0x4424cf
or word [esi + 0x54], 1
jmp 0x4424c6
and word [esi + 0x54], 0xfffe
jmp 0x4424c6
mov eax, dword [0x451b38]
cmp byte [eax + 0x20], 0
je 0x4424c6
mov eax, dword [0x451b38]
cmp dword [eax + 0x1c], 0
je 0x4424c6
mov eax, dword [ebx]
mov edx, dword [0x451b38]
cmp eax, dword [edx + 0x1c]
jne 0x4424c6
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0042a22c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403c18
jmp 0x4424cf
cmp eax, 0xb00b
jne 0x4424c6
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00440ca0
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445964
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x445980
cmp dword [esi + 4], 0
je 0x4459ad
test byte [ebx + 0x55], 1
jne 0x44599f
mov eax, ebx
call fcn.00444570
test eax, eax
jne 0x44599f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x445abd
mov edx, esi
mov eax, ebx
call fcn.00445488
jmp 0x445abd
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x445ab6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004477d4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00442278
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445964
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004477d4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445abd
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bf1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45001c]
cmp byte [eax + 0xc], 0
je 0x44c089
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c082
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x451b8c], 0
jne 0x44bf70
push 0x44c090
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c098
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b8c], eax
cmp dword [0x44fc14], 0
jne 0x44c06b
push 0x44c0a8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44fc14], eax
cmp dword [0x44fc14], 0
je 0x44c06b
push 0x44c0b4
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b90], eax
push 0x44c0c4
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b94], eax
push 0x44c0d8
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b98], eax
push 0x44c0f0
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451b9c], eax
push 0x44c108
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba0], eax
push 0x44c11c
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba4], eax
push 0x44c134
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451ba8], eax
push 0x44c14c
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bac], eax
push 0x44c168
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bb0], eax
push 0x44c174
mov eax, dword [0x44fc14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x451bb4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c089
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036a0
Capabilities:
Query or enumerate registry value

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

Function at 0x40452c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b6048], 0
je 0x40458d
cmp word [0x4b621c], 0xd7b2
jne 0x404555
cmp dword [0x4b6224], 0
jbe 0x404555
mov eax, 0x4b6218
call dword [0x4b6234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463030], 0
jne 0x4045a9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x463034], 0
je 0x40470a
mov edx, esi
mov eax, ebx
call dword [0x463034]
jmp 0x404719
mov eax, 8
call fcn.00402cac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b6049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046ac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4081b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408244
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408244
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081f7
test edx, 3
jne 0x4081e6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081f1
jmp 0x4081f7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081f7
cmp dword [ecx - 8], 1
je 0x408201
mov edx, ebx
or edx, 3
call fcn.00404eac
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408213
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404760

Function at 0x408250
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082e0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082e0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408293
test edx, 3
jne 0x408282
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40828d
jmp 0x408293
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408293
cmp dword [ecx - 8], 1
je 0x40829d
mov edx, ebx
or edx, 3
call fcn.00404eac
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4082af
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404760

Function at 0x40b4c4
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 0x40b4fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404850
jmp 0x40b506
mov eax, ebx
mov edx, esi
call fcn.004047b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b510
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 0x40b532
movzx eax, byte [esp]
jmp 0x40b534
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bbc4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba3c
mov eax, dword [0x4b5bb4]
cmp byte [eax], 0
je 0x40bc40
mov eax, dword [0x4b59b4]
call fcn.00403068
call fcn.00402e08
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.00408c5c
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 0x40bc88
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc76
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b5958]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b87f4]
call fcn.0040595c
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 0x40c4d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c5aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004047f8
lea eax, [ebp - 4]
call fcn.00404c74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c24
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c594
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c58d
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 - 4]
call fcn.00404c24
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c577
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c577
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c594
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5b1
lea eax, [ebp - 4]
call fcn.00404760
ret

Function at 0x41b250
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41b29e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041af60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b2b7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret