Function at 0x140001873
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
lea rax, str.Initiating_Connection_to
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, rax
call fcn.1400024e0
mov rcx, rax
lea rax, str._...
mov rdx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
lea rax, [0x14000a040]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [0x14000a1f0], eax
mov eax, dword [0x14000a1f0]
test eax, eax
je 0x14000193b
lea rax, str.WSAStartup_failed_with_error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rcx, rax
mov eax, dword [0x14000a1f0]
mov edx, eax
call fcn.1400025a8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov ebx, 0
jmp 0x140001bdc
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [section..data], rax
mov rax, qword [section..data]
cmp rax, 0xffffffffffffffff
jne 0x1400019bc
lea rax, str.Socket_creation_failed_with_error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.1400025a8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ebx, 0
jmp 0x140001bdc
mov word [0x14000a1e0], 2
mov ecx, 0x1f90
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x14000a1e2], ax
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400025d8
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x14000a1e4], eax
mov eax, dword [0x14000a1e4]
cmp eax, 0xffffffff
jne 0x140001a54
lea rax, str.Invalid_IP_Address
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov rax, qword [section..data]
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 ebx, 0
jmp 0x140001bdc
mov rax, qword [section..data]
mov r8d, 0x10
lea rdx, [0x14000a1e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [0x14000a1f0], eax
mov eax, dword [0x14000a1f0]
cmp eax, 0xffffffff
jne 0x140001aec
lea rax, str.Connect_failed_with_error:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.1400025a8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov rax, qword [section..data]
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 ebx, 0
jmp 0x140001bdc
lea rax, [rbp - 9]
mov qword [rbp - 8], rax
nop
nop
lea rdx, [rbp - 9]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, str.listening_target:
mov rcx, rax
call fcn.140004c70
lea rax, [rbp - 9]
mov rcx, rax
call fcn.140004310
nop
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400025e0
mov ebx, eax
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400025d8
mov rdx, rax
mov rax, qword [section..data]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [0x14000a1f0], eax
mov eax, dword [0x14000a1f0]
cmp eax, 0xffffffff
jne 0x140001bcb
lea rax, str.Error_in_sending_data:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call fcn.1400024e8
mov rbx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.1400025a8
mov rcx, rax
mov rax, qword [0x1400075e0]
mov rdx, rax
call fcn.1400025b0
mov rax, qword [section..data]
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 ebx, 0
jmp 0x140001bd0
mov ebx, 1
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.140002550
mov eax, ebx
jmp 0x140001c15
add rsp, 0x58
pop rbx
pop rbp
ret