joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4564dc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4564dc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4564c6
push eax
call ebp
test ax, ax
jl 0x4564d4
inc esi
add edi, 4
cmp esi, 6
jb 0x4564b8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00456190
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45a280
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45a2e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45a2e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45a2e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45a2e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45a2f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45ba90
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45baf6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45baf6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45bad7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45c280
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45c2b8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45ce70
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045cfc0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45ce90
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 0x45ce71
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045cfc0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45ce90
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 0x45cec0
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 0x45cf17
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45cf2d
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.0045cf50
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 0x45cf50
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 0x45cfe0
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 0x45d029
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 0x45d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4811e0
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.0045d050
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045d0d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045d0d0
lea ecx, [esi + 0xc]
call fcn.00471b67
lea ecx, [esi + 0x10]
call fcn.00471b67
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045f900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045f900
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045f900
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00471bdc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00471bdc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45e148
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481408
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 0x45e158
call fcn.0045e670
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45e23b
cmp byte [edi], 0
je 0x45e23b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45e17d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0045ce70
test eax, eax
jne 0x45e19d
push 0x5b5e04
lea ecx, [esi + 0x38]
call fcn.00471d19
jmp 0x45e23b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0045cec0
test eax, eax
jne 0x45e1cc
mov ecx, esi
call fcn.0045cfc0
push edi
add esi, 0x38
push 0x5b5de0
push esi
call fcn.0046f8b2
add esp, 0xc
jmp 0x45e23b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0045eef0
test eax, eax
je 0x45e234
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.0045e310
test eax, eax
jne 0x45e250
push edi
lea eax, [esi + 0x38]
push 0x5b5dbc
push eax
call fcn.0046f8b2
add esp, 0xc
mov ecx, esi
call fcn.0045e670
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 0x45e2f8
mov ecx, dword [0x5b60e0]
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.0046f8b2
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.0045cf70
test eax, eax
jne 0x45e2ba
push 0x5b5da0
lea ecx, [esi + 0x38]
call fcn.00471d19
jmp 0x45e2ca
push 0xfa
mov ecx, esi
call fcn.0045eef0
test eax, eax
jne 0x45e2e7
mov ecx, esi
call fcn.0045e670
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00471bdc
jmp 0x45e23b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00471bdc
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x473f80
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473fb8
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.00472037
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047200f
jmp 0x473fc4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47566e
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 0x4756b0
call fcn.0047b5b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4756b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4756a7
xor eax, eax
jmp 0x4756b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004756be
pop edi
pop esi
pop ebx
ret 4

Function at 0x47bae4
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 0x47bb12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47bb30
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ba4a
jmp 0x47bb30
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47bb30
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ba4a
test edi, edi
mov eax, edi
jne 0x47bb1a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x3f287b45
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x94845b9
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40ae00
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x450bf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
push 0xc
push eax
mov dword [esp + 0xb0], ecx
call fcn.0040d020
add esp, 8
mov ecx, 0x476618
call fcn.00419510
mov ebp, eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], ebp
call fcn.004217f0
xor edi, edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x12c], edi
call fcn.004217f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x12c], 1
call fcn.004217f0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x12c], 2
call fcn.004217f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x12c], 3
call fcn.004217f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x12c], 4
call fcn.004217f0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x54]
mov byte [esp + 0x130], 5
call fcn.0041e1c0
push 0x12
push 4
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
push ecx
mov byte [esp + 0x148], 6
call fcn.0040d020
add esp, 8
lea edx, [esp + 0x108]
push edx
mov ecx, 0x476618
call fcn.00419e50
push 0x455828
lea ecx, [esp + 0xa4]
mov byte [esp + 0x130], 7
call fcn.004216d0
push 0x455828
lea ecx, [esp + 0x94]
mov byte [esp + 0x130], 8
call fcn.004216d0
push 0x455828
lea ecx, [esp + 0x88]
mov byte [esp + 0x130], 9
call fcn.004216d0
push 1
lea eax, [esp + 0xec]
push eax
mov ecx, 0x476618
mov byte [esp + 0x134], 0xa
call fcn.00418d70
mov esi, eax
lea ecx, [esp + 0x88]
push ecx
push 0x47686c
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x13c], 0xb
call fcn.0040a870
push 0x4768a8
push eax
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x13c], 0xc
call fcn.0040a870
lea ecx, [esp + 0x94]
push ecx
push eax
lea edx, [esp + 0xd0]
push edx
mov byte [esp + 0x13c], 0xd
call fcn.0040a870
push esi
push eax
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x13c], 0xe
call fcn.0040a870
lea ecx, [esp + 0xa4]
push ecx
push eax
lea edx, [esp + 0xdc]
mov bl, 0xf
push edx
mov byte [esp + 0x13c], bl
call fcn.0040a870
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x104]
push edx
push eax
push ecx
mov byte [esp + 0x148], 0x10
call fcn.0040a870
lea ecx, [esp + 0x60]
call fcn.0041e200
lea ecx, [esp + 0xd0]
mov byte [esp + 0x12c], bl
call fcn.004214a0
lea ecx, [esp + 0xb8]
mov byte [esp + 0x12c], 0xe
call fcn.004214a0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x12c], 0xd
call fcn.004214a0
lea ecx, [esp + 0xac]
mov byte [esp + 0x12c], 0xc
call fcn.004214a0
lea ecx, [esp + 0xdc]
mov byte [esp + 0x12c], 0xb
call fcn.004214a0
lea ecx, [esp + 0xe8]
mov byte [esp + 0x12c], 0xa
call fcn.004214a0
lea ecx, [esp + 0x84]
mov byte [esp + 0x12c], 9
call fcn.004214a0
lea ecx, [esp + 0x90]
mov byte [esp + 0x12c], 8
call fcn.004214a0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x12c], 7
call fcn.004214a0
xor esi, esi
mov dword [esp + 0x1c], edi
mov ecx, ebp
call fcn.00424f50
test eax, eax
jle 0x40b7cf
jmp 0x40b0e0
Function at 0x448ca7
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00435270
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x45ab44]
je 0x448dae
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x448d17
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x448d1e
cmp ebx, ebx
jne 0x448d1e
xor eax, eax
jmp 0x448db1
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x448d2b
mov byte [esi + 0x20], bl
jmp 0x448d3f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x448d9a
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x448dae
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44a0e3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x46a298]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x44a132
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x44a132
push ebp
or al, 0x8d
test esp, edi
invalid
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00435200
leave
ret 8
Function at 0x4701a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x68000]
push edi
or ebp, 0xffffffff
jmp 0x4701c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4701c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4701b8
mov eax, 1
add ebx, ebx
jne 0x4701db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4701d0
jne 0x4701ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4701d0
xor ecx, ecx
sub eax, 3
jb 0x470200
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x470272
mov ebp, eax
add ebx, ebx
jne 0x47020b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x470218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47023c
inc ecx
add ebx, ebx
jne 0x470228
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47021d
jne 0x470239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47021d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47025c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47024d
jmp 0x4701be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47025c
add edi, ecx
jmp 0x4701be
pop esi
mov edi, esi
mov ecx, 0x10d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47027a
cmp byte [edi], 0xd
jne 0x47027a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47027f
lea edi, [esi + 0x6e000]
mov eax, dword [edi]
or eax, eax
je 0x4702f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91f60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x92018]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4702ac
mov ecx, edi
jns 0x4702db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x92020]
or eax, eax
je 0x4702f1
mov dword [ebx], eax
add ebx, 4
jmp 0x4702c9
call dword [esi + 0x9201c]
mov ebp, dword [esi + 0x92024]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47032b
sub esp, 0xffffff80
jmp 0x4058df
Function at 0x402b08
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.00404300
test esi, esi
jne 0x402b3e
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.004043f0
jmp 0x402b5c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402b5c
cmp dword [ebx], 0
je 0x402b5c
dec esi
jmp 0x402b45
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032bc
Capabilities:
Query or enumerate registry value

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

Function at 0x404100
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b704c], 0
je 0x404161
cmp word [0x4b7220], 0xd7b2
jne 0x404129
cmp dword [0x4b7228], 0
jbe 0x404129
mov eax, 0x4b721c
call dword [0x4b7238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b406c
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 0x404188
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b4030], 0
jne 0x40417d
push 0
push 0x4b4064
push 0x4b406c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042b4
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.004027e0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40427c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4065c4
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 0x40662a
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.00404570
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e80
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406614
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406631
lea eax, [ebp - 0x10]
call fcn.00404300
ret

Function at 0x40c27c
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 0x40c2b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043f0
jmp 0x40c2be
mov eax, ebx
mov edx, esi
call fcn.00404354
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c970
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7e8
mov eax, dword [0x4b6c34]
cmp byte [eax], 0
je 0x40c9ec
mov eax, dword [0x4b6864]
call fcn.00402c44
call fcn.00402948
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.00409434
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 0x40ca34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ca22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b67cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b7668]
call fcn.00405abc
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