Function at 0x140001070
Capabilities:
Connect socket
Convert ip address from string
Execute command
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x5f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Failed._Error_Code_:__d
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.1400013f0
add rsp, 0x5f8
ret
xor r8d, r8d
mov qword [rsp + 0x600], rbx
mov ebx, 2
mov qword [rsp + 0x610], rsi
mov ecx, ebx
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001117
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Socket_creation_failed_:__d
call fcn.140001010
lea eax, [rbx - 1]
jmp 0x1400013a9
mov ecx, 0x88b8
mov word [rsp + 0x20], bx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov ecx, ebx
lea rdx, str.192.168.0.10
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x140001169
lea rcx, str.Invalid_address__Address_not_supported
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013a9
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400011af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Connection_failed_:__d
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013a9
mov dword [rsp + 0x1d0], 0x21f11282
lea rax, [rsp + 0x1d0]
mov word [rsp + 0x1d4], 0xfd57
xor cl, cl
mov edx, 5
add cl, byte [rax]
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400011d3
movzx edx, cl
lea rcx, str.Checksum_for_buffer_with_length___1:_0x_02X_n
call fcn.140001010
xor r9d, r9d
lea rdx, [rsp + 0x1d0]
mov rcx, rsi
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140001229
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Send_failed_:__d
call fcn.140001010
mov eax, 1
jmp 0x1400013a9
xor r9d, r9d
mov qword [rsp + 0x618], rdi
mov r8d, 0x400
lea rdx, [rsp + 0x1e0]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x14000126f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Receive_failed_:__d
call fcn.140001010
lea eax, [rdi + 2]
jmp 0x1400013a1
xor ebx, ebx
mov qword [rsp + 0x5f0], r14
lea r14, str.Server_closed_connection_n
test eax, eax
jne 0x140001289
mov rcx, r14
jmp 0x1400012db
lea rcx, str.Received_response_from_server:
mov qword [rsp + 0x608], rbp
call fcn.140001010
mov rbp, rdi
test edi, edi
jle 0x1400012cc
mov rdi, rbx
nop word [rax + rax]
movzx edx, byte [rsp + rdi + 0x1e0]
lea rcx, str._02X
call fcn.140001010
inc rdi
cmp rdi, rbp
jl 0x1400012b0
mov rbp, qword [rsp + 0x608]
lea rcx, [0x1400033f0]
call fcn.140001010
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea rdx, [rsp + 0x1e0]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x140001335
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Receive_failed_:__d
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi + 2]
jmp 0x140001399
test eax, eax
je 0x140001373
lea rcx, str.Received_second_response_from_server:
call fcn.140001010
test rdi, rdi
jle 0x14000136c
nop word [rax + rax]
movzx edx, byte [rsp + rbx + 0x1e0]
lea rcx, str._02X
call fcn.140001010
inc rbx
cmp rbx, rdi
jl 0x140001350
lea r14, [0x1400033f0]
mov rcx, r14
call fcn.140001010
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov r14, qword [rsp + 0x5f0]
mov rdi, qword [rsp + 0x618]
mov rbx, qword [rsp + 0x600]
mov rsi, qword [rsp + 0x610]
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.1400013f0
add rsp, 0x5f8
ret