Function at 0x14001130c
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140012440
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x410], rax
lea rcx, [0x1400260fa]
call fcn.140011433
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x1400124d8
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.14001108c
mov edx, dword [rbp + 0x1c4]
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___int____ptr64]
lea rdx, [0x14001103c]
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
mov eax, 1
jmp 0x14001274b
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x278], 0xffffffffffffffff
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x228]
call fcn.140011366
nop
mov dword [rbp + 0x22c], 2
mov dword [rbp + 0x230], 1
mov dword [rbp + 0x234], 6
lea r9, [rbp + 0x1e8]
lea r8, [rbp + 0x228]
lea rdx, str.27015
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x1400125b7
mov ecx, dword [rbp + 0x1c4]
call fcn.140011154
mov qword [rbp + 0x408], rax
lea rdx, str.getaddrinfo_failed:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
mov rcx, qword [rbp + 0x408]
mov rdx, rcx
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___void_const____ptr64____ptr64]
lea rdx, [0x14001103c]
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
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001274b
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x208], rax
jmp 0x1400125d9
mov rax, qword [rbp + 0x208]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0
je 0x1400126c6
mov rax, qword [rbp + 0x208]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x208]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x208]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0xffffffffffffffff
jne 0x14001266f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x404], eax
lea rdx, str.Error_at_socket__:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
mov ecx, dword [rbp + 0x404]
mov edx, ecx
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___int____ptr64]
lea rdx, [0x14001103c]
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
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001274b
mov rax, qword [rbp + 0x208]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x208]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0xffffffff
jne 0x1400126bf
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov qword [rbp + 0x278], 0xffffffffffffffff
jmp 0x1400125c7
jmp 0x1400126c6
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
cmp qword [rbp + 0x278], 0xffffffffffffffff
jne 0x140012710
lea rdx, str.Unable_to_connect_to_server_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
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
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001274b
lea rdx, str.Connected_to_server_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
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
mov rcx, qword [rbp + 0x278]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400113bb
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret