Function at 0x140007570
Capabilities:
Connect socket

Disassembly:
jmp 0x140007570
push rbp
push rsi
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14001be00]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov esi, 2
lea r8, [rsp + 0x40]
mov eax, esi
mov rdx, rcx
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [r8 - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [r8 - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [r8 - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [r8 - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [r8 - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [r8 - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [r8 - 0x20], xmm0
movups xmmword [r8 - 0x10], xmm1
sub rax, 1
jne 0x1400075a2
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
mov qword [rsp + 0x1f8], rbx
mov qword [rsp + 0x200], rdi
movups xmmword [r8], xmm0
mov qword [r8 + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [r8 + 0x18], eax
mov dword [rcx + 0x118], 1
movzx ecx, word [rbp - 0x40]
mov qword [rsp + 0x208], r14
mov qword [rsp + 0x1d0], r15
mov qword [rbp + 0x68], 0
mov word [rbp + 0x60], si
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x40]
mov word [rbp + 0x62], ax
call fcn.140001406
mov dword [rbp + 0x64], eax
test eax, eax
je 0x1400077f6
lea r15, [0x14001d920]
lea r14, [0x140065220]
nop word [rax + rax]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp + 0x70], xmm0
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, 8
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x4ec4ec4f
imul r8d
lea rax, [rbp + 0x70]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x1a
sub r8d, ecx
add r8d, 0x61
mov dword [rsp + 0x30], r8d
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400076d1
lea r8, [rsp + 0x30]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400076f0
sub rbx, 1
jne 0x1400076a0
mov edx, 1
mov r8d, 6
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
movsxd rcx, dword [rbp + 0x54]
lea rdx, [rbp + 0x60]
mov r8d, reloc.WS2_32.dll_recv
mov rbx, rax
mov qword [r15 + rcx*8], rax
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140007752
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400077c8
lea r8, [rsp + 0x40]
lea rdx, str.Connected_to__s
lea rcx, [rbp + 0x80]
call fcn.140001393
movsxd rcx, dword [rbp + 0x54]
lea rdx, [rbp + 0x70]
shl rcx, 4
mov r8d, send
add rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rax, [rsp + 0x40]
mov rcx, rbx
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 4]
lea rdx, [rbp - 0x3c]
call fcn.140001172
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x1400077c8
cmp edi, 1
jne 0x1400077c4
mov ecx, 0x1b7740
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400077c8
cmp edi, esi
je 0x140007831
movzx ecx, word [rbp - 0x40]
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x60], si
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x40]
mov word [rbp + 0x62], ax
call fcn.140001406
mov dword [rbp + 0x64], eax
test eax, eax
jne 0x140007680
xor eax, eax
mov r15, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0x208]
mov rdi, qword [rsp + 0x200]
mov rbx, qword [rsp + 0x1f8]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400011d6
add rsp, 0x1d8
pop rsi
pop rbp
ret
mov ecx, dword [rbp + 0x54]
call fcn.1400012e9
movsxd rcx, dword [rbp + 0x54]
mov eax, esi
add rcx, rcx
mov byte [r14 + rcx*8], 0
jmp 0x1400077f8