Function at 0x140003070
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400522c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r14, rcx
mov ecx, 0x202
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x1400030fd
lea rdx, str.Winsock_initialization_failed._Error_Code_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006220
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, [0x1400063f0]
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, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x4c], 6
lea rdx, [r14 + 0x20]
cmp qword [rdx + 0x18], 0xf
jbe 0x14000312f
mov rdx, qword [rdx]
mov rcx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14000313c
mov rcx, qword [r14]
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x58]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test eax, eax
je 0x14000319a
lea rdx, str.getaddrinfo_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006220
mov rbx, rax
mov ecx, edi
call fcn.1400025c0
mov rdx, rax
mov rcx, rbx
call fcn.140006220
lea rdx, [0x1400063f0]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movabs rsi, 0x7fffffffc46535ff
movabs r13, 0x7fffffffffffffff
movabs r15, 0x311cdad160000
movabs r12, 0x112e0be826d694b3
movsd xmm6, qword [0x140046fa0]
nop word [rax + rax]
mov rdi, qword [rbp - 0x68]
test rdi, rdi
je 0x14000322c
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 dword [r14 + 0xd8], eax
cmp eax, 0xffffffff
je 0x140003223
movsxd rcx, eax
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140003316
movsxd rcx, dword [r14 + 0xd8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400031e0
lea rdx, str.Could_not_connect
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006220
lea rdx, [0x1400063f0]
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 rcx, [rbp - 0x60]
call fcn.140002ca0
mov rbx, qword [rbp - 0x60]
cmp rbx, rsi
jge 0x14000326a
add rbx, 0x3b9aca00
jmp 0x14000326d
mov rbx, r13
lea rcx, [rbp - 0x70]
call fcn.140002ca0
mov rax, qword [rbp - 0x70]
cmp rax, rbx
jge 0x14000330d
mov rsi, rbx
sub rsi, rax
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rdx, rax, 0x64
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
comisd xmm0, xmm6
seta r8b
test r8b, r8b
lea rax, [rdx + r15]
jne 0x1400032b0
lea rax, [rdx + rsi]
mov qword [rsp + 0x28], rax
mov rcx, r15
test r8b, r8b
cmove rcx, rsi
add rcx, rdx
mov rax, r12
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x28], rdx
imul rax, rdx, 0x3b9aca00
sub rcx, rax
mov dword [rbp - 0x20], ecx
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
lea rcx, [rbp - 0x70]
call fcn.140002ca0
mov rax, qword [rbp - 0x70]
cmp rax, rbx
jl 0x140003283
movabs rsi, 0x7fffffffc46535ff
test rdi, rdi
je 0x1400031d0
lea rdx, str.Connected
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006220
lea rdx, [0x1400063f0]
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 rcx, qword [rbp - 0x68]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [r14 + 0xd8]
lea rcx, [rsp + 0x30]
call fcn.140001b30
nop
mov edx, 0xbabedead
lea rcx, [rsp + 0x30]
call fcn.1400014d0
lea rbx, [r14 + 0x40]
movzx edi, byte [rbx + 0x10]
mov byte [rsp + 0x20], dil
mov rdx, qword [rsp + 0x40]
mov r8, rdx
mov rcx, qword [rsp + 0x38]
sub r8, rcx
lea rax, [r8 + 1]
cmp rax, 0x10000
jbe 0x1400033e5
cmp rcx, rdx
je 0x1400033e5
mov rax, qword [rsp + 0x30]
mov rdx, rcx
lea rcx, [rsp + 0x30]
call qword [rax]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rdx, rcx
je 0x1400033b8
mov rdx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0x10000
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x10000
jae 0x1400033e5
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140001fa0
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x48]
je 0x1400033f6
mov byte [rdx], dil
inc qword [rsp + 0x40]
jmp 0x140003405
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002470
movzx r8d, byte [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140003414
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400015f0
mov rbx, qword [r14 + 0x68]
sub rbx, qword [r14 + 0x60]
sar rbx, 5
mov byte [rsp + 0x20], bl
mov rdx, qword [rsp + 0x40]
mov r8, rdx
mov rcx, qword [rsp + 0x38]
sub r8, rcx
lea rax, [r8 + 1]
cmp rax, 0x10000
jbe 0x1400034a5
cmp rcx, rdx
je 0x1400034a5
mov rax, qword [rsp + 0x30]
mov rdx, rcx
lea rcx, [rsp + 0x30]
call qword [rax]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rdx, rcx
je 0x140003478
mov rdx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0x10000
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x10000
jae 0x1400034a5
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140001fa0
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x48]
je 0x1400034bd
mov byte [rdx], bl
mov rdx, qword [rsp + 0x40]
inc rdx
mov qword [rsp + 0x40], rdx
jmp 0x1400034d1
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002470
mov rdx, qword [rsp + 0x40]
mov rbx, qword [r14 + 0x60]
mov rsi, qword [r14 + 0x68]
cmp rbx, rsi
je 0x1400035a9
movzx edi, byte [rbx + 0x10]
mov byte [rsp + 0x20], dil
mov r8, rdx
mov rcx, qword [rsp + 0x38]
sub r8, rcx
lea rax, [r8 + 1]
cmp rax, 0x10000
jbe 0x14000355a
cmp rcx, rdx
je 0x14000355a
mov rax, qword [rsp + 0x30]
mov rdx, rcx
lea rcx, [rsp + 0x30]
call qword [rax]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
cmp rdx, rcx
je 0x14000352d
mov rdx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0x10000
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x10000
jae 0x14000355a
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140001fa0
mov rdx, qword [rsp + 0x40]
cmp rdx, qword [rsp + 0x48]
je 0x14000356b
mov byte [rdx], dil
inc qword [rsp + 0x40]
jmp 0x14000357a
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002470
movzx r8d, byte [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000358c
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.1400015f0
add rbx, 0x20
cmp rbx, rsi
je 0x1400035a9
mov rdx, qword [rsp + 0x40]
jmp 0x1400034e2
mov rcx, qword [r14 + 0x78]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax]
mov r8d, socket
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400015f0
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
cmp rcx, r8
je 0x140003629
mov rax, qword [rsp + 0x30]
sub r8, rcx
mov rdx, rcx
lea rcx, [rsp + 0x30]
call qword [rax]
mov rcx, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rcx
je 0x1400035fc
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0x10000
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 0x10000
jae 0x140003629
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140001fa0
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x14000367b
mov rdx, qword [rsp + 0x68]
sub rdx, r8
mov rax, r8
cmp rdx, 0x1000
jb 0x14000365c
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036a9
mov rcx, r8
call fcn.1400357cc
mov qword [rsp + 0x58], 0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400036b5
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400357cc
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140035770
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret