Function at 0x140009280
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 0x140009315
mov edx, eax
lea rcx, [rbp - 8]
call fcn.14000cf80
nop
mov r8, rax
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [rsp + 0x48]
call fcn.1400078f0
nop
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400012c0
lea rdx, [0x140014850]
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 0x1400094a8
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.140007510
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, [0x1400078b0]
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.140007510
mov qword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x20]
call fcn.1400099c0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140009434
inc rdx
mov rcx, qword [rbp - 0x48]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000942f
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400099a8
call fcn.14000db04
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x30], recv
mov qword [rbp - 0x38], r14
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14000947f
inc rdx
mov rcx, qword [rbp - 0x28]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000947a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400099af
call fcn.14000db04
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], recv
mov byte [rbp - 0x28], 0
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140009320
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140009320
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1400093d2
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 0x1400094f8
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 0x140009506
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400094c0
jmp 0x1400093d2
mov rcx, qword [rbp - 0x70]
cmp rcx, 0xffffffffffffffff
je 0x140009516
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.140005bd0
mov rbx, rax
lea rcx, [rsp + 0x68]
call fcn.140005a30
nop
mov r8d, 1
lea rdx, [0x140011540]
mov rcx, rax
call fcn.140006d90
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], recv
mov byte [rax], 0
or esi, 4
mov r9, rbx
lea r8, [rsp + 0x28]
lea rcx, [rbp - 0x68]
call fcn.140008b50
or esi, 8
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400095c6
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009978
call fcn.14000db04
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140009602
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400095fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000997f
call fcn.14000db04
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], recv
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140009651
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000964c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009986
call fcn.14000db04
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], recv
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.140007510
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
mov rcx, rax
call fcn.140009b30
mov rcx, rax
lea rdx, [0x140011544]
call fcn.140007510
cmp qword [rbp - 0x58], 0
jne 0x1400096b7
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 0x14000972e
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 0x140009706
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.140007510
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 0x140009733
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.140007510
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.140007510
lea rdx, [0x1400078b0]
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 0x1400098cb
nop word [rax + rax]
mov ecx, eax
cmp rcx, 0x400
jae 0x14000999b
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.140007510
mov rcx, rax
lea rdx, [rbp + 0x1d0]
call fcn.140007510
lea rdx, [0x1400078b0]
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 0x1400097e0
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x28]
call fcn.1400082f0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 8]
call fcn.1400028b0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140009848
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000998d
call fcn.14000db04
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], recv
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 0x1400098a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400098a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009994
call fcn.14000db04
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 0x140009770
jne 0x1400098f5
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.140007510
mov qword [rsp + 0x20], 0xa
lea rcx, [rsp + 0x20]
call fcn.1400099c0
jmp 0x14000992c
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.140007510
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, [0x140011544]
call fcn.140007510
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140009963
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000995e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400099a1
call fcn.14000db04
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], recv
mov byte [rbp - 0x68], 0
jmp 0x1400093f9
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.14000dc40
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