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

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push edi
push esi
call sym.test_usbprog.exe__sys_error_none_4
mov edi, dword [esp + 0x30]
test edi, edi
je 0x421601
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [ebx + 0x918]
test ebp, ebp
jne 0x4214b3
push 1
call fcn.0040a39c
push eax
push 0x36
push 1
push str.INTERNAL_ERROR:_Data_pointer_NIL_in_FILE_READ_INETSTR.
call fcn.0040a631
push 0x4355f4
call fcn.00401f00
add esp, 0x18
call sym.test_usbprog.exe__sys_bomb_0
push 0x438654
push 0
push 1
push dword [0x438650]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call sub.KERNEL32.dll_CreateEventA
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x3c]
push dword [ebx + 0x920]
call sub.KERNEL32.dll_WriteFile
test al, al
jne 0x4215c8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
jne 0x421595
movss xmm0, dword [ebp + 4]
or eax, 0xffffffff
comiss xmm0, dword [0x428718]
jbe 0x42155f
movsd xmm1, qword [0x424938]
sub esp, 8
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x423248]
maxsd xmm1, xmm0
addsd xmm1, qword [0x423240]
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp qword [esp]
call fcn.0040ba70
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
add esp, 8
push eax
push dword [esp + 0x2c]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x4215ab
cmp eax, 0xffffffff
je 0x421590
push 1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 0x920]
call sub.KERNEL32.dll_GetOverlappedResult
test al, al
jne 0x4215c8
call sub.KERNEL32.dll_GetLastError
push dword [esp + 0x28]
mov dword [esi + 0xc], eax
call sub.KERNEL32.dll_CloseHandle
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
push esi
push 0x20
push 0xfffffffffffffffd
call sym.test_usbprog.exe__sys_stat_set_12
push dword [esp + 0x28]
call sub.KERNEL32.dll_CloseHandle
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10
cmp dword [esp + 0x3c], edi
je 0x4215f6
push esi
push 9
push 0xfffffffffffffffd
call sym.test_usbprog.exe__sys_stat_set_12
push esi
lea eax, [ebx + 0x50c]
push eax
call sym.test_usbprog.exe__sys_stat_parm_vstr_8
push esi
push edi
call sym.test_usbprog.exe__sys_stat_parm_int_8
push esi
push dword [esp + 0x40]
call sym.test_usbprog.exe__sys_stat_parm_int_8
push dword [esp + 0x28]
call sub.KERNEL32.dll_CloseHandle
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 0x10

Function at 0x421610
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 0x18]
push esi
call sym.test_usbprog.exe__sys_error_none_4
mov eax, dword [esp + 0xc]
push 0x10
push dword [eax + 0x918]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x18]
push dword [eax + 0x920]
call sub.WS2_32.dll_sendto
mov ecx, eax
mov eax, dword [esp + 0x14]
test ecx, ecx
jns 0x421658
mov dword [eax], 0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
pop esi
ret 0x14
mov dword [eax], ecx
cmp ecx, dword [esp + 0x10]
je 0x42166a
push esi
push 0x1c
push 0xfffffffffffffffd
call sym.test_usbprog.exe__sys_stat_set_12
pop esi
ret 0x14
Function at 0x4216d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x40c]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x410]
push esi
push ebx
push edi
call sym.test_usbprog.exe__string_t_inetadr_12
push esi
call sym.test_usbprog.exe__sys_error_4
test al, al
je 0x42176c
push ebp
push esi
call sym.test_usbprog.exe__sys_error_none_4
call sym.test_usbprog.exe__sys_sys_netstart_0
movsx ebp, word [edi + 2]
cmp dword [0x435570], ebp
cmovl ebp, dword [0x435570]
cmp ebp, 1
jl 0x421734
lea eax, [edi + 4]
push ebp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00408850
add esp, 0xc
mov al, byte [0x438644]
mov byte [esp + ebp + 0x10], al
lea eax, [esp + 0x10]
push eax
call sub.WS2_32.dll_gethostbyname
pop ebp
test eax, eax
jne 0x421778
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 0xc], eax
cmp eax, 0x2af9
jne 0x42176c
push esi
push 0xf
push 0xfffffffffffffffd
call sym.test_usbprog.exe__sys_stat_set_12
push esi
push edi
call sym.test_usbprog.exe__sys_stat_parm_vstr_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42175b
mov eax, dword [eax]
test eax, eax
je 0x42175b
mov eax, dword [eax]
push 4
push ebx
mov dword [ebx], eax
call sym.test_usbprog.exe__sys_order_flip_8
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0xc

Function at 0x421840
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call sym.test_usbprog.exe__sys_error_none_4
call sym.test_usbprog.exe__sys_sys_netstart_0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x42187b
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x10
ret 0x10
lea eax, [esp + 8]
push eax
call sym.test_usbprog.exe__file_inet_sockaddr_init_4
mov ax, word [esp + 0x20]
mov word [esp + 0xa], ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 4
push eax
call sym.test_usbprog.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.test_usbprog.exe__sys_order_flip_8
push dword [0x435574]
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_bind
test eax, eax
jne 0x421912
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x10
push eax
lea eax, [esp + 0xc]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x421912
push 4
lea eax, [esp + 0x10]
push eax
call sym.test_usbprog.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.test_usbprog.exe__sys_order_flip_8
mov ax, word [esp + 0xa]
push 8
push dword [esi + 4]
mov word [esi], ax
call sub.WS2_32.dll_listen
test eax, eax
je 0x421922
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 0xc], eax
push dword [esi + 4]
call sub.WS2_32.dll_closesocket
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x421950
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x24]
push edi
push esi
call sym.test_usbprog.exe__sys_error_none_4
call sym.test_usbprog.exe__sys_sys_netstart_0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x421986
call sub.WS2_32.dll_WSAGetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x10
ret 0x10
lea eax, [esp + 8]
push eax
call sym.test_usbprog.exe__file_inet_sockaddr_init_4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov ax, word [esp + 0x20]
mov word [esp + 0xa], ax
lea eax, [esp + 0xc]
push 4
push eax
call sym.test_usbprog.exe__sys_order_flip_8
push 2
lea eax, [esp + 0xe]
push eax
call sym.test_usbprog.exe__sys_order_flip_8
push dword [0x435578]
lea eax, [esp + 0xc]
push eax
push edi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x421976
mov esi, dword [esp + 0x24]
push esi
call fcn.004217a0
mov dword [esi + 0x920], edi
pop edi
pop esi
add esp, 0x10
ret 0x10
Function at 0x421d80
Capabilities:
Clear file content
Delete file
Write file on windows

Disassembly:
mov eax, 0x2510
call fcn.00406cc0
mov eax, 0x400
mov word [esp + 0x108], ax
mov eax, 0x100
push esi
push edi
mov edi, dword [esp + 0x2528]
mov word [esp + 0xc], ax
mov eax, 0x2000
push edi
mov word [esp + 0x518], ax
call sym.test_usbprog.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x114]
push eax
push dword [esp + 0x2524]
call sym.test_usbprog.exe__string_pathname_split_12
lea eax, [esp + 0x110]
push eax
push eax
call sym.test_usbprog.exe__string_treename_8
lea eax, [esp + 0x514]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call sym.test_usbprog.exe__string_pathname_join_12
test byte [esp + 0x2524], 1
mov esi, 1
je 0x421e46
lea eax, [esp + 0x514]
mov esi, 2
push eax
call sym.test_usbprog.exe__string_terminate_null_4
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x421e46
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [edi + 0xc], eax
call sym.test_usbprog.exe__file_not_found_4
test al, al
je 0x421edb
movzx eax, word [0x435614]
push eax
push 0x435610
lea eax, [esp + 0x51c]
push eax
call sym.test_usbprog.exe__string_appendn_12
lea eax, [esp + 0x514]
push eax
call sym.test_usbprog.exe__string_terminate_null_4
push dword [0x43865c]
lea eax, [esp + 0x51c]
push 0x8000080
push esi
push dword [0x438658]
push 1
push 0x40000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x421ed3
push dword [0x438660]
mov eax, dword [esp + 0x2524]
lea edx, [esp + 0xc]
push edx
movsx ecx, word [eax + 2]
add eax, 4
push ecx
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test al, al
je 0x421ee6
push esi
call sub.KERNEL32.dll_SetEndOfFile
test al, al
je 0x421ee6
push esi
call sub.KERNEL32.dll_CloseHandle
test al, al
jne 0x421edb
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
add esp, 0x2510
ret 0x10
call sub.KERNEL32.dll_GetLastError
push esi
mov dword [edi + 0xc], eax
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 0x518]
push eax
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
add esp, 0x2510
ret 0x10
Function at 0x421f10
Capabilities:
Delete file

Disassembly:
mov eax, 0x250c
call fcn.00406cc0
mov eax, 0x400
mov word [esp + 0x104], ax
mov eax, 0x100
push esi
mov esi, dword [esp + 0x2518]
mov word [esp + 4], ax
mov eax, 0x2000
push esi
mov word [esp + 0x510], ax
call sym.test_usbprog.exe__sys_error_none_4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10c]
push eax
push dword [esp + 0x251c]
call sym.test_usbprog.exe__string_pathname_split_12
lea eax, [esp + 0x108]
push eax
push eax
call sym.test_usbprog.exe__string_treename_8
lea eax, [esp + 0x50c]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x110]
push eax
call sym.test_usbprog.exe__string_pathname_join_12
movzx eax, word [0x43561c]
push eax
push 0x435618
lea eax, [esp + 0x514]
push eax
call sym.test_usbprog.exe__string_appendn_12
lea eax, [esp + 0x50c]
push eax
call sym.test_usbprog.exe__string_terminate_null_4
lea eax, [esp + 0x510]
push eax
call sub.KERNEL32.dll_DeleteFileA
test al, al
jne 0x421fcd
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x250c
ret 8

Function at 0x421fe0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.00406cc0
push esi
mov esi, dword [esp + 0x2018]
mov eax, 0x2000
push edi
push esi
mov word [esp + 0x10], ax
call sym.test_usbprog.exe__sys_error_none_4
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2018]
call sym.test_usbprog.exe__string_copy_8
movzx eax, word [0x435624]
push eax
push 0x435620
lea eax, [esp + 0x14]
push eax
call sym.test_usbprog.exe__string_appendn_12
lea eax, [esp + 0xc]
push eax
call sym.test_usbprog.exe__string_terminate_null_4
push dword [0x438668]
lea eax, [esp + 0x14]
push 0x8000080
push 3
push dword [0x438664]
push 1
push bind
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x422073
call sub.KERNEL32.dll_GetLastError
pop edi
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 0xc
push dword [0x43866c]
movsx eax, word [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test al, al
jne 0x4220ac
call sub.KERNEL32.dll_GetLastError
push edi
mov dword [esi + 0xc], eax
call sub.KERNEL32.dll_CloseHandle
pop edi
pop esi
add esp, 0x2008
ret 0xc
movsx edx, word [esp + 0xc]
mov ecx, dword [esp + 8]
cmp edx, ecx
movzx eax, word [esp + 0xc]
movzx esi, cx
cmovb esi, eax
push edi
mov word [esp + 0x12], si
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [esp + 0x2018]
mov cx, word [esp + 0xe]
movzx eax, word [edx]
cmp ax, cx
cwde
jl 0x4220e5
movsx eax, cx
movzx eax, ax
mov ecx, 1
movsx esi, ax
mov word [edx + 2], ax
cmp esi, ecx
jl 0x42211f
mov al, byte [esp + ecx + 0xf]
cmp al, 0x1f
jbe 0x422118
cmp al, 0x7f
je 0x422118
mov byte [ecx + edx + 3], al
inc ecx
cmp ecx, esi
jle 0x4220f8
pop edi
pop esi
add esp, 0x2008
ret 0xc
lea eax, [ecx - 1]
mov word [edx + 2], ax
pop edi
pop esi
add esp, 0x2008
ret 0xc
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x134d4920
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x30b477ca
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
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.004093ac
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.00409534
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 [0x63a8fc]
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 0x408d54
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x63cb1c
cmp dword [ebp + 0xc], 2
jl 0x408d68
mov ebx, 0x63cb4c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x408da0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404b50
mov dword [0x63a01c], eax
mov eax, 0x404b58
mov dword [0x63a020], eax
mov eax, ebx
call fcn.00408c38
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x408dd5
cmp al, 3
jge 0x408dd5
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408de6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408df1
call dword [ecx + eax*4]
cmp dword [0x63a040], 0
jne 0x408e07
mov byte [0x63a048], 1
fnstcw word [0x632028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409098
call fcn.00408ce8
ret 4

Function at 0x409000
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63a05c], 0
je 0x409067
cmp word [0x63a348], 0xd7b2
jne 0x409029
cmp dword [0x63a350], 0
jbe 0x409029
mov eax, 0x63a344
call dword [0x63a360]
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, 0x409094
call fcn.00409d00
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x632032], 0
jne 0x409083
push 0
push 0x6329c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40926c
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 [0x632034], 0
je 0x409297
mov edx, edi
mov eax, esi
call dword [0x632034]
mov ebx, eax
jmp 0x4092a8
mov eax, 8
call fcn.004067dc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x63a05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409234
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 0x4092d8
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 0x40bbfc
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 0x40bd61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004093ac
cmp si, word [0x632a00]
jb 0x40bc94
cmp si, word [0x632c00]
ja 0x40bc94
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bc94
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x632a00]
jae 0x40bc6e
mov edi, ebx
dec edi
jmp 0x40bc8f
cmp si, word [ebx*8 + 0x632a00]
jbe 0x40bc7e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bc8f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x632a04]
call fcn.0040bb1c
jmp 0x40bc94
cmp edi, dword [ebp - 8]
jae 0x40bc58
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bd43
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bd43
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.0040a118
push dword [ebp - 0x160]
push 0x40bd7c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a118
push dword [ebp - 0x164]
push 0x40bd8c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a118
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a350
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd68
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040940c
ret
Function at 0x40bf14
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 0x40c018
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x63cb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x63cba4]
jne 0x40bf60
mov eax, esi
mov edx, 0x63cba6
mov ecx, 0x55
call fcn.0040a118
push 0x63cb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c002
push 0x63cb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004093ac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bfcf
cmp byte [0x63cb88], 0
je 0x40bf94
mov edx, esi
mov eax, ebx
call fcn.0040bdf8
jmp 0x40bfcf
mov edx, esi
mov eax, ebx
call fcn.0040bbfc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bfcf
cmp dword [esi], 0
je 0x40bfb8
mov eax, esi
mov edx, 0x40c030
call fcn.0040a270
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bbfc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a270
push 0x63cb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x63cba4], bx
mov eax, dword [esi]
call fcn.0040a05c
mov ecx, eax
mov eax, 0x63cba6
mov edx, 0xaa
call fcn.0040ba7c
push 0x63cb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c01f
lea eax, [ebp - 4]
call fcn.004093ac
ret