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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dbg.debug_is_active
test eax, eax
je 0x403637
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._sock_remove_marked_for_removal_list_traverse_func__socket_entry_u__
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x10]
test ax, ax
je 0x4036bf
call dbg.debug_is_active
test eax, eax
je 0x4036b8
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x32
mov dword [esp + 4], 1
mov dword [esp], str._sock_remove_marked_for_removal_list_traverse_func
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, 0
jmp 0x4036c4
mov eax, 1
add esp, 0x24
pop ebx
pop ebp
ret
Function at 0x403742
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x4037be
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp], 0x40e938
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x12]
test ax, ax
jne 0x40380d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___WSAFDIsSet_8
sub esp, 8
test eax, eax
je 0x403836
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
jmp 0x403836
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.sock_handle_poll_for_special_descriptor_event
test eax, eax
je 0x403836
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
call dbg.debug_is_active
test eax, eax
je 0x4038ab
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp], str._sock_handle_event_list_traverse_func
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403ce3
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov dword [ebp - 0x7fc], 0x10
mov dword [ebp - 0x800], 0x10
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x7fc]
mov dword [esp + 8], edx
lea edx, [ebp - 0x7e8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._getsockname_12
sub esp, 0xc
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x800]
mov dword [esp + 8], edx
lea edx, [ebp - 0x7f8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._getpeername_12
sub esp, 0xc
lea eax, [ebp - 0x7e8]
mov dword [esp], eax
call dbg.socket_addr2string
mov dword [esp + 4], eax
lea eax, [ebp - 0x3f0]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x7f8]
mov dword [esp], eax
call dbg.socket_addr2string
mov dword [esp + 4], eax
lea eax, [ebp - 0x7d8]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x7d8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x3f0]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s____s
mov dword [esp], global_buffer.0
call sym._sprintf
mov eax, global_buffer.0
leave
ret

Function at 0x403db3
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c4
mov word [ebp - 0xa], 0x202
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WSAStartup_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403e58
call dbg.debug_is_active
test eax, eax
je 0x403e51
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.WSAStartup_failed_with_error:__d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, 0
jmp 0x403e99
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], dbg.stdin_read_thread
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateThread_24
sub esp, 0x18
mov dword [0x418980], eax
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403e9e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x403f1a
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str._socket_accept
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._accept_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x403fb3
call dbg.debug_is_active
test eax, eax
je 0x403fb3
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.socket_addr2string
mov dword [esp + 8], eax
mov dword [esp + 4], str._accepted_connection_from__s_
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x40401f
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._socket_accept__sock_d_
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x404027
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp + 8]
jne 0x404073
mov dword [ebp - 0xc], 0
mov eax, dword [0x418988]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0xc]
jmp 0x404097
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
call sym._recv_16
sub esp, 0x10
leave
ret
Function at 0x404099
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call dbg.debug_is_active
test eax, eax
je 0x404113
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.__socket_write_fd_d_count_d...
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x4041a0
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40e6d6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [eax + 0x50]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [eax + 0x30]
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.stdinfd_d_stdoutfd_d_stderrfd_d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x30]
cmp eax, dword [ebp + 8]
je 0x4041ba
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4041e2
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
jmp 0x40423b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [eax + 0x50]
cmp eax, dword [ebp + 8]
jne 0x404217
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fwrite
jmp 0x40423b
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
call sym._send_16
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40434e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call dbg.debug_is_active
test eax, eax
je 0x4043ca
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40eb04
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], str._Debug_starting_
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
call dbg.debug_is_active
test eax, eax
je 0x404437
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40eb04
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov dword [esp + 8], str.0.12._BUILD01_02_2016_19:44__Win32
mov dword [esp + 4], str.vsockets_tools_version_s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x404545
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
call dbg.VMCISock_GetAFValue
mov dword [my_addr.svm_zero], eax
call dbg.debug_is_active
test eax, eax
je 0x4045c7
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.vmci_connecting_to_CID__d:_d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [my_addr.svm_zero]
mov dword [esp], eax
call sym._socket_12
sub esp, 0xc
mov dword [my_addr.svm_cid], eax
cmp dword [my_addr.svm_cid], 0
jns 0x404606
mov dword [esp], str.error_creating_socket_n
call sym._perror
mov dword [esp], 1
call sym._exit
call dbg.debug_is_active
test eax, eax
je 0x404672
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [my_addr.svm_cid]
mov dword [esp + 8], eax
mov dword [esp + 4], str.vmci_socket_d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov dword [their_addr.svm_cid], 0
mov dword [their_addr.svm_zero], 0
mov dword [my_addr.svm_family], 0
mov dword [my_addr.svm_port], 0
mov eax, dword [my_addr.svm_zero]
mov word [their_addr.svm_cid], ax
mov dword [my_addr.svm_family], 0xffffffff
mov dword [their_addr.svm_zero], 0xffffffff
mov eax, dword [my_addr.svm_cid]
mov dword [esp + 8], 0x10
lea edx, [their_addr.svm_cid]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4046e8
mov dword [esp], str.bind
call sym._perror
mov eax, dword [my_addr.svm_cid]
mov dword [esp], eax
call dbg.socket_close
mov dword [esp], 1
call sym._exit
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [their_addr.svm_family], 0
mov dword [their_addr.svm_port], 0
mov eax, dword [my_addr.svm_zero]
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 8]
mov dword [their_addr.svm_family], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [my_addr.svm_cid]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x30]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._connect_12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x404757
mov dword [esp], str.connect
call sym._perror
mov eax, dword [my_addr.svm_cid]
mov dword [esp], eax
call dbg.socket_close
mov eax, 0xffffffff
jmp 0x40475a
mov eax, dword [my_addr.svm_cid]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40475f
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
call dbg.debug_is_active
test eax, eax
je 0x4047d2
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.ipv4_listening_in_port__d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [my_addr.sin_zero], eax
cmp dword [my_addr.sin_zero], 0
jns 0x404812
mov dword [esp], str.error_creating_socket_n
call sym._perror
mov dword [esp], 1
call sym._exit
call dbg.debug_is_active
test eax, eax
je 0x40487e
call dbg.debug_get_time_stack_tabs
mov ebx, eax
call dbg.debug_get_time_str_now
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [my_addr.sin_zero]
mov dword [esp + 8], eax
mov dword [esp + 4], str.ipv4_socket_d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sym._fputc
mov dword [ebp - 0x20], 1
mov eax, dword [my_addr.sin_zero]
mov dword [esp + 0x10], 4
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call sym._setsockopt_20
sub esp, 0x14
test eax, eax
jns 0x4048c2
mov dword [esp], str.setsockopt_SO_REUSEADDR__failed
call sym._perror
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [esp], eax
call sym._ntohs_4
sub esp, 4
mov word [ebp - 0x1a], ax
mov eax, dword [my_addr.sin_zero]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._bind_12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x404924
mov dword [esp], str.bind
call sym._perror
mov eax, dword [my_addr.sin_zero]
mov dword [esp], eax
call dbg.socket_close
mov eax, 0xffffffff
jmp 0x404955
mov eax, dword [my_addr.sin_zero]
mov dword [esp + 4], 0x64
mov dword [esp], eax
call sym._listen_8
sub esp, 8
cmp eax, 0xffffffff
jne 0x404952
mov dword [esp], str.listen
call sym._perror
mov eax, 0xffffffff
jmp 0x404955
mov eax, dword [my_addr.sin_zero]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x405710
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x405760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40582b
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x4057b1
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x405799
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._VirtualProtect_16
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x4057a9
cmp ecx, 0x40
je 0x4057a9
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
Function at 0x407470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x4074c0
cmp edi, esi
jb 0x407528
cmp edi, dword [esp + 0x1c]
ja 0x407533
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4074c2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4074b0
jmp 0x40751f
ja 0x4074c8
cmp eax, edx
mov esi, edi
jne 0x407483
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x407500
mov ebp, esi
sub ecx, edx
jns 0x407517
jmp 0x407521
cmp esi, edi
je 0x407540
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x407521
xor al, 1
cmp ebp, edi
jne 0x4074e0
jmp 0x407521
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
call fcn.00423550
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.004234f0
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x4249dc
call fcn.00423500
add esp, 4
ud2