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

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x21], 0
je 0x5d52d7
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
or eax, dword [ecx + 4]
je 0x5d52d7
mov eax, dword [esi]
push 2
push ecx
mov ecx, esi
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x5d5326
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x5d5340
push ebp
push dword [esp + 0x48]
push dword [esp + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esi + 0x20], 0
mov edi, eax
je 0x5d5311
test edi, edi
jns 0x5d531a
call ebx
cmp eax, 0x2714
je 0x5d52e4
test edi, edi
jns 0x5d531a
call fcn.005d4b70
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x2c
ret 0xc
push 0
lea ecx, [esp + 8]
call fcn.005bf200
push 0x6c44dc
lea eax, [esp + 8]
push eax
call fcn.005d7454
push 0
lea ecx, [esp + 0x14]
call fcn.005ccbb0
push 0x6c56d0
lea eax, [esp + 0x14]
push eax
call fcn.005d7454
int3

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

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x5d53c8
mov ecx, ebp
call fcn.005c9e90
push eax
mov ecx, ebp
call fcn.005c9b50
push eax
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x5d53b3
test esi, esi
jns 0x5d53bc
call ebx
cmp eax, 0x2714
je 0x5d5373
test esi, esi
jns 0x5d53bc
call fcn.005d4b70
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 0x14]
call fcn.005ccbb0
push 0x6c56d0
lea eax, [esp + 0x14]
push eax
call fcn.005d7454
int3

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

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x5d541a
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x5d5414
call fcn.005d4b70
add esp, 0x2c
ret 4
push 0
lea ecx, [esp + 4]
call fcn.005ccbb0
push 0x6c56d0
lea eax, [esp + 4]
push eax
call fcn.005d7454
int3

Function at 0x5d54b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x5d54e2
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x5d54dc
call fcn.005d4b70
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 4]
call fcn.005ccbb0
push 0x6c56d0
lea eax, [esp + 4]
push eax
call fcn.005d7454
int3

Function at 0x5f80a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f7f23

Function at 0x5fcb9c
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005fcaa1

Function at 0x5fdcba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005fd97a
Function at 0x60d560
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005bd7a0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
push 0xf
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a8150
add esp, 8
cmp dword [ebp - 4], 0
jg 0x60d5c1
mov edx, dword [ebp - 4]
push edx
call fcn.0060d980
add esp, 4
test eax, eax
je 0x60d5c1
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.004a8a40
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005bd7a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 6
je 0x60daac
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0060e340
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x60daac
mov eax, dword [ebp - 4]
jmp 0x60db03
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
push 0xf
mov eax, dword [ebp + 8]
push eax
call fcn.004a8150
add esp, 8
cmp dword [ebp - 4], 0
jg 0x60db00
mov ecx, dword [ebp - 4]
push ecx
call fcn.0060d980
add esp, 4
test eax, eax
je 0x60db00
push 0xa
mov edx, dword [ebp + 8]
push edx
call fcn.004a8a40
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x610830
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005bd7a0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x610875
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004b9f10
add esp, 0x14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x612da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6359c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.004531b0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x38], 0xffffffff
mov byte [ebx + 0x3c], 0
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edi, 0x6dbcf0
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x40], esi
and esi, 1
mov dword [ebx], vtable.Poco::Base64DecoderBuf.0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [ecx]
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0x6dbef8
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, 0x6dbef8
mov dword [ebx + 0x50], eax
mov eax, 0x6dbdf8
cmove eax, edi
mov dword [ebx + 0x54], eax
call fcn.005c5f80
test esi, esi
je 0x612ea3
cmp byte [0x6dbdf1], 0
jne 0x612ee1
or eax, 0xffffffff
mov ecx, 0x40
mov edi, 0x6dbdf8
rep stosd dword es:[edi], eax
xor ecx, ecx
nop dword [eax]
movzx eax, byte [ecx + 0x69c160]
mov byte [eax + 0x6dbdf8], cl
inc ecx
cmp ecx, 0x40
jb 0x612e80
mov byte [0x6dbe35], 0
mov byte [0x6dbdf1], 1
jmp 0x612ee1
cmp byte [0x6dbdf0], 0
jne 0x612ee1
or eax, 0xffffffff
mov ecx, 0x40
rep stosd dword es:[edi], eax
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx + 0x6dbcf0], al
inc eax
cmp eax, 0x40
jb 0x612ec0
mov byte [0x6dbd2d], 0
mov byte [0x6dbdf0], 1
lea ecx, [ebp + 0xc]
call fcn.005c5620
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x62ce40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6353e8
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x62ceaf
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00451010
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.005bf180
push 0x6c451c
lea eax, [ebp - 0x50]
push eax
call fcn.005d7454
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x298bb0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40104d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40106e
cmp esi, eax
jae 0x401047
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jae 0x401047
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4015e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b521
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
lea edi, [esi + 0x14]
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x18], 0
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x18], 1
call fcn.00415332
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov ebx, dword [esp + 0x30]
test ebx, ebx
mov byte [esp + 0x18], 2
je 0x40167e
push ebx
call fcn.00408c0d
add esp, 4
push eax
push ebx
mov ecx, edi
call fcn.00401300
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x402ce0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d3d
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402d43
xor al, al
add esp, 0x14
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x402d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 4]
push eax
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402e24
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x402e23
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402e23
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x402e22
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x402e1b
cmp dword [esp + 0x14], 7
jne 0x402e1b
cmp byte [edi], 0
mov esi, edi
je 0x402e1b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
mov ebp, dword [esp + 0x20]
nop
push ebp
push esi
call ebx
test eax, eax
je 0x402e18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x402e00
xor ebx, ebx
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, dword [esp + 4]
cmp eax, ebx
pop ebx
je 0x402e34
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret
Function at 0x402fa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b7e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
jne 0x402fed
mov esi, 0x104
push esi
call fcn.00415643
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x18], ebx
jne 0x403014
push 0x420060
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 0x8007000e
call fcn.0040970a
mov edx, dword [ebp - 0x14]
push ebx
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40305a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403034
call esi
jmp 0x403040
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x403049
mov eax, 0x80004005
mov dword [ebp - 0x24], eax
push 0x420060
lea eax, [ebp - 0x24]
push eax
call fcn.0040970a
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 0x41c880
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x403087
call fcn.00402cb0
mov dword [ebp - 0x28], eax
push 0x420060
lea eax, [ebp - 0x28]
push eax
call fcn.0040970a
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
jmp 0x4030a5
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00415648
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
add esp, 4
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b8e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, 1
mov eax, 0xc
push 0x10000
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], ecx
mov word [esp + 0x70], di
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.00415643
mov ebp, dword [esp + 0xd4]
push 0x8000
mov esi, eax
push ebp
push esi
call fcn.004093b0
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
push edi
push 8
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x403989
push esi
call fcn.00415648
add esp, 4
cmp ebx, edi
je 0x4039db
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x2c]
push edx
call esi
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret
push ebp
push 0x1fff
push 0x10
push edi
push 0x6b
lea ecx, [esp + 0xb4]
call fcn.004015e0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0xcc], edi
call fcn.00403830
push 0x4201c8
lea ecx, [esp + 0x84]
push ecx
call fcn.0040970a
int3
Function at 0x4064d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x1c]
lea ebp, [ebx + 0xc]
mov dword [ebp], esi
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x10], esi
mov edx, dword [eax + 0xc]
mov ecx, 1
sub ecx, edx
or ecx, dword [eax + 8]
jge 0x406503
push esi
mov ecx, edi
call fcn.004011d0
mov eax, dword [edi]
cmp dword [eax - 8], esi
jl 0x4065a7
mov ecx, dword [esp + 0x18]
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov word [edx], si
mov ecx, dword [ecx]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ebx + 4]
push ebp
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 0xea
je 0x406544
test esi, esi
jne 0x406573
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov esi, dword [ecx]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, edi
call fcn.00403650
mov ecx, dword [ebx + 4]
push eax
push ebp
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi]
test eax, eax
je 0x406586
push eax
call fcn.00408c0d
add esp, 4
test eax, eax
jl 0x4065a7
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x4065a7
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov word [edx + eax*2], 0
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret 8
push 0x80070057
call fcn.00401000
int3

Function at 0x4065c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov dword [edi], 0
mov eax, dword [ebx]
mov esi, dword [eax - 4]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ebp, ecx
mov ecx, 1
sub ecx, esi
or ecx, edx
jge 0x4065f3
push 0
mov ecx, ebx
call fcn.004011d0
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
push edi
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
push ecx
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x406624
cmp esi, 0xea
jne 0x40665a
mov eax, dword [edi]
lea eax, [eax*4 + 4]
push eax
mov ecx, ebx
mov dword [edi], eax
call fcn.00403650
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
push edi
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
push ecx
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
test eax, eax
je 0x40666d
push eax
call fcn.00408c0d
add esp, 4
test eax, eax
jl 0x40668d
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x40668d
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret 0x10
push 0x80070057
call fcn.00401000
int3
Function at 0x406cd0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.00401160
mov ebp, dword [esp + 0x24]
xor esi, esi
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
add esi, 0x104
sub edx, esi
or ecx, edx
jge 0x406d0b
push esi
mov ecx, edi
call fcn.004011d0
test esi, esi
mov eax, dword [edi]
jl 0x406d78
cmp esi, dword [eax - 8]
jg 0x406d78
mov edx, dword [esp + 0x1c]
push ebp
push esi
push eax
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
mov eax, dword [esp + 0x24]
push edx
mov word [ecx + esi*2], 0
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
mov eax, dword [edi]
test eax, eax
je 0x406d4e
push eax
call fcn.00408c0d
add esp, 4
test eax, eax
jl 0x406d78
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x406d78
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
mov word [edx + eax*2], 0
cmp esi, dword [esp + 0x28]
ja 0x406d71
lea eax, [ebx + 1]
cmp eax, esi
jae 0x406ce5
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push 0x80070057
call fcn.00401000
int3

Function at 0x406fc0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov esi, eax
call fcn.00401160
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, esi
or ecx, edx
jge 0x407005
push esi
mov ecx, edi
call fcn.004011d0
test esi, esi
mov eax, dword [edi]
jl 0x407053
cmp esi, dword [eax - 8]
jg 0x407053
push esi
push eax
mov dword [eax - 0xc], esi
mov ecx, dword [edi]
push ebx
push ebp
mov word [ecx + esi*2], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x40703a
push eax
call fcn.00408c0d
add esp, 4
test eax, eax
jl 0x407053
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x407053
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
pop edi
mov word [edx + eax*2], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret
push 0x80070057
call fcn.00401000
int3