joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff004
push eax
add esp, 0xfffff0bc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x46a3f9
test edi, edi
jle 0x46a3a4
mov ecx, 0x46a4f4
mov dl, 1
mov eax, dword [0x407c0c]
call fcn.0040c2ec
call fcn.00403f84
jmp 0x46a3f9
cmp word [ebx + 0x2182], 0
jne 0x46a3c6
mov ecx, 0x46a4f4
mov dl, 1
mov eax, dword [0x407c0c]
call fcn.0040c2ec
call fcn.00403f84
jmp 0x46a3f9
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0x2184]
call dword [ebx + 0x2180]
cmp byte [esp], 0
jne 0x46a3f8
mov ecx, 0x46a4f4
mov dl, 1
mov eax, dword [0x407c0c]
call fcn.0040c2ec
call fcn.00403f84
jmp 0x46a3f9
inc edi
mov eax, esi
call fcn.00418f58
cmp edx, 0
jne 0x46a408
cmp eax, 0
je 0x46a388
mov byte [ebx + 0x1fb0], 0
mov eax, ebx
call fcn.0046a208
cmp dword [ebx + 0x1f88], 0
jne 0x46a43b
mov ecx, 0x46a508
mov dl, 1
mov eax, dword [0x469abc]
call fcn.0040c2ec
call fcn.00403f84
mov ecx, 0x46a520
mov dl, 2
mov eax, ebx
call fcn.0046a6e4
mov word [ebx + 0x1f84], 2
mov ax, word [ebx + 0x1f7c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x1f86], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.00418f44
mov eax, esi
call fcn.00418f58
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x46a48b
call fcn.004036f8
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.00419150
push edi
lea eax, [ebx + 0x1f84]
push eax
push 0
mov eax, esi
call fcn.00418f58
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x46a4b7
call fcn.004036f8
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0x2194]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x2172], 0
je 0x46a4e1
mov edx, ebx
mov eax, dword [ebx + 0x2174]
call dword [ebx + 0x2170]
add esp, 0x1f44
pop edi
pop esi
pop ebx
ret

Function at 0x46a7d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46a8a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x1f40
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x2194]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x1f74], eax
cmp word [ebx + 0x216a], 0
je 0x46a892
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x46a8bc
call fcn.0040990c
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x1f74]
mov edx, ebx
mov eax, dword [ebx + 0x216c]
call dword [ebx + 0x2168]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a8af
lea eax, [ebp - 8]
call fcn.004045a8
ret
Function at 0x46fc04
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46fc32
mov eax, ebx
call fcn.004706bc
cmp dword [ebx + 0x3c], 0
je 0x46fc2b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46fca3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x46fc95
cmp dword [ebx + 8], 0
je 0x46fc54
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46fc66
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46fc95
cmp dword [ebx + 8], 0
je 0x46fc47
cmp eax, 3
je 0x46fc79
dec eax
jne 0x46fc47
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46fc47
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46fc47
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46fcc1
cmp dword [ebx + 0x10], 0xcc
je 0x46fcc1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046fccc
pop ebx
ret

Function at 0x4826e4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov dword [esp], 0x11
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48270d
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409390
jmp 0x482714
mov eax, ebx
call fcn.004045a8
add esp, 0x18
pop ebx
ret

Function at 0x48271c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x48273e
xor eax, eax
pop edx
ret
mov al, 1
pop edx
ret

Function at 0x482744
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004045a8
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4827c9
xor ecx, ecx
push ebp
push 0x4827bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4827b5
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [ebp - 4], cl
mov cl, byte [edx + 1]
mov byte [ebp - 3], cl
mov cl, byte [edx + 2]
mov byte [ebp - 2], cl
mov al, byte [edx + 3]
mov byte [ebp - 1], al
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4827c9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482d24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], ecx
mov esi, eax
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x1c]
mov edx, dword [0x4699ac]
call fcn.004051d4
xor eax, eax
push ebp
push 0x482f17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
call fcn.00404860
add ax, 7
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x14]
call fcn.00404860
mov edi, eax
lea edx, [edi + 0xa]
lea eax, [ebp - 8]
call fcn.00404be4
lea eax, [ebp - 8]
call fcn.00404ab0
lea edx, [ebp - 0x1c]
mov ecx, 1
call fcn.004076e4
lea eax, [ebp - 8]
call fcn.00404ab0
inc eax
lea edx, [ebp - 0x1a]
mov ecx, 2
call fcn.004076e4
lea eax, [ebp - 8]
call fcn.00404ab0
add eax, 3
lea edx, [ebp - 0x18]
mov ecx, 1
call fcn.004076e4
lea eax, [ebp - 8]
call fcn.00404ab0
add eax, 4
lea edx, [ebp - 0x16]
mov ecx, 2
call fcn.004076e4
mov esi, edi
test esi, esi
jle 0x482e13
mov ebx, 1
lea eax, [ebp - 8]
call fcn.00404ab0
lea edx, [ebx + 4]
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + ebx - 1]
mov byte [eax + edx + 1], cl
inc ebx
dec esi
jne 0x482df9
lea esi, [edi + 6]
test esi, esi
jle 0x482e2d
mov ebx, 1
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
xor byte [ebp - 0x10], al
inc ebx
dec esi
jne 0x482e1f
lea eax, [ebp - 8]
call fcn.00404ab0
lea edx, [edi + 7]
lea eax, [eax + edx - 1]
lea edx, [ebp - 0x10]
mov ecx, 1
call fcn.004076e4
mov ebx, 1
lea eax, [ebp - 8]
call fcn.00404ab0
lea edx, [ebx + edi + 7]
mov byte [eax + edx - 1], 0
inc ebx
cmp ebx, 4
jne 0x482e4e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004045fc
push 0x482f30
lea edx, [ebp - 0x24]
xor eax, eax
mov al, byte [ebp - 0x1c]
call fcn.00408d44
push dword [ebp - 0x24]
push 0x482f44
lea edx, [ebp - 0x28]
movzx eax, word [ebp - 0x1a]
call fcn.00408d44
push dword [ebp - 0x28]
push 0x482f54
lea edx, [ebp - 0x2c]
xor eax, eax
mov al, byte [ebp - 0x18]
call fcn.00408d44
push dword [ebp - 0x2c]
push 0x482f64
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0x16]
call fcn.00408d44
push dword [ebp - 0x30]
push 0x482f74
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
mov edx, 0xa
call fcn.00404920
mov edx, dword [ebp - 0x20]
mov eax, dword [0x4f9dfc]
mov eax, dword [eax]
call fcn.0048230c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482f1e
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004045cc
lea eax, [ebp - 0x1c]
mov edx, dword [0x4699ac]
call fcn.004050a8
lea eax, [ebp - 8]
call fcn.004045a8
ret
Function at 0x48eab8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48eb90
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fbf34], 0
jne 0x48eb74
lea eax, [ebp - 4]
mov edx, 0x48eba8
call fcn.00404640
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a58
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48eb74
mov eax, ebx
call fcn.00402754
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48eb6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x48eb57
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48ebb8
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x48eb57
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4fbf34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb74
mov eax, dword [ebp - 0xc]
call fcn.00402774
ret
mov ebx, dword [0x4fbf34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eb97
lea eax, [ebp - 4]
call fcn.004045a8
ret

Function at 0x4a11dc
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4fbf58], 0
jne 0x4a11ff
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4a1150
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4fbf58], eax
ret
Function at 0x4c084c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c0aac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c08af
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c0364
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cb70
cmp al, 1
jne 0x4c08af
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c062c
test al, al
je 0x4c0a3b
cmp dword [ebp - 8], 0
jge 0x4c08cd
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c0364
mov eax, dword [ebp - 0x210]
call fcn.00404860
cmp ebx, eax
jge 0x4c0917
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c0364
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4fa054]
and eax, 0xff
bt dword [edx], eax
jae 0x4c0917
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c092b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c0828
cmp ebx, dword [ebp - 8]
je 0x4c0a2d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c0957
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9a50]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c0a1a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9a50]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044ae34
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039b4
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f9a50]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044ae34
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0a21
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c0a8e
cmp dword [ebp - 8], 0
jge 0x4c0a46
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c0364
mov eax, dword [ebp - 0x218]
call fcn.00404860
cmp eax, dword [ebp - 8]
jg 0x4c0a80
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c0364
mov eax, dword [ebp - 0x21c]
call fcn.00404860
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c0828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0ab3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004045cc
ret
Function at 0x402fe4
Capabilities:
Query or enumerate registry value

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

Function at 0x403d48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c04c], 0
je 0x403da9
cmp word [0x45c220], 0xd7b2
jne 0x403d71
cmp dword [0x45c228], 0
jbe 0x403d71
mov eax, 0x45c21c
call dword [0x45c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
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 0x403dd0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x403dc5
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cec
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 0x405d52
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.00404134
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d59
lea eax, [ebp - 0x10]
call fcn.00403ec4
ret

Function at 0x40adb0
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 0x40ade9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb4
jmp 0x40adf2
mov eax, ebx
mov edx, esi
call fcn.00403f18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b4a4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b31c
mov eax, dword [0x45b148]
cmp byte [eax], 0
je 0x40b520
mov eax, dword [0x45af4c]
call fcn.00402a14
call fcn.004028ac
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.004085f0
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 0x40b568
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b556
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45aef8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c668]
call fcn.004051e4
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 0x40be10
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 0x40bee6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f5c
lea eax, [ebp - 8]
call fcn.004043d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404384
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bed0
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bec9
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.00404384
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40beb3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bef8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40beb3
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 0x40bed0
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beed
lea eax, [ebp - 8]
call fcn.00403ec4
ret

Function at 0x40c3f0
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 0x40c454
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.00404134
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408118
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c45b
lea eax, [ebp - 0xc]
call fcn.00403ec4
ret

Function at 0x41db24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c888
cmp dword [edi], 0
jne 0x41dba0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a3fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41dafc
lea eax, [esi + 5]
call fcn.0041db1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db1c
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 0x41db75
mov dword [0x45c884], 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 0x41f0dc
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 0x41f0e2
ret
Function at 0x421530
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 0x421581
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421568
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421558
jmp 0x421581
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 0x421569
pop ebx
mov esp, ebp
pop ebp
ret