Function at 0x140001070
Capabilities:
Execute command
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov r11, rsp
sub rsp, 0x238
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor eax, eax
mov qword [rsp + 0x20], 0
mov ecx, 0x202
mov qword [r11 - 0x34], rax
lea rdx, [rsp + 0x60]
mov dword [r11 - 0x2c], eax
mov dword [r11 - 0x38], 0x726964
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010e6
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x238
ret
xorps xmm0, xmm0
mov dword [rsp + 0x2c], 2
xorps xmm1, xmm1
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x20]
mov dword [rsp + 0x34], 6
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], 1
lea rdx, str.27015
xor ecx, ecx
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140001166
mov edx, eax
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x238
ret
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x230], rdi
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011b9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.140001010
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi + 2]
jmp 0x140001388
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000120c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.bind_failed_with_error:__d_n
call fcn.140001010
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001388
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, 0x7fffffff
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001257
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.listen_failed_with_error:__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140001388
xor r8d, r8d
mov qword [rsp + 0x240], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001292
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.accept_failed_with_error:__d_n
call fcn.140001010
mov rcx, rdi
jmp 0x14000136f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop dword [rax + rax]
xor r9d, r9d
lea rdx, [rsp + 0x210]
mov rcx, rbx
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x140001315
mov edx, eax
lea rcx, str.Bytes_received:__d_n
call fcn.140001010
lea rcx, [rsp + 0x200]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor r9d, r9d
lea rdx, [rsp + 0x210]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140001306
mov edx, eax
lea rcx, str.Bytes_sent:__d_n
call fcn.140001010
jmp 0x1400012a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.send_failed_with_error:__d_n
jmp 0x140001365
test edi, edi
jne 0x140001358
lea rcx, str.Connection_closing..._n
call fcn.140001010
lea edx, [rdi + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140001345
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.shutdown_failed_with_error:__d_n
jmp 0x140001365
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x140001380
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.recv_failed_with_error:__d_n
mov edx, eax
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rbx, qword [rsp + 0x240]
mov rdi, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x238
ret