joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466078
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49fae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00491e0d
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.0047ccb0
call fcn.00465540
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00465540
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.00465540
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.00465540
mov dword [edi], 0x4dd618
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.004668c0
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4661b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49fb54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.00466d40
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x4dd628
call fcn.00465740
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x4dd628
call fcn.00465740
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x4dd628
call fcn.00465740
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4dd628
call fcn.00465740
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004928c6
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x468320
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0046e7a0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x468419
lea ecx, [esp + 0x10]
push ecx
push str..htm
push accept
mov ecx, esi
call fcn.00468430
test eax, eax
jne 0x468419
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.00468430
test eax, eax
jne 0x468419
lea edx, [esp + 0x10]
push 0x4f89cc
push edx
call fcn.004806b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4683ea
lea eax, [esp + 0x10]
push 0x4f89c8
push eax
call fcn.004806b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4683ea
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4683ed
mov byte [esi], 0
push 0x4f8190
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x468430
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x468492
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x46b420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0214
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2ac]
mov ebp, ecx
push edi
mov ecx, esi
mov edi, dword [esp + 0x2ac]
lea eax, [ebp + 0x140]
xor ebx, ebx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp + 0x12c], eax
mov dword [ebp + 0x130], ecx
mov edx, dword [edi]
cmp dword [edx - 8], ebx
jne 0x46b499
mov eax, dword [esp + 0x2a4]
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x46dbdc
push edi
lea eax, [esp + 0x38]
push str._body_
push eax
call fcn.00490ade
push eax
mov ecx, edi
mov dword [esp + 0x2a0], ebx
call fcn.0049090e
lea ecx, [esp + 0x34]
mov dword [esp + 0x29c], 0xffffffff
call fcn.00490821
push str.__body_
mov ecx, edi
call fcn.00490bb1
mov ecx, dword [ebp + 0x134]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x144], ecx
push 0x522508
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0049088f
push 0x522508
lea ecx, [esp + 0x18]
mov dword [esp + 0x2a0], 1
call fcn.0049088f
push 0x522508
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 2
call fcn.0049088f
push 0x522508
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 3
call fcn.0049088f
mov eax, dword [0x4f949c]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1d0], eax
mov dword [esp + 0x1f4], eax
mov dword [esp + 0x230], eax
mov ecx, dword [esp + 0x2b4]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x2a4], 5
call fcn.0046e4b0
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [eax - 8]
cmp eax, ebx
jle 0x46da86
jmp 0x46b5a0

Function at 0x46e6e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a0298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x46e790
mov eax, dword [0x4f949c]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00490c05
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00490c54
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00490bb1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46e777
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x46e777
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00490821
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x471890
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0720
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x471a37
mov ecx, dword [0x4f949c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47198c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004705b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0049090e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00490821
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4f8190
call fcn.0049088f
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00470970
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0049090e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00490821
lea ecx, [esp + 0xc]
call fcn.00490ce9
mov ecx, dword [esp + 0xc]
push 0x4f8bcc
push ecx
call fcn.0047f674
add esp, 8
test eax, eax
je 0x4719b4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4718ed
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00490821
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00490821
jmp 0x471a3b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00471630
test eax, eax
push 0
je 0x471a1f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0046fcd0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x471a05
cmp eax, 0x64
jg 0x4719f3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471990
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471990
cmp eax, 0x64
jge 0x47198c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471990
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0046fcd0
mov esi, eax
jmp 0x471990
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x471a45
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x479ce0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x479d83
test eax, eax
jbe 0x479d83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x479d83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x479d2e
xor esi, esi
jmp 0x479d34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x479d5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00465970
add esi, eax
push esi
mov ebx, esi
call fcn.00465970
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x479d40
pop ebp
test edi, edi
pop edi
jne 0x479d83
test ebx, ebx
je 0x479d83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047ffb0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x479ec5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x479fdd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479fdd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049225f
mov esi, eax
test esi, esi
je 0x479fdd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x479fdd
mov ecx, esi
call fcn.00479e30
cmp edi, eax
jge 0x479fdd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x479f63
mov dword [esp + 0x34], 1
jmp 0x479fbe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x479fdd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00479430
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x492c02
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x492c3a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490c7c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00490c54
jmp 0x492c46
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4942f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x494332
call fcn.0049a27d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x494332
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x494329
xor eax, eax
jmp 0x49433a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00494340
pop edi
pop esi
pop ebx
ret 4

Function at 0x49a7ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a7db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a7f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a713
jmp 0x49a7f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a7f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a713
test edi, edi
mov eax, edi
jne 0x49a7e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f78
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4033f4
Capabilities:
Query or enumerate registry value

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

Function at 0x404190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x492048], 0
je 0x4041f1
cmp word [0x49221c], 0xd7b2
jne 0x4041b9
cmp dword [0x492224], 0
jbe 0x4041b9
mov eax, 0x492218
call dword [0x492234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48f070
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 0x404218
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48f034], 0
jne 0x40420d
push 0
push 0x48f068
push 0x48f070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406384
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 0x4063ea
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.004045a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f94
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063f1
lea eax, [ebp - 0x10]
call fcn.00404334
ret

Function at 0x40b5f4
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 0x40b62d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404424
jmp 0x40b636
mov eax, ebx
mov edx, esi
call fcn.00404388
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bcf8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb60
mov eax, dword [0x491364]
cmp byte [eax], 0
je 0x40bd74
mov eax, dword [0x491160]
call fcn.00402de4
call fcn.00402bfc
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.00408db0
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 0x40bdbc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x491108]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x492664]
call fcn.004057f0
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 0x40c618
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 0x40c6ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004043cc
lea eax, [ebp - 8]
call fcn.00404844
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004047f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6d8
mov eax, ebx
call fcn.00402a70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6d1
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.004047f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c700
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6bb
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 0x40c6d8
mov eax, dword [ebp - 0x10]
call fcn.00402aa0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6f5
lea eax, [ebp - 8]
call fcn.00404334
ret

Function at 0x40ccd0
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 0x40cd34
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.004045a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088c4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd3b
lea eax, [ebp - 0xc]
call fcn.00404334
ret
Function at 0x420cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x492884
cmp dword [esi], 0
jne 0x420d56
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x492880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x48f4f8
mov ecx, 2
call fcn.00402c90
mov edx, 0x420c88
mov eax, dword [ebp - 8]
add eax, 5
call fcn.00420ca8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.00420ca8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x420d1d
mov eax, dword [ebp - 8]
mov dword [0x492880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42229c
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 0x4222a2
ret

Function at 0x424844
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 0x424895
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42487c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42486c
jmp 0x424895
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 0x42487d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431414
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004047e4
xor eax, eax
push ebp
push 0x431544
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x431517
xor eax, eax
push ebp
push 0x431510
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004045f4
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4314e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4314d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004045f4
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.004047f4
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00402c90
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4314db
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4910b8]
mov dl, 1
mov eax, dword [0x407764]
call fcn.0040be7c
call fcn.00403d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43154b
lea eax, [ebp - 4]
call fcn.00404334
ret