joyce8/EMBER2024-capa huggingface dataset:
Function at 0x666170
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x408
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWARESEGASEGA_Rally
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x666276
push esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x6ecccc
push eax
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x666276
lea edx, [esp + 8]
push edx
push str.EUROPE
call fcn.004a9ccb
add esp, 8
test eax, eax
je 0x666276
lea eax, [esp + 8]
push eax
push str.RUSSIA
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x666210
mov eax, 3
add esp, 0x408
ret
lea ecx, [esp + 8]
push ecx
push str.POLISH
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x666232
mov eax, 5
add esp, 0x408
ret
lea edx, [esp + 8]
push edx
push str.CZECH
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x666254
mov eax, 4
add esp, 0x408
ret
lea eax, [esp + 8]
push eax
push 0x6eccf0
call fcn.004a9ccb
add esp, 8
test eax, eax
jne 0x666276
mov eax, 2
add esp, 0x408
ret
xor eax, eax
add esp, 0x408
ret

Function at 0x6663a0
Capabilities:
Get session user name

Disassembly:
push ecx
push ebx
mov ebx, 1
test byte [0xb02c90], bl
jne 0x6663c7
or dword [0xb02c90], ebx
call fcn.005384f0
push 0x681ed0
call fcn.004a9213
add esp, 4
cmp dword [0xb02c38], 2
jne 0x666444
push 0x101
push 0
push 0x7831c8
call fcn.004ae0b0
add esp, 0xc
test byte [0xb02c90], bl
jne 0x666404
or dword [0xb02c90], ebx
call fcn.005384f0
push 0x681ed0
call fcn.004a9213
add esp, 4
mov eax, 0xb02c3c
mov dword [esp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x666414
push 0xffffffffffffffff
sub eax, edx
push 0xb02c3c
add eax, 1
push eax
lea eax, [esp + 0x10]
push 0x7831c8
push eax
call fcn.004ac3f7
add esp, 0x14
mov eax, 0x7831c8
pop ebx
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push 0x7831c8
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
mov eax, 0x7831c8
jne 0x66646a
mov eax, 0x6ecc04
pop ebx
pop ecx
ret
Function at 0x666600
Capabilities:
Create thread

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
xor ebx, ebx
cmp dword [0x9d3e94], ebx
push esi
push edi
jne 0x666618
xor edi, edi
jmp 0x666639
mov esi, dword [0x9cdc68]
push 0x14a
push 0x6e9a20
push 0x1000
mov edi, 0x5c90
call fcn.00589980
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x6664f0
push 0x5000
mov dword [0x9cdc30], edi
mov dword [0x9cdc38], 0x5c90
mov dword [0x9cdc3c], ebx
mov dword [0x9cdc40], ebx
mov dword [0x9cdc58], ebx
mov ebp, 1
push ebx
mov dword [0x9cdc6c], ebp
call fcn.004a9a93
add esp, 0x18
cmp eax, ebx
jne 0x66668c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6666a0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x6666a0
mov edx, dword [0x9cdc6c]
test edx, edx
jne 0x6666a0
lea esi, [esp + 0x10]
call fcn.00584820
cmp edi, ebx
je 0x6666d7
cmp dword [0x9d3e94], ebx
je 0x6666d7
cmp dword [0x93d90c], ebx
jne 0x6666d7
call fcn.00589340
cmp eax, ebx
je 0x6666d7
mov esi, eax
call fcn.00589900
cmp dword [0x782b2c], ebp
je 0x6666eb
mov dword [0x9cdc74], ebp
mov dword [0x9cdc78], ebp
call fcn.00666170
cmp eax, 2
mov eax, str.LANG_ID_SEGA_RALLY_TITLE_USA_UTF8
je 0x6666ff
mov eax, str.LANG_ID_SEGA_RALLY_TITLE_EU_UTF8
mov ecx, dword [0x9cdbf8]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
cmp dword [0x9d3e94], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1a8], str.04.06
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1ac], ebx
jne 0x666733
xor edi, edi
jmp 0x666754
mov esi, dword [0x9cdc68]
push 0x14a
push 0x6e9a20
push 0x1000
mov edi, 0x71488
call fcn.00589980
mov edi, eax
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push 0x666480
lea ecx, [esp + 0x30]
push 0x5000
mov dword [0x9cdc60], ecx
mov dword [0x9cdc44], edi
mov dword [0x9cdc48], 0x71488
mov dword [0x9cdc4c], ebx
mov dword [0x9cdc50], 0x6ecc2c
mov dword [0x9cdc54], ebp
push ebx
mov dword [0x9cdc6c], ebp
call fcn.004a9a93
add esp, 0x18
cmp eax, ebx
jne 0x6667b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6667c0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea esp, [esp]
mov ecx, dword [0x9cdc6c]
test ecx, ecx
jne 0x6667c0
lea esi, [esp + 0x10]
call fcn.00584820
cmp edi, ebx
je 0x6667f7
cmp dword [0x9d3e94], ebx
je 0x6667f7
cmp dword [0x93d90c], ebx
jne 0x6667f7
call fcn.00589340
cmp eax, ebx
je 0x6667f7
mov esi, eax
call fcn.00589900
xor eax, eax
cmp dword [0x782b2c], 4
je 0x666808
mov dword [0x9cd7a4], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
Function at 0x666fe0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x220]
push eax
push 0
push 0
push 5
push 0
mov dword [0x782b2c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x6671a3
push 0x6ed1ec
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x18]
push 0x6ed2a4
push edx
call fcn.004a961b
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
call esi
cmp eax, 3
je 0x6671a3
mov eax, dword [ebx + 0x28]
sub eax, 0
je 0x66712f
sub eax, 1
je 0x6670b2
sub eax, 1
jne 0x667176
push str.replaytoc.dat
push str.Replays
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push 0x6ed2d8
push edx
call fcn.004a961b
add esp, 0x14
push str.Replays
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push 0x6ed2e4
push ecx
call fcn.004a961b
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
jmp 0x667115
mov eax, dword [ebx + 0x10]
push eax
lea ecx, [esp + 0x32c]
push 0x6ed2ac
push ecx
call fcn.004a961b
add esp, 0xc
push 0x6ed22c
lea edx, [esp + 0x32c]
push edx
push str.Replays
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x128]
push 0x6ed2b0
push ecx
call fcn.004a961b
push str.Replays
lea edx, [esp + 0x2c]
push edx
mov eax, edx
push 0x6ed2bc
push eax
call fcn.004a961b
add esp, 0x28
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
cmp eax, 3
jne 0x667176
mov dword [0x782b2c], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.SEGA_Rally.dat
push str.Saved_Games
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x124]
push 0x6ed2c4
push eax
call fcn.004a961b
add esp, 0x14
push str.Saved_Games
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push 0x6ed2d0
push edx
call fcn.004a961b
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
jmp 0x667115
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
lea esi, [ebx + 0x2c]
push edx
call fcn.00584b90
test eax, eax
je 0x6671a3
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push eax
push ecx
lea eax, [esp + 0x120]
mov edi, esi
call fcn.00584cc0
test eax, eax
jne 0x6671ad
mov dword [0x782b2c], 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x66a810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b8
cmp dword [0x93d2cc], 0
jne 0x66a8df
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x66a8ee
mov ax, word [esp + 0x28]
cmp al, 2
jne 0x66a8e8
cmp ah, al
jne 0x66a8e8
xor eax, eax
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x10], 0x6efab0
mov dword [esp + 8], str.SEGA_RALLY_REVOLUTION_PC
mov dword [esp + 0xc], 0x6ef844
mov dword [esp + 0x24], str.Player
mov dword [esp + 0x28], str.Win32
mov word [esp + 0x14], 0x26
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x2710
call sub.mac3r.dll_public:_static_class_MassiveAdClient3::CMassiveClientCore____cdecl_MassiveAdClient3::CMassiveClientCore::Initialize_struct_MassiveAdClient3::__MAD_MASSIVE_INIT_STRUCT__
add esp, 4
test eax, eax
je 0x66a8ee
call sub.mac3r.dll_public:_static_enum_MassiveAdClient3::__MAD_STATE___cdecl_MassiveAdClient3::CMassiveClientCore::GetState_void_const
test eax, eax
je 0x66a8ee
mov dword [0x93d2cc], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x66c050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb8
push ebx
mov bl, byte [esp + 0xc0]
cmp bl, 0x10
ja 0x66c203
push esi
movzx esi, bl
shl esi, 4
movzx eax, byte [esi + 0x808ca5]
mov ecx, dword [eax*4 + 0x808c78]
movzx eax, byte [esi + 0x808ca6]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
lea esi, [esi + 0x808c98]
push edi
push eax
call edx
xor edi, edi
cmp word [0x782b0c], di
je 0x66c201
xorps xmm0, xmm0
movzx eax, byte [esi + 0xd]
mov ecx, dword [eax*4 + 0x808c78]
lea eax, [esp + 0x40]
push eax
movzx eax, byte [esi + 0xe]
mov byte [esp + 0x3c], bl
mov ebx, 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
movss dword [esp + 0x84], xmm0
mov dword [esp + 0x78], edi
movss dword [esp + 0x74], xmm0
mov dword [esp + 0x7c], 0x64
mov dword [esp + 0x80], edi
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x90], xmm0
mov edx, dword [ecx]
mov edx, dword [edx + 0x60]
push eax
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x38], xmm0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x30], xmm0
call edx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x66c16c
movzx ecx, byte [esi + 0xd]
mov ecx, dword [ecx*4 + 0x808c78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
push eax
movzx eax, byte [esi + 0xe]
push eax
call edx
movzx eax, byte [esi + 0xd]
mov ecx, dword [eax*4 + 0x808c78]
xorps xmm0, xmm0
lea eax, [esp + 0x40]
push eax
movzx eax, byte [esi + 0xe]
mov dword [esp + 0x44], 3
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x54], xmm0
mov dword [esp + 0x50], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x60]
push eax
call edx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x66c1de
movzx ecx, byte [esi + 0xd]
mov ecx, dword [ecx*4 + 0x808c78]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
push eax
movzx eax, byte [esi + 0xe]
push eax
call edx
test byte [0xb2f0b4], bl
jne 0x66c1f1
or dword [0xb2f0b4], ebx
call fcn.005ada90
mov ecx, 0xd
lea esi, [esp + 0xc]
mov edi, 0x7d5f84
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 0xb8
ret
Function at 0x4029f4
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.00403fb0
test esi, esi
jne 0x402a2a
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.004040a0
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c98
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4030f0
Capabilities:
Query or enumerate registry value

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

Function at 0x403e34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x403e95
cmp word [0x45721c], 0xd7b2
jne 0x403e5d
cmp dword [0x457224], 0
jbe 0x403e5d
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x455070
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 0x403ebc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x455034], 0
jne 0x403eb1
push 0
push 0x455068
push 0x455070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ba0
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 0x405c06
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.00404220
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bf0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c0d
lea eax, [ebp - 0x10]
call fcn.00403fb0
ret

Function at 0x40846c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040448c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408485
test al, 0x10
jne 0x408489
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40aed4
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 0x40af0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040a0
jmp 0x40af16
mov eax, ebx
mov edx, esi
call fcn.00404004
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bee0
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 0x40bfb6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404048
lea eax, [ebp - 8]
call fcn.004044dc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040448c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfa0
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf99
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.0040448c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf83
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bfc8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf83
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 0x40bfa0
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfbd
lea eax, [ebp - 8]
call fcn.00403fb0
ret
Function at 0x40c4a0
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 0x40c504
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.00404220
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080ec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c50b
lea eax, [ebp - 0xc]
call fcn.00403fb0
ret

Function at 0x41a760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x457884
cmp dword [edi], 0
jne 0x41a7dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x457880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4553f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a738
lea eax, [esi + 5]
call fcn.0041a758
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a758
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 0x41a7b1
mov dword [0x457880], 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 0x41ba08
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 0x41ba0e
ret

Function at 0x41de8c
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 0x41dedd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dec4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41deb4
jmp 0x41dedd
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 0x41dec5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ca70
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42c9bc
call sub.user32.dll_EnumWindows
ret

Function at 0x42cb90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42cc0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042c5f0
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42cbb5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042c1f0
cmp dword [ebp - 4], 0
je 0x42cbf7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040448c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cc14
lea eax, [ebp - 4]
call fcn.00403fb0
ret

Function at 0x42fbd8
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 [0x457b5c], 0
je 0x42fd27
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x456050]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42fd27
mov eax, dword [0x457b60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x457b5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42fcf6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x457b5c]
call fcn.00413d30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42fcee
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42fcee
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42fcee
mov eax, dword [ebp - 0x14]
call fcn.00438870
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42fcee
push ebp
call fcn.0042fb94
pop ecx
test al, al
jne 0x42fcee
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42fcaa
mov eax, dword [ebp - 0x14]
call fcn.004373a0
dec eax
jle 0x42fcee
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.00403474
cmp byte [ebp - 1], 0
je 0x42fcee
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42fcee
mov edx, dword [ebp - 0x14]
mov eax, dword [0x457b60]
call fcn.0042f360
inc edi
dec ebx
jne 0x42fc3d
mov eax, dword [0x457b60]
cmp dword [eax + 8], 0
jle 0x42fd0e
mov eax, dword [0x457b60]
call fcn.0042f3f0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42fd27
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042f9fc
pop ecx
test al, al
jne 0x42fd27
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 0x433308
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 0x433354
mov eax, esi
call fcn.00448afc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x433354
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x433354
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 0x433493
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x433394
cmp eax, 0x108
ja 0x433394
mov eax, esi
call fcn.00448afc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43348a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x433493
jmp 0x43348a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x433473
cmp eax, 0x20a
ja 0x433473
test byte [esi + 0x50], 0x80
jne 0x4333c6
sub eax, 0x203
je 0x4333c3
sub eax, 3
je 0x4333c3
sub eax, 3
jne 0x4333c6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4333da
dec eax
je 0x4333ef
dec eax
je 0x43340c
dec eax
je 0x4333ef
jmp 0x433413
mov ecx, ebx
mov eax, dword [0x456050]
mov eax, dword [eax]
mov edx, esi
call fcn.00452350
jmp 0x43348a
cmp byte [esi + 0x5d], 1
jne 0x433405
mov eax, esi
mov si, 0xffed
call fcn.00403474
jmp 0x433493
or word [esi + 0x54], 1
jmp 0x43348a
and word [esi + 0x54], 0xfffe
jmp 0x43348a
mov eax, dword [0x457b18]
cmp byte [eax + 0x20], 0
je 0x43348a
mov eax, dword [0x457b18]
cmp dword [eax + 0x1c], 0
je 0x43348a
mov eax, dword [ebx]
mov edx, dword [0x457b18]
cmp eax, dword [edx + 0x1c]
jne 0x43348a
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.00448a40
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.00403474
jmp 0x433493
cmp eax, 0xb00b
jne 0x43348a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00431c28
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