joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f3e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044f530
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44f400
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44f3e1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044f530
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44f400
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44f430
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44f487
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44f49d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044f4c0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44f4c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44f550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44f599
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44fa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044f5c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044f640
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044f640
lea ecx, [esi + 0xc]
call fcn.00468036
lea ecx, [esi + 0x10]
call fcn.00468036
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451e70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451e70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451e70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004680ab
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004680ab
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4506b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476bb8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4506c8
call fcn.00450be0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4507ab
cmp byte [edi], 0
je 0x4507ab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4506ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044f3e0
test eax, eax
jne 0x45070d
push 0x4af4d8
lea ecx, [esi + 0x38]
call fcn.004681e8
jmp 0x4507ab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044f430
test eax, eax
jne 0x45073c
mov ecx, esi
call fcn.0044f530
push edi
add esi, 0x38
push 0x4af4b4
push esi
call fcn.00466047
add esp, 0xc
jmp 0x4507ab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00451460
test eax, eax
je 0x4507a4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00450880
test eax, eax
jne 0x4507c0
push edi
lea eax, [esi + 0x38]
push 0x4af490
push eax
call fcn.00466047
add esp, 0xc
mov ecx, esi
call fcn.00450be0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x450868
mov ecx, dword [0x4afb58]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00466047
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044f4e0
test eax, eax
jne 0x45082a
push 0x4af474
lea ecx, [esi + 0x38]
call fcn.004681e8
jmp 0x45083a
push 0xfa
mov ecx, esi
call fcn.00451460
test eax, eax
jne 0x450857
mov ecx, esi
call fcn.00450be0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004680ab
jmp 0x4507ab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004680ab
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x453720
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45376a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x453799
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4537db
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46a44f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a487
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00468506
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004684de
jmp 0x46a493
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bb40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46bb82
call fcn.00471723
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bb82
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bb79
xor eax, eax
jmp 0x46bb8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bb90
pop edi
pop esi
pop ebx
ret 4

Function at 0x471c53
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471c81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471c9f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471bb9
jmp 0x471c9f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471c9f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471bb9
test edi, edi
mov eax, edi
jne 0x471c89
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x127e1076
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x7ff54d2e
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x1006bdf
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edi, 0x10027c0
push edi
mov esi, 0x80000001
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1006c30
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
push 0x10027b0
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.LRWizDLL.dll_Ordinal_5
push edi
push esi
mov dword [ebp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x1006c5d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
leave
ret 0x10

Function at 0x100b4b3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100305c
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x100b50b
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1003098
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100b4fe
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100b50d
xor eax, eax
pop esi
leave
ret 4
Function at 0x4084e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x4084ed
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
push eax
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov edi, dword [ecx*4 + 0x4122d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x408540
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
xor esi, esi
push 0x104
lea eax, [esp + 0x110]
push esi
push eax
call fcn.00408480
push eax
call fcn.00408430
add esp, 0x10
test eax, eax
je 0x4085b7
push 0x104
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004084e0
lea edx, [esp + 0x14]
push edx
call fcn.00407d40
mov al, byte [esp + 0x18]
add esp, 0x10
test al, al
je 0x4085a8
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push eax
push ecx
call edi
test eax, eax
je 0x4085c8
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call edi
inc esi
cmp esi, 6
jl 0x408550
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret
Function at 0x40bb39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412598
cmp edx, dword [eax]
je 0x40bb5b
add eax, 8
inc ecx
cmp eax, 0x412628
jl 0x40bb4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412598]
jne 0x40bc89
mov eax, dword [0x415d10]
cmp eax, 1
je 0x40bc63
test eax, eax
jne 0x40bb8c
cmp dword [0x4123e8], 1
je 0x40bc63
cmp edx, 0xfc
je 0x40bc89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bbc3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040da80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040adc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bc06
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040adc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f56c
push edi
call fcn.0040de90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040da80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040da90
lea eax, [ebp - 0xa0]
push 0x40f54c
push eax
call fcn.0040da90
push dword [esi + 0x41259c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040da90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ddff
add esp, 0x2c
pop edi
jmp 0x40bc89
lea eax, [ebp + 8]
lea esi, [esi + 0x41259c]
push 0
push eax
push dword [esi]
call fcn.0040adc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1093e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010905
pop ebp
jmp fcn.00010490
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x401021
xor eax, eax
leave
ret
lea ecx, [ebp - 0x40c]
push ecx
push eax
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40101d
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x402080
lea eax, [ebp - 0x40c]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40101d
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 8], ecx
inc eax
leave
ret

Function at 0x40134a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
call dword [0x402028]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x1000
push 0x403290
push ebx
mov dword [ebp - 8], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4013c3
xor edi, edi
test dword [ebp - 4], 0xfffffffc
jbe 0x4013c3
mov esi, 0x104
push esi
lea eax, [ebp - 0x220]
push eax
push dword [edi*4 + 0x403290]
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4013b8
push str.WebkitCore.dll
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4013ca
mov eax, dword [ebp - 4]
inc edi
shr eax, 2
cmp edi, eax
jb 0x401389
xor al, al
pop edi
pop esi
pop ebx
leave
ret
push esi
lea eax, [ebp - 0x220]
push eax
lea edi, [edi*4 + 0x403290]
push dword [edi]
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x18]
call entry0
pop ecx
test eax, eax
je 0x40143f
xor ebx, ebx
xor esi, esi
mov eax, dword [esi + 0x403008]
cmp eax, dword [ebp - 0x18]
jne 0x401433
mov eax, dword [esi + 0x40300c]
cmp eax, dword [ebp - 0x14]
jne 0x401433
mov eax, dword [esi + 0x403010]
cmp eax, dword [ebp - 0x10]
jne 0x401433
mov eax, dword [esi + 0x403014]
cmp eax, dword [ebp - 0xc]
jne 0x401433
push ebx
push dword [edi]
push dword [ebp - 8]
call fcn.0040107f
add esp, 0xc
add esi, 0x48
inc ebx
cmp esi, 0x288
jb 0x4013f9
mov al, 1
jmp 0x4013c5
Function at 0x402e0c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404448
test esi, esi
jne 0x402e43
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.00404538
jmp 0x402e64
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca8
mov dword [esp], eax
test esi, esi
je 0x402e64
cmp dword [ebx], 0
je 0x402e64
dec esi
jmp 0x402e4b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403510
Capabilities:
Query or enumerate registry value

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

Function at 0x4042a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a048], 0
je 0x404305
cmp word [0x48a21c], 0xd7b2
jne 0x4042cd
cmp dword [0x48a224], 0
jbe 0x4042cd
mov eax, 0x48a218
call dword [0x48a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
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 0x40432c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x404321
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406200
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 0x406266
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.004046b8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406250
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626d
lea eax, [ebp - 0x10]
call fcn.00404448
ret

Function at 0x40b854
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 0x40b88d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404538
jmp 0x40b896
mov eax, ebx
mov edx, esi
call fcn.0040449c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf58
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bdc0
mov eax, dword [0x4893c0]
cmp byte [eax], 0
je 0x40bfd4
mov eax, dword [0x4891cc]
call fcn.00402f40
call fcn.00402bd4
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.00408dc0
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 0x40c01c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c00a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x489178]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a664]
call fcn.0040566c
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 0x40c878
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 0x40c94e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044e0
lea eax, [ebp - 8]
call fcn.00404958
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404908
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c938
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c931
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.00404908
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c91b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c960
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c91b
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 0x40c938
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c955
lea eax, [ebp - 8]
call fcn.00404448
ret

Function at 0x40cebc
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 0x40cf20
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.004046b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408830
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf27
lea eax, [ebp - 0xc]
call fcn.00404448
ret