joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44e930
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
push esi
lea ecx, [esp + 0x54]
call fcn.0041b2a3
xor edi, edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x70], edi
call fcn.0041ac8b
mov eax, vtable.CRgn.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x78], 3
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x44]
call fcn.0041b20b
lea eax, [esi + 0x58]
cmp eax, edi
jne 0x40b615
xor eax, eax
jmp 0x40b618
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0041b56c
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
mov ebp, dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x18], esi
push eax
push ecx
push edi
push edi
call ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.0041b4dd
mov ecx, dword [esp + 0x44]
mov ebx, dword [sym.imp.GDI32.dll_GetPixel]
push edi
push edi
push ecx
call ebx
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
test edx, edx
jle 0x40b6e3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, eax
sub edx, ecx
xor esi, esi
test edx, edx
jle 0x40b6d2
mov eax, dword [esp + 0x44]
push esi
push edi
push eax
call ebx
cmp eax, dword [esp + 0x14]
jne 0x40b6c1
lea ecx, [esi + 1]
push ecx
lea edx, [edi + 1]
push edx
push esi
push edi
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.0041b4dd
mov eax, dword [esp + 0x24]
push 3
push eax
mov eax, dword [esp + 0x34]
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
lea ecx, [esp + 0x20]
call fcn.0041b535
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, eax
inc esi
sub edx, ecx
cmp esi, edx
jl 0x40b680
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x30]
inc edi
cmp edi, edx
jl 0x40b676
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b6f5
mov eax, dword [esi + 4]
push eax
mov eax, dword [esp + 0x48]
push eax
call fcn.0041b56c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
push 1
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov esi, vtable.CRgn.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 2
mov dword [esp + 0x20], esi
call fcn.00401960
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 1
mov dword [esp + 0x28], esi
call fcn.00401960
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 0
call fcn.0041b28a
lea ecx, [esp + 0x50]
mov dword [esp + 0x70], 0xffffffff
call fcn.0041b2f7
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba40
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba50
mov ecx, dword [esp + 8]
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret

Function at 0x40ba80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret
Function at 0x40fcd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x44eecb
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x466910]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
push str.HTML_Help
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40fd42
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40fd2f
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
jmp 0x40fdee
call fcn.00421f35
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fd5c
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x128], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.00439c80
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push str._sRazercfg.chm
push ecx
call fcn.00401880
mov esi, dword [esp + 0x1c]
add esp, 0x14
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov dword [esp + 0x11c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00438a4b
add esp, 0x118
ret
Function at 0x417f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx]
mov dword [esp], 0
test eax, eax
jne 0x417f78
xor eax, eax
add esp, 8
ret 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
push 0
push 0
push ecx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x417f70
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp]
add esp, 8
ret 4

Function at 0x419700
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450028
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x466910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x14]
push edx
push 1
xor esi, esi
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push 0x45a2a4
push esi
push edi
push ecx
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x4197f7
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x64], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x420c3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x420c82
call fcn.004243ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420c82
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x420c9e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004207b5
mov esi, eax
test edi, edi
je 0x420c9c
test ebx, ebx
je 0x420c9c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421659
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42167d
cmp dword [edi + 0x54], 0
jne 0x42167d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004243ca
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042161a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4233ee
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45061f
call fcn.0043a201
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x423413
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x423459
lea ecx, [ebp - 0x10]
call fcn.00401430
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00421789
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.0043a2d9
ret 8
Function at 0x428e05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x428e4d
call fcn.004243ca
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x428e4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x428e90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x428e79
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x428e79
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428e8d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x438a4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466910]
jne 0x438a55
repz ret
jmp fcn.00440e0c
Function at 0x4490d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004407f2
and dword [ebp - 4], 0
cmp dword [0x46a748], 0
mov ebx, eax
jne 0x449182
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x449233
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45a1c4
push edi
call esi
test eax, eax
je 0x449233
push eax
call fcn.00440780
mov dword [esp], 0x45a1b4
push edi
mov dword [0x46a748], eax
call esi
push eax
call fcn.00440780
mov dword [esp], 0x45a1a0
push edi
mov dword [0x46a74c], eax
call esi
push eax
call fcn.00440780
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46a750], eax
call esi
push eax
call fcn.00440780
pop ecx
mov dword [0x46a758], eax
test eax, eax
je 0x449182
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00440780
pop ecx
mov dword [0x46a754], eax
mov eax, dword [0x46a754]
cmp eax, ebx
je 0x4491da
cmp dword [0x46a758], ebx
je 0x4491da
push eax
call fcn.004407fb
push dword [0x46a758]
mov esi, eax
call fcn.004407fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4491da
test edi, edi
je 0x4491da
call esi
test eax, eax
je 0x4491d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4491d1
test byte [ebp - 0xc], 1
jne 0x4491da
or dword [ebp + 0x10], 0x200000
jmp 0x449213
mov eax, dword [0x46a74c]
cmp eax, ebx
je 0x449213
push eax
call fcn.004407fb
pop ecx
test eax, eax
je 0x449213
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x449213
mov eax, dword [0x46a750]
cmp eax, ebx
je 0x449213
push eax
call fcn.004407fb
pop ecx
test eax, eax
je 0x449213
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46a748]
call fcn.004407fb
pop ecx
test eax, eax
je 0x449233
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x449235
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ec4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404af0
test esi, esi
jne 0x402efb
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404be0
jmp 0x402f1c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d60
mov dword [esp], eax
test esi, esi
je 0x402f1c
cmp dword [ebx], 0
je 0x402f1c
dec esi
jmp 0x402f03
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403b0c
Capabilities:
Query or enumerate registry value

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

Function at 0x4048e8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a404c], 0
je 0x404949
cmp word [0x4a4220], 0xd7b2
jne 0x404911
cmp dword [0x4a4228], 0
jbe 0x404911
mov eax, 0x4a421c
call dword [0x4a4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a2070
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 0x404970
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a2030], 0
jne 0x404965
push 0
push 0x4a2068
push 0x4a2070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404aa4
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.00402b00
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a6c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406a40
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 0x406aa6
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.00404d60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034e0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a90
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406aad
lea eax, [ebp - 0x10]
call fcn.00404af0
ret

Function at 0x40c538
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 0x40c571
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404be0
jmp 0x40c57a
mov eax, ebx
mov edx, esi
call fcn.00404b44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40cc3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40caa4
mov eax, dword [0x4a3e44]
cmp byte [eax], 0
je 0x40ccb8
mov eax, dword [0x4a3b1c]
call fcn.00403304
call fcn.00402c8c
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.00409b18
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 0x40cd00
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ccee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a3a9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a4668]
call fcn.00405e90
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 0x40d5d4
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 0x40d6aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404b88
lea eax, [ebp - 8]
call fcn.00405000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d694
mov eax, ebx
call fcn.00402b00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d68d
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.00404fb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d677
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d6bc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d677
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 0x40d694
mov eax, dword [ebp - 0x10]
call fcn.00402b30
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6b1
lea eax, [ebp - 8]
call fcn.00404af0
ret

Function at 0x40dcd0
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 0x40dd34
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.00404d60
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409568
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd3b
lea eax, [ebp - 0xc]
call fcn.00404af0
ret

Function at 0x4230c4
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]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x423111
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.00422ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x423129
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x423130
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00422ed8
dec esi
jne 0x423152
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x424294
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a488c
cmp dword [edi], 0
jne 0x424310
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a4888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a2544
mov ecx, 2
call fcn.00402d20
mov edx, 0x42426c
lea eax, [esi + 5]
call fcn.0042428c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042428c
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 0x4242e5
mov dword [0x4a4888], 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 0x42595c
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 0x425962
ret

Function at 0x427f54
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 0x427fa5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x427f8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x427f7c
jmp 0x427fa5
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 0x427f8d
pop ebx
mov esp, ebp
pop ebp
ret