joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b4b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], eax
mov dword [esp], str.exec_driver_shut_down__killing_process__d
call dbg.log_warning
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 1
nop
leave
ret

Function at 0x409c70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call eax
sub esp, 0x14
test eax, eax
jne 0x409cb1
mov eax, 0
jmp 0x409cec
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call eax
sub esp, 8
mov eax, 1
leave
ret

Function at 0x40f092
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0x61707865
mov dword [ebp - 0x14], 0x3120646e
mov dword [ebp - 0x10], 0x79622d36
mov dword [ebp - 0xc], 0x6b206574
mov dword [ebp - 4], 0
jmp 0x40f113
mov dword [ebp - 8], 0
jmp 0x40f109
mov ecx, dword [ebp - 4]
mov edx, 0x66666667
mov eax, ecx
imul edx
sar edx, 3
mov eax, ecx
sar eax, 0x1f
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea eax, [ecx*4]
lea ecx, [ebp + eax]
mov eax, dword [ebp - 8]
add eax, ecx
sub eax, 0x18
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x40f0c6
add dword [ebp - 4], 0x14
cmp dword [ebp - 4], 0x3f
jle 0x40f0bd
mov dword [ebp - 4], 0
jmp 0x40f174
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 4
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 0x2c
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 0x18
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0xf
jle 0x40f122
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dbg.s20_hash
nop
leave
ret
Function at 0x40f188
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0x61707865
mov dword [ebp - 0x14], 0x3320646e
mov dword [ebp - 0x10], 0x79622d32
mov dword [ebp - 0xc], 0x6b206574
mov dword [ebp - 4], 0
jmp 0x40f209
mov dword [ebp - 8], 0
jmp 0x40f1ff
mov ecx, dword [ebp - 4]
mov edx, 0x66666667
mov eax, ecx
imul edx
sar edx, 3
mov eax, ecx
sar eax, 0x1f
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
lea eax, [ecx*4]
lea ecx, [ebp + eax]
mov eax, dword [ebp - 8]
add eax, ecx
sub eax, 0x18
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x40f1bc
add dword [ebp - 4], 0x14
cmp dword [ebp - 4], 0x3f
jle 0x40f1b3
mov dword [ebp - 4], 0
jmp 0x40f26d
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 4
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 4]
lea edx, [eax + 0x10]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 0x2c
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 4]
add edx, 0x18
mov ecx, edx
mov edx, dword [ebp + 0x10]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0xf
jle 0x40f218
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dbg.s20_hash
nop
leave
ret
Function at 0x417272
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov dword [esp + 8], 0x298
mov dword [esp + 4], str.libs_select_group.c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.safe_free_internal
mov dword [ebp - 0x10], 0
mov dword [esp], 0xfffffff6
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x414]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x400
lea edx, [ebp - 0x410]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x417321
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.No_more_data_from_stdin_n
mov dword [esp], eax
call sym._fprintf_4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x417370
mov eax, dword [ebp - 0x414]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x418]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x410]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x4172a6
mov dword [esp], str.stdin:_Couldnt_write_to_stdin_pipe
call dbg.nbdie
jmp 0x4172a6
leave
ret 4

Function at 0x417374
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 8], 0x2b5
mov dword [esp + 4], str.libs_select_group.c
mov dword [esp], 8
call dbg.safe_malloc_internal
mov dword [ebp - 0xc], eax
mov eax, dword [global_handle]
test eax, eax
je 0x4173ac
mov eax, dword [global_handle]
jmp 0x41743c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreatePipe]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], dbg.stdin_thread
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x417431
mov dword [esp], str.stdin:_Couldnt_create_thread
call dbg.nbdie
mov eax, dword [ebp - 0x14]
mov dword [global_handle], eax
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x41746d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov word [ebp - 0xa], 0x202
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x276c
je 0x417529
cmp dword [ebp - 0x10], 0x276c
jg 0x4175d1
cmp dword [ebp - 0x10], 0x276b
je 0x4174ff
cmp dword [ebp - 0x10], 0x276b
jg 0x4175d1
cmp dword [ebp - 0x10], 0x2753
je 0x41757d
cmp dword [ebp - 0x10], 0x2753
jg 0x4175d1
cmp dword [ebp - 0x10], 0x271e
je 0x4175a7
cmp dword [ebp - 0x10], 0x2734
je 0x417553
jmp 0x4175d1
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.The_underlying_network_subsystem_is_not_ready_for_network_communication._n
mov dword [esp], eax
call sym._fprintf_5
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation._n
mov dword [esp], eax
call sym._fprintf_5
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress._n
mov dword [esp], eax
call sym._fprintf_5
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.A_limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached._n
mov dword [esp], eax
call sym._fprintf_5
mov dword [esp], 1
call sym._exit
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 4], str.The_lpWSAData_parameter_is_not_a_valid_pointer._n
mov dword [esp], eax
call sym._fprintf_5
mov dword [esp], 1
call sym._exit
nop
leave
ret
Function at 0x4175d4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x2c], ax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x417617
mov dword [esp], str.tcp:_couldnt_create_socket
call dbg.nbdie
cmp dword [ebp + 0x10], 0
je 0x417643
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ioctlsocket]
call eax
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41768b
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov edx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x43c0fd
mov dword [esp], eax
call sym._fprintf_5
mov eax, 0xffffffff
jmp 0x417735
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x24], 2
movzx eax, word [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x22], ax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_connect]
call eax
sub esp, 0xc
mov dword [serv_addr.sin_zero], eax
cmp dword [serv_addr.sin_zero], 0
jns 0x417732
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x2733
je 0x417732
mov dword [esp], str.tcp:_couldnt_connect_to_host
call dbg.nberror
mov eax, 0xffffffff
jmp 0x417735
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x417791
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x2c], ax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x1c], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x4177fb
mov dword [esp], str.tcp:_couldnt_parse_local_address
call dbg.nbdie
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [serv_addr.sin_zero], eax
cmp dword [serv_addr.sin_zero], 0
jns 0x417833
mov dword [esp], str.tcp:_couldnt_create_socket
call dbg.nbdie
jmp 0x41788a
mov eax, dword [serv_addr.sin_zero]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
test eax, eax
jns 0x417862
mov dword [esp], str.tcp:_couldnt_bind_to_socket
call dbg.nbdie
mov eax, dword [serv_addr.sin_zero]
mov dword [esp + 4], 0x14
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_listen]
call eax
sub esp, 8
test eax, eax
jns 0x41788a
mov dword [esp], str.tcp:_couldnt_listen_on_socket
call dbg.nbdie
mov eax, dword [serv_addr.sin_zero]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
leave
ret
Function at 0x417b99
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], ax
mov dword [sox.sin_zero], 1
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], 2
mov eax, dword [sym.imp.WS2_32.dll_socket]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x417be3
mov dword [esp], str.udp:_couldnt_create_socket
call dbg.nbdie
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], 4
lea edx, [sox.sin_zero]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
call eax
sub esp, 0x14
test eax, eax
jns 0x417c22
mov dword [esp], str.udp:_couldnt_set_socket_to_SO_BROADCAST
call dbg.nbdie
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], 2
movzx eax, word [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x417c64
mov dword [esp], str.udp:_couldnt_parse_local_address
call dbg.nbdie
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_bind]
call eax
sub esp, 0xc
test eax, eax
jns 0x417c93
mov dword [esp], str.udp:_couldnt_bind_to_port__are_you_running_as_root__
call dbg.nbdie
mov eax, dword [ebp - 0xc]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x10], 0x10
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sym._memset
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x417d09
mov dword [esp], str.udp:_couldnt_receive_data
call dbg.nbdie
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x417d0e
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x2c], ax
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [serv_addr.sin_zero], eax
cmp dword [serv_addr.sin_zero], 0
jne 0x417d65
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Couldnt_find_host__s_n
mov dword [esp], eax
call sym._fprintf_7
jmp 0x417e0d
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x20]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x20], 2
movzx eax, word [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
sub esp, 4
mov word [ebp - 0x1e], ax
mov eax, dword [serv_addr.sin_zero]
movzx eax, word [eax + 0xa]
movsx edx, ax
mov eax, dword [serv_addr.sin_zero]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x20]
add eax, 4
mov dword [esp], eax
call sym._memcpy
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_sendto]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x417e0d
mov dword [esp], str.udp:_couldnt_send_data
call dbg.nbdie
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x42fff0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf_1
call sym._abort
lea esi, [esi]

Function at 0x430050
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4440ac]
test esi, esi
jle 0x430170
mov eax, dword [0x4440b0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x430084
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x430107
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x430070
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x430197
mov eax, dword [0x4440b0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4440b0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x430177
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x430100
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x430110
add dword [0x4440ac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4440b0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x430100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x43008e
mov eax, dword [0x4440b0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x4306c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4440c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4440c0]
sub esp, 4
test ebx, ebx
je 0x430715
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x43070e
test eax, eax
jne 0x43070e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4306f0
mov dword [esp], 0x4440c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x430a50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x430a75
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x430a80
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x430a75
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x430ac8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x430abe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x430aca
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x430ab0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4319a0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 5
mov dword [esp + 8], ebx
pop ebx
jmp dbg.getopt_internal
Function at 0x401180
Capabilities:
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [ebx + 0x10]
mov eax, 0xcccccccd
mul edi
shr edx, 3
xor ecx, ecx
inc edx
mov esi, 0x811c9dc5
test edi, edi
je 0x4011be
jmp 0x4011a0
cmp dword [ebx + 0x14], 8
jb 0x4011aa
mov eax, dword [ebx]
jmp 0x4011ac
mov eax, ebx
movzx eax, word [eax + ecx*2]
imul esi, esi, 0x1000193
add ecx, edx
xor esi, eax
cmp ecx, edi
jb 0x4011a0
pop edi
mov eax, esi
pop esi
ret

Function at 0x402600
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42e028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x423af0
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x430a38], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402660
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_CWinApp::InitInstance]
push edi
call dword [sym.imp.mfc100u.dll_AfxEnableControlContainer]
add esp, 4
call dword [sym.imp.mfc100u.dll_CMFCVisualManagerWindows::GetThisClass]
push eax
call dword [sym.imp.mfc100u.dll_CMFCVisualManager::SetDefaultManager]
push 0x423b10
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_CWinApp::SetRegistryKey]
push 0x88
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4026c5
mov esi, eax
call fcn.004027d0
mov edi, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x423fa0
push 0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi]
push 0
call dword [sym.imp.mfc100u.dll_AfxRegisterWndClass]
mov edx, dword [esi + 0x64]
push eax
push 0x80
mov ecx, edi
call edx
mov dword [ebx + 0x20], edi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret