joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40402a
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, 0xffff
mov edi, 0x47c000
je 0x404049
push edi
call fcn.0040640a
jmp 0x40404f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44bb84]
mov ecx, esi
dec esi
test ecx, ecx
je 0x4040a3
mov ecx, dword [0x44bb48]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44bb80]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x40408a
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x404072
jmp 0x4040a3
mov edx, dword [ecx + 2]
mov dword [0x447b20], edx
mov edx, dword [ecx + 6]
mov dword [0x44bbe8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x4040b5
cmp bx, 0xffff
jne 0x4040b1
mov ebx, 0x3ff
jmp 0x40404f
xor ebx, ebx
jmp 0x40404f
mov dword [0x447b1c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.004063f1
push 0xfffffffffffffffe
push 0x447b40
call fcn.004064c3
push eax
push dword [0x4354e0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44bb6c]
mov esi, dword [0x44bb68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x40410f
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x404108
push eax
push ebx
call fcn.004064c3
add esi, edi
add ebx, edi
dec ebp
jne 0x4040fb
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405cc4
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ad08], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405ce8
test al, 0x10
jne 0x405ceb
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ad08
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405d16
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4026f0
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x402730
mov esi, dword [esp + 0x10]
cmp dword [esi + 4], 0
je 0x402730
mov ebx, dword [0x414030]
push eax
call ebx
test eax, eax
je 0x402730
push dword [esi + 4]
call ebx
test eax, eax
je 0x402730
push dword [esi + 4]
push dword [edi + 4]
call dword [section..rdata]
neg eax
sbb eax, eax
neg eax
jmp 0x402732
xor al, al
pop edi
pop esi
pop ebx
ret 4
Function at 0x4076e8
Capabilities:
Resolve dns
Send icmp echo request

Disassembly:
mov eax, 0x4124e0
call fcn.00411a30
sub esp, 0x28
mov eax, dword [0x41e654]
push esi
xor esi, esi
push str.ping5.client.sandai.net
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], esi
call dword [0x41420c]
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call dword [0x414220]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedStateExW]
test eax, eax
je 0x407733
inc esi
jmp 0x4077ab
or dword [ebp - 0x30], 0xffffffff
push ebx
push edi
call sub.iphlpapi.dll_IcmpCreateFile
cmp dword [ebp - 0x30], 0xffffffff
mov ebx, eax
jne 0x40776b
push 0x415f0c
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x40776b
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.00411a1e
add esp, 0xc
push 0x1c
call fcn.00411507
cmp dword [ebp - 0x30], 0xffffffff
pop ecx
mov edi, eax
je 0x4077a2
cmp dword [ebp - 0x30], esi
je 0x4077a2
push 0x3e8
push 0x1c
push edi
push esi
push esi
push esi
push dword [ebp - 0x30]
push ebx
call sub.iphlpapi.dll_IcmpSendEcho
cmp eax, esi
je 0x4077a2
jbe 0x4077a2
cmp dword [edi + 4], esi
jne 0x4077a2
xor esi, esi
inc esi
push edi
call fcn.00411a62
pop ecx
pop edi
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [0x414210]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.004118d5
leave
ret
Function at 0x40aa8a
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x10]
sub eax, 0x80
push edi
je 0x40aac6
sub eax, 0x40
je 0x40aabb
sub eax, 0x40
je 0x40aab0
or eax, 0xffffffff
jmp 0x40aba6
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x40aacf
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x40aacf
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0040a80e
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x40ab89
mov dword [ebp + 0x10], edi
push ebx
mov edx, ecx
movzx edi, byte [eax + 3]
movzx edi, byte [edi + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [edi*4 + 0x417e20]
xor edi, dword [ebx*4 + 0x417a20]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x417620]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x417220]
add eax, ecx
mov dword [esi], edi
add esi, ecx
dec edx
jne 0x40ab2b
sub eax, 0x20
dec dword [ebp + 0x10]
jne 0x40ab29
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x4109d6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412ea8
call fcn.00411a30
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.xl::win32::net::asyn_tcp_socket.0
call dword [0x414234]
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call dword [0x414234]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call dword [0x414234]
mov eax, dword [ebp + 8]
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x70], 0xffffffff
push 0x400
mov dword [esi + 8], eax
lea eax, [esi + 0x74]
push edi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x6c], di
call fcn.00411934
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi + 0x474], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x410b20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41e654]
push ebx
push esi
push edi
push 0x10
pop edi
xor eax, ebp
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00411934
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00411934
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getpeername
test eax, eax
jne 0x410b84
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x410ba9
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov dword [esi + 4], 3
push dword [ebp - 0x34]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d5
leave
ret

Function at 0x410de5
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41e654]
push esi
xor eax, ebp
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call fcn.00411934
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [esi + 0x6c]
add esp, 0xc
mov word [ebp - 0x14], 2
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x410e4f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x410e4f
push 1
push eax
mov ecx, esi
call fcn.00410bd1
jmp 0x410e56
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004118d5
leave
ret
Function at 0x410e63
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x410edd
push ebx
lea ebx, [esi + 0x14]
push edi
cmp dword [ebx + 0x18], 0x10
jb 0x410e7d
mov edx, dword [ebx + 4]
jmp 0x410e80
lea edx, [ebx + 4]
mov ecx, dword [esi + 0x30]
push 0
sub eax, ecx
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x410ec5
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x410e72
mov eax, dword [0x4142b4]
push dword [eax]
mov ecx, ebx
push 0
call dword [0x4142b0]
mov ecx, dword [esi + 8]
and dword [esi + 0x30], 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x410edb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x410edb
push 0
push eax
mov ecx, esi
call fcn.00410bd1
pop edi
pop ebx
pop esi
ret

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

Disassembly:
push ebp
mov eax, 0xa00c
lea ebp, [esp - 0x9f8c]
call fcn.004119e0
mov eax, dword [0x41e654]
push esi
xor eax, ebp
push 0
mov dword [ebp + 0x9f88], eax
push 0xa000
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x410f35
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x410faf
push 0
push eax
mov ecx, esi
call fcn.00410bd1
jmp 0x410faf
test eax, eax
jne 0x410f4a
mov ecx, esi
call fcn.00410aa5
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x410faf
push edi
push eax
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [0x4141d0]
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x7c], eax
jb 0x410f6c
mov ecx, dword [edi + 4]
jmp 0x410f6f
lea ecx, [edi + 4]
push ebx
lea ebx, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x80]
call dword [edx + 0xc]
push esi
call dword [0x414134]
test eax, eax
pop ebx
jne 0x410fae
cmp dword [esi + 0x10], 0xffffffff
je 0x410fae
cmp dword [esi + 4], 3
jne 0x410fae
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x410fae
push eax
push 0
mov ecx, edi
call dword [0x4142b0]
pop edi
mov ecx, dword [ebp + 0x9f88]
xor ecx, ebp
pop esi
call fcn.004118d5
add ebp, 0x9f8c
leave
ret
Function at 0x4110aa
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x410da4
mov eax, dword [esi + 0x54]
jmp 0x410da7
lea eax, [esi + 0x54]
push 0x400
lea ecx, [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x402
push dword [eax + 4]
call sub.WS2_32.dll_WSAAsyncGetHostByName
test eax, eax
mov dword [esi + 0x474], eax
jne 0x410ddc
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.00410bd1
pop esi
ret
mov dword [esi + 4], 1
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x411118
push eax
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x4110de
mov ecx, dword [esi + 0xc]
push 0x3f
push 0x401
push dword [ecx + 4]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x4110ef
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.00410bd1
pop esi
ret
cmp dword [esi + 0x68], 0x10
jb 0x4110fa
mov eax, dword [esi + 0x54]
jmp 0x4110fd
lea eax, [esi + 0x54]
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
mov ecx, esi
pop esi
jne 0x411113
jmp 0x410d96
jmp fcn.00410de5
cmp eax, 3
jne 0x4110ed
mov ecx, esi
pop esi
jmp fcn.00410e63
Function at 0x402f8c
Capabilities:
Query or enumerate registry value

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

Function at 0x403ce8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f048], 0
je 0x403d49
cmp word [0x46f21c], 0xd7b2
jne 0x403d11
cmp dword [0x46f224], 0
jbe 0x403d11
mov eax, 0x46f218
call dword [0x46f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d06c
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 0x403d70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d030], 0
jne 0x403d65
push 0
push 0x46d064
push 0x46d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4050f4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405324
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405177
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405324
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405177
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405340
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405200
xor eax, eax
push ebp
push 0x4051f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f3c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405360
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405200
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40531a
cmp byte [ebp - 0xd], 0
jne 0x405247
cmp byte [ebp - 0x12], 0
je 0x40531a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405260
dec ebx
cmp byte [ebx], 0x2e
je 0x40526f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40525f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40531a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40531a
cmp byte [ebp - 0xd], 0
je 0x40531a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40531a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4059ec
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 0x405a52
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.004040d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a59
lea eax, [ebp - 0x10]
call fcn.00403e64
ret

Function at 0x40aaa8
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 0x40aae1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f54
jmp 0x40aaea
mov eax, ebx
mov edx, esi
call fcn.00403eb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b19c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b014
mov eax, dword [0x46ea04]
cmp byte [eax], 0
je 0x40b218
mov eax, dword [0x46e804]
call fcn.004029bc
call fcn.0040283c
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.0040831c
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 0x40b260
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b24e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46e7b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46f664]
call fcn.00404f00
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 0x40bab4
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 0x40bb8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403efc
lea eax, [ebp - 8]
call fcn.00404374
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404324
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb74
mov eax, ebx
call fcn.004026d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb6d
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.00404324
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb57
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 0x40bb74
mov eax, dword [ebp - 0x10]
call fcn.004026f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb91
lea eax, [ebp - 8]
call fcn.00403e64
ret

Function at 0x40c094
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 0x40c0f8
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.004040d4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0ff
lea eax, [ebp - 0xc]
call fcn.00403e64
ret

Function at 0x41a278
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f884
cmp dword [edi], 0
jne 0x41a2f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46d3ec
mov ecx, 2
call fcn.004028d0
mov edx, 0x41a250
lea eax, [esi + 5]
call fcn.0041a270
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a270
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 0x41a2c9
mov dword [0x46f880], 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 0x41b888
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 0x41b88e
ret
Function at 0x41dd24
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 0x41dd75
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dd5c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dd4c
jmp 0x41dd75
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 0x41dd5d
pop ebx
mov esp, ebp
pop ebp
ret