Function at 0x1400115e6
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
jmp 0x1400184c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1bc8
call fcn.14001110e
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x566
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1be8]
mov rax, qword [0x14002a040]
xor rax, rbp
mov qword [rbp + 0x1b88], rax
lea rcx, [0x1400301ce]
call fcn.140011622
mov dword [rbp + 4], 0
mov rcx, qword [rbp + 0x1bb0]
call fcn.1400112c6
inc rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x48], 0x64
mov qword [rbp + 0x68], 0
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, qword [rbp + 0x1bb0]
mov r8, qword [rbp + 0x28]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_mbstowcs_s]
mov qword [rbp + 0x338], 0xffffffffffffffff
mov qword [rbp + 0x358], 0
mov qword [rbp + 0x378], 0
movzx eax, byte [0x140026a53]
mov byte [rbp + 0x3f0], al
lea rax, [rbp + 0x3f1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rdx, str.GET__
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, qword [rbp + 0x1bc0]
lea rcx, [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r8d, 0x1000
xor edx, edx
lea rcx, [rbp + 0x520]
call fcn.1400114d8
mov dword [rbp + 0x1554], 0x1000
lea rdx, [rbp + 0x180]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0
je 0x14001862d
mov edx, dword [rbp + 0x1534]
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.1400112fd
xor eax, eax
jmp 0x1400189aa
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x398]
call fcn.1400114d8
mov dword [rbp + 0x39c], 2
mov dword [rbp + 0x3a0], 1
mov dword [rbp + 0x3a4], 6
lea r9, [rbp + 0x358]
lea r8, [rbp + 0x398]
mov rdx, qword [rbp + 0x1bb8]
mov rcx, qword [rbp + 0x1bb0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0
je 0x1400186af
mov edx, dword [rbp + 0x1534]
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.1400112fd
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400189aa
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x378], rax
jmp 0x1400186d1
mov rax, qword [rbp + 0x378]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x378], rax
cmp qword [rbp + 0x378], 0
je 0x1400187a6
mov rax, qword [rbp + 0x378]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x378]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x378]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x338], rax
cmp qword [rbp + 0x338], 0xffffffffffffffff
jne 0x140018736
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.1400112fd
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400189aa
mov r8, qword [rbp + 0x1bb8]
mov rdx, qword [rbp + 0x1bb0]
lea rcx, str.___Connect_to__s:_s
call fcn.1400112fd
mov rax, qword [rbp + 0x378]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x378]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0xffffffff
jne 0x14001879f
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x338], 0xffffffffffffffff
jmp 0x1400186bf
jmp 0x1400187a6
mov rcx, qword [rbp + 0x358]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rbp + 0x338], 0xffffffffffffffff
jne 0x1400187d6
lea rcx, str.Unable_to_connect_to_server__n
call fcn.1400112fd
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400189aa
lea rcx, [rbp + 0x3f0]
call fcn.1400112c6
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x3f0]
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0xffffffff
jne 0x140018839
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_failed_with_error:__d_n
call fcn.1400112fd
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400189aa
mov edx, dword [rbp + 0x1534]
lea rcx, str._n___Sent__ld_Bytes_n
call fcn.1400112fd
mov edx, 1
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_shutdown]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0xffffffff
jne 0x14001889a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.shutdown_failed_with_error:__d_n
call fcn.1400112fd
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400189aa
mov r8d, 0x61a80
xor edx, edx
mov rcx, qword [rbp + 0x1bc8]
call fcn.1400114d8
mov dword [rbp + 0x1574], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x1554]
lea rdx, [rbp + 0x520]
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1534], eax
cmp dword [rbp + 0x1534], 0
jle 0x140018959
mov edx, dword [rbp + 0x1534]
lea rcx, str.___Received__d_Bytes_n
call fcn.1400112fd
movsxd rax, dword [rbp + 0x1534]
mov r8, rax
lea rdx, [rbp + 0x520]
mov rcx, qword [rbp + 0x1bc8]
call fcn.14001131b
movsxd rax, dword [rbp + 0x1534]
mov rcx, qword [rbp + 0x1bc8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1bc8], rax
mov eax, dword [rbp + 0x1534]
mov ecx, dword [rbp + 0x1574]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x1574], eax
mov edx, dword [rbp + 0x1574]
lea rcx, str.___Received_total__d_Bytes_n
call fcn.1400112fd
jmp 0x140018984
cmp dword [rbp + 0x1534], 0
jne 0x140018970
lea rcx, str.___Connection_closed_n
call fcn.1400112fd
jmp 0x140018984
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.recv_failed_with_error:__d_n
call fcn.1400112fd
cmp dword [rbp + 0x1534], 0
jg 0x1400188b8
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rbp + 0x1574]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400267c0]
call fcn.14001154b
mov rax, rdi
mov rcx, qword [rbp + 0x1b88]
xor rcx, rbp
call fcn.140011316
lea rsp, [rbp + 0x1b98]
pop rdi
pop rbp
ret