joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x100010d6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x100010f9
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], ecx
jmp 0x100010cd
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10001a50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000accd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 8]
call fcn.100036b0
mov dword [ebp - 0x14], eax
push 0xc
lea ecx, [ebp - 0x20]
call fcn.10001a30
lea ecx, [ebp - 0x29]
call fcn.10001840
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x20]
call fcn.10003880
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.10003770
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.100036b0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
call fcn.10003770
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x20]
call fcn.10003770
add eax, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x28], 0
push 0
push 1
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
push edx
call fcn.10001040
test eax, eax
je 0x10001b2d
jmp 0x10001b17
lea ecx, [ebp - 0x20]
call fcn.100036b0
cmp dword [ebp - 0x28], eax
jae 0x10001b8e
lea ecx, [ebp - 0x20]
call fcn.100036b0
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.10003690
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x54], edx
push 0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x10001b83
mov byte [ebp - 0x21], 0
jmp 0x10001b8e
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
jmp 0x10001b2d
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
push edx
call fcn.10001030
mov byte [ebp - 0x22], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.100037f0
movzx eax, byte [ebp - 0x22]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 4
Function at 0x10001bd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 4
jge 0x10001c2f
push 0
mov eax, 4
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
lea edx, [ebp + ecx - 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10001c24
xor al, al
jmp 0x10001c98
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jmp 0x10001bf1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.100037d0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jge 0x10001c96
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp + 8]
call fcn.10003770
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x10001c8b
xor al, al
jmp 0x10001c98
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
jmp 0x10001c42
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 4
Function at 0x10001cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ad0d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1bc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x1bc]
cmp dword [edx + 0xc], 0xffffffff
jne 0x10001d3c
mov byte [ebp - 0x1b5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003a00
mov al, byte [ebp - 0x1b5]
jmp 0x10001e17
push 4
call fcn.10009c18
add esp, 4
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c0]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, 2
mov word [ebp - 0x24], cx
movzx edx, word [ebp + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.100039b0
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0xffffffff
jne 0x10001dda
mov byte [ebp - 0x1b6], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003a00
mov al, byte [ebp - 0x1b6]
jmp 0x10001e17
mov dword [ebp - 0x14], 1
push 4
lea ecx, [ebp - 0x14]
push ecx
push 1
push 6
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x1b7], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10003a00
mov al, byte [ebp - 0x1b7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10002200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000ae18
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.10001a30
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x10]
call fcn.10001850
mov byte [ebp - 4], 1
push str..dll
lea ecx, [ebp - 0x6c]
call fcn.10002c90
mov ecx, eax
call fcn.10002940
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x90]
push edx
call fcn.10001530
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.10005160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.10003a00
lea ecx, [ebp - 0x34]
call fcn.100039b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x10002318
push 0x1000c240
lea ecx, [ebp - 0x34]
call fcn.100039b0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10002318
lea ecx, [ebp - 0x1c]
call fcn.100036b0
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x1c]
call fcn.10003770
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x58]
push eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.100039b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x100023b8
push str.process
lea ecx, [ebp - 0x78]
call fcn.10002b40
mov ecx, eax
call fcn.10002940
push eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x60], eax
lea ecx, [ebp + 8]
push ecx
mov ecx, 0x1000e408
call fcn.10003580
mov edx, dword [ebp - 0x60]
mov dword [eax], edx
lea eax, [ebp + 8]
push eax
mov ecx, 0x1000e408
call fcn.10003580
cmp dword [eax], 0
je 0x10002382
mov byte [ebp - 0x35], 1
jmp 0x10002386
mov byte [ebp - 0x35], 0
mov cl, byte [ebp - 0x35]
mov byte [ebp - 0x36], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10003a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100037f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.10001f60
mov al, byte [ebp - 0x36]
jmp 0x100023e6
mov byte [ebp - 0x37], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10003a00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100037f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.10001f60
mov al, byte [ebp - 0x37]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10007a30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b22d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.10001a30
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.10008ce0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x10008d40
mov eax, dword [ebp - 0x18]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.100085f0
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10007abe
lea ecx, [ebp - 0x14]
call fcn.100085c0
jmp 0x10007ad0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10008640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 8

Function at 0x10007b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000b26d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1000e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.10001a30
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10008df0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x10008e50
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.100085f0
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x10007bfa
lea ecx, [ebp - 0x14]
call fcn.100085c0
jmp 0x10007c0c
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10008600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10009c0a
mov esp, ebp
pop ebp
ret 4
Function at 0x402ca8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ce5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d05
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040552c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ecc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004052bc
test esi, esi
jne 0x402f02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004053ac
jmp 0x402f20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d80
mov edi, eax
test esi, esi
je 0x402f20
cmp dword [ebx], 0
je 0x402f20
dec esi
jmp 0x402f09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6fb008], 0x8088405
inc edx
mov dword [ebx + 0x6fb008], edx
fld qword [ebx + 0x6fb06c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x404318
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x6fb024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404390
xor eax, eax
push ebp
push 0x404389
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 0x4043cc
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 0x404390
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x6fb024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x6fb024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4050bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7a904c], 0
je 0x40511d
cmp word [0x7a9220], 0xd7b2
jne 0x4050e5
cmp dword [0x7a9228], 0
jbe 0x4050e5
mov eax, 0x7a921c
call dword [0x7a9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x6fb0a8
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 0x405144
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6fb034], 0
jne 0x405139
push 0
push 0x6fb0a0
push 0x6fb0a8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405270
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.00402a94
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x7a904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405238
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ae0
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 0x406d10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406b63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406b63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406bec
xor eax, eax
push ebp
push 0x406be5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406928
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 0x406bca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406d4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406bca
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 0x406bec
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 0x406d06
cmp byte [ebp - 0xd], 0
jne 0x406c33
cmp byte [ebp - 0x12], 0
je 0x406d06
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406c4c
dec ebx
cmp byte [ebx], 0x2e
je 0x406c5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406c4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406d06
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406c98
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 0x406d06
cmp byte [ebp - 0xd], 0
je 0x406d06
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 0x406d06
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 0x40740c
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 0x407472
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.0040552c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403928
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40745c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407479
lea eax, [ebp - 0x10]
call fcn.004052bc
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040577c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a601
test al, 0x10
jne 0x40a605
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40aa28
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ac75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405310
cmp dword [0x6fb100], 1
jne 0x40aa73
cmp dword [0x6fb104], 4
jle 0x40aab2
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040577c
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40ac57
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.004054b4
jmp 0x40ac57
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402f54
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x40ac57
cmp byte [ebp - 0x15], 0x5a
ja 0x40ac57
mov eax, dword [ebp - 4]
call fcn.0040557c
cmp eax, 3
jl 0x40ac57
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40ac57
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40ac57
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40ac57
xor edx, edx
push ebp
push 0x40ac50
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402a94
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x40ac32
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x40ab81
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00402ad4
jmp 0x40ab45
test eax, eax
je 0x40ab94
call fcn.00404d20
call fcn.00404d20
jmp 0x40ac57
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x40ab45
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40ac10
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00402f54
cmp al, byte [ebp - 0x15]
jne 0x40ac10
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.0040557c
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.004057dc
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.004054b4
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004055c8
call fcn.00404d20
call fcn.00404d20
jmp 0x40ac57
inc edi
dec esi
jne 0x40ab9f
jmp 0x40ab45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ac7c
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.004052e0
ret