Function at 0x140011474
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:
jmp 0x140017900
push rbp
push rdi
sub rsp, 0x9c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1aa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140026040]
xor rax, rbp
mov qword [rbp + 0x990], rax
lea rcx, [0x14002c0f8]
call fcn.14001166d
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14001797c
lea rdx, str.WSAStartup_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140017bfc
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x1400179d6
lea rdx, str.Socket_creation_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140017bfc
lea rax, [rbp + 0x1e8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [section..data]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea rcx, [0x1400264c0]
call fcn.1400110a0
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x1ec], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140017a72
lea rdx, str.Connection_failed__retrying...
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140017a24
mov ecx, dword [rbp + 0x1ec]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov qword [rbp + 0x988], rax
lea rdx, [0x140022998]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110c3
mov rcx, qword [rbp + 0x988]
mov rdx, rcx
mov rcx, rax
call fcn.1400110c3
lea rdx, [0x140022990]
mov rcx, rax
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rax, [rbp + 0x220]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x140017be7
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x220]
call fcn.1400114ec
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x220]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x634], eax
cmp dword [rbp + 0x634], 0
jg 0x140017b4f
lea rdx, str.Receive_failed_or_connection_closed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140017be7
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x658]
call fcn.1400110b9
nop
lea rcx, [rbp + 0x658]
call fcn.1400115a0
mov qword [rbp + 0x988], rax
lea rcx, [rbp + 0x658]
call fcn.1400110a0
xor r9d, r9d
mov rcx, qword [rbp + 0x988]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140017bd6
lea rdx, str.Send_failed.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c3
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp + 0x658]
call fcn.140011136
jmp 0x140017be7
lea rcx, [rbp + 0x658]
call fcn.140011136
jmp 0x140017adc
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011564
mov rax, rdi
mov rcx, qword [rbp + 0x990]
xor rcx, rbp
call fcn.140011320
lea rsp, [rbp + 0x9a8]
pop rdi
pop rbp
ret