joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401870
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call sub.cygwin1.dll___getreent
lea ebx, [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.FATAL:
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]

Function at 0x401da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sub.cygwin1.dll_strlen
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
lea eax, [ebx + eax + 0x14]
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call fcn.00401c60
mov edi, eax
movzx eax, byte [esi]
test al, al
je 0x401e41
mov edx, edi
jmp 0x401df8
cmp al, 0x5c
je 0x401e58
mov byte [edx], al
lea ebx, [esi + 1]
add edx, 1
mov byte [edx], 0
movzx eax, byte [ebx]
test al, al
je 0x401e41
mov esi, ebx
cmp al, 0x25
jne 0x401de0
movzx eax, byte [esi + 1]
lea ebx, [esi + 1]
cmp al, 0x68
je 0x401e80
cmp al, 0x70
jne 0x401e2c
mov eax, dword [ebp + 0x10]
lea ebx, [esi + 2]
mov dword [esp + 8], 0x40740f
mov dword [esp], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
call sub.cygwin1.dll_snprintf
mov dword [esp], edi
call sub.cygwin1.dll_strlen
lea edx, [edi + eax]
mov byte [edx], 0
movzx eax, byte [ebx]
test al, al
jne 0x401df6
mov dword [esp], edi
call sub.cygwin1.dll_strlen
cmp dword [ebp - 0x10], eax
jbe 0x401eb0
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esi + 1]
lea ebx, [esi + 1]
cmp al, 0x72
je 0x401ea2
cmp al, 0x74
je 0x401e94
cmp al, 0x6e
jne 0x401dec
mov byte [edx], 0xa
lea ebx, [esi + 2]
add edx, 1
jmp 0x401dec
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 2]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.cygwin1.dll_strcpy
jmp 0x401e2c
mov byte [edx], 9
lea ebx, [esi + 2]
add edx, 1
jmp 0x401dec
mov byte [edx], 0xd
lea ebx, [esi + 2]
add edx, 1
jmp 0x401dec
mov dword [esp + 0xc], str.strlen_buf____len
mov dword [esp + 8], str.expand_host_and_port
mov dword [esp + 4], 0x24a
mov dword [esp], str.connect.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
lea edi, [edi]

Function at 0x401ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call sub.cygwin1.dll___getreent
lea ebx, [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x4020e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [0x40a02c]
test eax, eax
je 0x402136
call sub.cygwin1.dll___getreent
lea ebx, [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.DEBUG:
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x402bb0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x402cc6
cmp esi, 0
jl 0x402ca2
mov edi, 0
jne 0x402be8
jmp 0x402c27
sub esi, ebx
add edi, ebx
test esi, esi
jle 0x402c27
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_recv
cmp eax, 0xffffffff
mov ebx, eax
je 0x402c61
test eax, eax
jne 0x402be0
sub esi, ebx
add edi, ebx
mov dword [esp], str.Connection_closed_by_peer._n
call fcn.00401870
test esi, esi
jg 0x402be8
mov eax, dword [0x407030]
test eax, eax
je 0x402c80
mov dword [esp + 4], edi
mov dword [esp], str.atomic_in_____d_bytes__n
call fcn.004020e0
mov dword [esp + 8], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], 0x4075d7
mov dword [esp + 4], eax
call fcn.00402550
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], str.atomic_in___failed_to_recv_____d_n
mov dword [esp + 4], eax
call fcn.00401870
jmp 0x402be0
mov dword [esp], str.atomic_in_____some_bytes__n
call fcn.004020e0
mov dword [esp], 0x407731
call fcn.004020e0
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.0_size
mov dword [esp + 8], str.atomic_in
mov dword [esp + 4], 0x741
mov dword [esp], str.connect.c
call sub.cygwin1.dll___assert_func
mov dword [esp + 0xc], str.buf___NULL
mov dword [esp + 8], str.atomic_in
mov dword [esp + 4], 0x740
mov dword [esp], str.connect.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
Function at 0x402cf0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test ecx, ecx
je 0x402df6
cmp esi, 0
jl 0x402dd2
mov edi, 0
jne 0x402d28
jmp 0x402d70
sub esi, ebx
add edi, ebx
test esi, esi
jle 0x402d70
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_send
cmp eax, 0xffffffff
mov ebx, eax
jne 0x402d20
call sub.cygwin1.dll___errno
sub esi, ebx
add edi, ebx
mov eax, dword [eax]
mov dword [esp], str.atomic_out___failed_to_send_____d_n
mov dword [esp + 4], eax
call fcn.00401870
test esi, esi
jg 0x402d28
nop
mov edx, dword [0x407030]
test edx, edx
je 0x402db0
mov dword [esp + 4], edi
mov dword [esp], str.atomic_out______d_bytes__n
call fcn.004020e0
mov dword [esp + 8], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], 0x407638
mov dword [esp + 4], eax
call fcn.00402550
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.atomic_out_____some_bytes__n
call fcn.004020e0
mov dword [esp], str.____xx_xx_xx_xx_..._n
call fcn.004020e0
add esp, 0x1c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.0_size
mov dword [esp + 8], str.atomic_out
mov dword [esp + 4], 0x727
mov dword [esp], str.connect.c
call sub.cygwin1.dll___assert_func
mov dword [esp + 0xc], str.buf___NULL
mov dword [esp + 8], str.atomic_out
mov dword [esp + 4], 0x726
mov dword [esp], str.connect.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]

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

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
test edx, edx
je 0x4037d2
lea esi, [edx - 1]
mov ebx, dword [ebp + 0xc]
test esi, esi
jle 0x4037ba
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.cygwin1.dll_recv
cmp eax, 0xffffffff
je 0x4037e0
test eax, eax
jne 0x4037f3
mov byte [ebx], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], 0x4075d7
mov dword [esp + 4], eax
call fcn.004035f0
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], str.recv___error_n
call fcn.00401ee0
mov eax, 0xffffffff
jmp 0x4037d2
cmp byte [ebx], 0xa
je 0x403804
sub esi, 1
add ebx, 1
test esi, esi
jg 0x403795
jmp 0x4037ba
add ebx, 1
jmp 0x4037ba
Function at 0x403810
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x2800
mov dword [esp], 0x40a080
mov dword [esp + 8], eax
call sub.cygwin1.dll_vsnprintf
mov dword [esp + 4], 0x40a080
mov dword [esp], 0x407638
call fcn.004035f0
mov ecx, 0x40a080
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x403851
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
mov eax, dword [ebp + 8]
add dl, dl
sbb ecx, 3
sub ecx, 0x40a080
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40a080
mov dword [esp], eax
call sub.cygwin1.dll_send
xor edx, edx
add eax, 1
je 0x4038b1
mov eax, edx
leave
ret
call sub.cygwin1.dll___errno
mov eax, dword [eax]
mov dword [esp], str.failed_to_send_http_request._errno_d_n
mov dword [esp + 4], eax
call fcn.004020e0
mov edx, 0xffffffff
jmp 0x4038ad

Function at 0x4040d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [str.0123456789.]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_strspn
mov dword [esp], esi
mov ebx, eax
call sub.cygwin1.dll_strlen
cmp ebx, eax
je 0x404173
mov dword [esp + 4], esi
mov dword [esp], str.resolving_host_by_name:__s_n
call fcn.004020e0
mov dword [esp], esi
call sub.cygwin1.dll_gethostbyname
test eax, eax
mov ebx, eax
je 0x404187
movsx edx, word [eax + 0xa]
lea ecx, [edi + 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
movzx eax, word [ebx + 8]
mov word [edi], ax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_inet_ntoa
mov dword [esp + 4], esi
mov dword [esp], str.resolved:__s___s__n
mov dword [esp + 8], eax
call fcn.004020e0
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov word [edi], 2
mov dword [esp], esi
call sub.cygwin1.dll_inet_addr
mov dword [edi + 4], eax
xor eax, eax
jmp 0x404166
mov dword [esp], str.failed_to_resolve_locally._n
call fcn.004020e0
mov eax, 0xffffffff
jmp 0x404166
Function at 0x4041a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edi
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
movzx ebx, word [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004040d0
test eax, eax
js 0x404240
mov eax, ebx
xchg ah, al
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_inet_ntoa
movzx edx, bx
mov dword [esp + 8], edx
mov dword [esp], str.connecting_to__s:_u_n
mov dword [esp + 4], eax
call fcn.004020e0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.cygwin1.dll_socket
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov ebx, eax
mov dword [esp], eax
call sub.cygwin1.dll_connect
add eax, 1
je 0x404257
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], esi
mov ebx, 0xffffffff
mov dword [esp], str.cant_resolve_hostname:__s_n
call fcn.00401ee0
jmp 0x40422a
mov dword [esp], str.connect___failed._n
mov ebx, 0xffffffff
call fcn.004020e0
jmp 0x40422a
Function at 0x406340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x406367
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40642c
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x406400
cmp eax, 4
je 0x406400
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40635a
cmp eax, 4
je 0x40635a
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40635a
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40635a
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x4063da
jmp 0x40635a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00405fb0
lea esi, [esi]
lea edi, [edi]
Function at 0x406b5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004092f0
test esi, esi
jne 0x406b92
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409478
jmp 0x406bb0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406aa0
mov edi, eax
test esi, esi
je 0x406bb0
cmp dword [ebx], 0
je 0x406bb0
dec esi
jmp 0x406b99
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408434
mov byte [esp], al
cmp byte [esp], 0
jne 0x4081da
test edi, edi
je 0x4081da
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4080f5
cmp edi, 0xffffffff
je 0x4080b5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080b5
mov byte [esp], 0
jmp 0x4081da
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4080f5
test ebx, ebx
jne 0x4080e7
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4080e7
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4081da
lea eax, [esp + 0xc]
call fcn.00407d30
dec ebp
test ebp, ebp
jg 0x40809a
cmp edi, 0xffffffff
je 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408118
mov byte [esp], 0
jmp 0x4081da
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40805e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40811a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408248
mov edx, eax
mov ebx, dword [0x5eb8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40817e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40817c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40817e
xor edi, edi
cmp byte [esp], 0
je 0x4081a4
mov ebx, dword [esi]
test bl, 1
jne 0x4081ba
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408184
mov byte [esp + 1], 1
jmp 0x4081ba
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081a4
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408131
cmp byte [esp], 0
je 0x4081da
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408f80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5eb05c], 0
je 0x408fe7
cmp word [0x5eb348], 0xd7b2
jne 0x408fa9
cmp dword [0x5eb350], 0
jbe 0x408fa9
mov eax, 0x5eb344
call dword [0x5eb360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x409014
call fcn.00409b34
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5e5032], 0
jne 0x409003
push 0
push 0x5e59c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4091b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5e5034], 0
je 0x4091db
mov edx, edi
mov eax, esi
call dword [0x5e5034]
mov ebx, eax
jmp 0x4091ec
mov eax, 8
call fcn.004067dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5eb05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409178
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40921c
mov eax, ebx
call fcn.004067f8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b9b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bb1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004092f0
cmp si, word [0x5e5a00]
jb 0x40ba50
cmp si, word [0x5e5c00]
ja 0x40ba50
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ba50
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5e5a00]
jae 0x40ba2a
mov edi, ebx
dec edi
jmp 0x40ba4b
cmp si, word [ebx*8 + 0x5e5a00]
jbe 0x40ba3a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ba4b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5e5a04]
call fcn.0040b8d8
jmp 0x40ba50
cmp edi, dword [ebp - 8]
jae 0x40ba14
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40baff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40baff
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ed4
push dword [ebp - 0x160]
push 0x40bb38
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409ed4
push dword [ebp - 0x164]
push 0x40bb48
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409ed4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a10c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb24
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409350
ret
Function at 0x40bcd0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bdd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5edb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5edba4]
jne 0x40bd1c
mov eax, esi
mov edx, 0x5edba6
mov ecx, 0x55
call fcn.00409ed4
push 0x5edb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bdbe
push 0x5edb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004092f0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd8b
cmp byte [0x5edb88], 0
je 0x40bd50
mov edx, esi
mov eax, ebx
call fcn.0040bbb4
jmp 0x40bd8b
mov edx, esi
mov eax, ebx
call fcn.0040b9b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bd8b
cmp dword [esi], 0
je 0x40bd74
mov eax, esi
mov edx, 0x40bdec
call fcn.0040a02c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b9b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a02c
push 0x5edb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5edba4], bx
mov eax, dword [esi]
call fcn.00409e30
mov ecx, eax
mov eax, 0x5edba6
mov edx, 0xaa
call fcn.0040b838
push 0x5edb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bddb
lea eax, [ebp - 4]
call fcn.004092f0
ret
Function at 0x40c004
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004093d4
xor eax, eax
push ebp
push 0x40c229
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c044
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c05e
mov eax, dword [ebp - 4]
call fcn.00409e30
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b838
cmp word [ebp - 0x21a], 0
je 0x40c213
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c238
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c12d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c238
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c12d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c274
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c12d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c274
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c12d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c12d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c213
xor eax, eax
push ebp
push 0x40c20c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be14
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c19c
mov eax, dword [ebp - 0x10]
call fcn.004067dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409e98
jmp 0x40c1e7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c31c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c1e7
mov eax, dword [ebp - 0x10]
call fcn.004067dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c31c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409e98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c213
cmp dword [ebp - 8], 0
je 0x40c202
mov eax, dword [ebp - 8]
call fcn.004067f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c230
lea eax, [ebp - 4]
call fcn.004092f0
ret