Function at 0x140006a70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1400df080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x2b10]
mov rbx, rcx
test rax, rax
mov dword [rbp - 0x51], r8d
mov ecx, 0xa
mov qword [rbp - 0x49], rdx
mov esi, 4
mov r15d, r8d
cmovne esi, ecx
lea r14, [rbx + 0x28]
xor ecx, ecx
mov qword [rbp - 0x41], rsi
mov qword [rbp + 0xf], rcx
mov rdi, rdx
mov dword [rbp + 0x17], ecx
mov word [rbp + 0x1b], cx
mov qword [rbp - 0x59], r14
test rax, rax
je 0x140006b45
mov rax, qword [r14]
movzx r14d, word [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
lea ecx, [r14 + 1]
idiv ecx
mov edi, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, di
mov esi, eax
call qword [sym.imp.WS2_32.dll_htons]
xor di, r14w
mov word [rbp + 0xf], ax
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xf3df
mov word [rbp + 0x11], ax
and cx, si
mov eax, 0x920d
or cx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rdi, qword [rbp - 0x49]
lea r14, [rbx + 0x28]
mov rsi, qword [rbp - 0x41]
mov word [rbp + 0x13], ax
jmp 0x140006b49
mov qword [rbp - 0x59], r14
xor r12d, r12d
nop dword [rax]
imul rax, qword [rbx + 0x30], 0x1d8
mov r13, qword [r14]
add rax, r13
mov dword [rbx + 0x58], r12d
cmp r13, rax
jae 0x1400070a9
mov rcx, qword [rbp - 0x59]
lea r14, [r13 + 0xe0]
nop word [rax + rax]
mov eax, dword [r14 - 0xa8]
test eax, eax
je 0x14000707b
cmp eax, 9
je 0x14000707b
mov word [rbx + 0x68], r12w
mov qword [rbx + 0x670], r12
mov qword [rbx + 0xa88], 1
mov qword [rbx + 0x60], rsi
cmp qword [r14], r14
je 0x140006bc3
mov rdx, r13
mov rcx, rbx
call fcn.140005f90
test r15d, r15d
je 0x140006c09
lea rax, [r14 + 0x10]
cmp qword [rax], rax
je 0x140006c09
mov eax, dword [rbx + 0x40]
sub eax, dword [r14 - 0x70]
cmp eax, 0x5265c00
jae 0x140006c09
mov r8, rdi
mov rdx, r13
mov rcx, rbx
call fcn.140006500
cmp eax, 1
jne 0x140006c09
test rdi, rdi
je 0x140007077
cmp dword [rdi], 0
je 0x140007077
jmp 0x1400070c5
lea rax, [r14 + 0x30]
cmp qword [rax], rax
je 0x140006c25
mov rdx, r13
mov rcx, rbx
call fcn.1400066c0
test eax, eax
je 0x140006cbe
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x140006cbe
mov edx, dword [r14 - 0x74]
mov ecx, dword [rbx + 0x40]
sub ecx, edx
sub edx, dword [rbx + 0x40]
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [r14 - 0x38]
jb 0x140006cbe
mov eax, dword [r14 - 0x10]
sub rax, qword [rbx + 0x60]
cmp rax, 4
jb 0x140006cbe
cmp dword [r14 - 0xa8], 5
jne 0x140006cb3
mov ecx, 0x60
mov word [rbp - 0x39], 0xff85
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x140006c83
call qword [0x1400df130]
jmp 0x140006cb3
movups xmm0, xmmword [rbp - 0x39]
mov rdx, rax
mov rcx, r13
movups xmm1, xmmword [rbp - 0x29]
mov dword [rax + 0x20], r12d
movups xmmword [rax + 0x28], xmm0
mov word [rax + 0x24], r12w
movups xmm0, xmmword [rbp - 0x19]
mov qword [rax + 0x58], r12
movups xmmword [rax + 0x38], xmm1
movups xmmword [rax + 0x48], xmm0
call fcn.140003d20
mov rdx, r13
mov rcx, rbx
call fcn.1400066c0
lea rax, [r14 + 0x40]
cmp qword [rax], rax
je 0x140006cd2
mov rdx, r13
mov rcx, rbx
call fcn.140006180
cmp qword [rbx + 0x670], 0
je 0x140007077
mov ecx, dword [r14 - 0x68]
mov edx, dword [rbx + 0x40]
test ecx, ecx
jne 0x140006cf4
mov dword [r14 - 0x68], edx
jmp 0x140006d7f
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x140006d7f
mov ecx, dword [r14 - 0x64]
test ecx, ecx
je 0x140006d7f
mov r9d, dword [r14 - 0x58]
xor edx, edx
mov eax, dword [r14 - 0x60]
shl eax, 0x10
div ecx
mov ecx, r9d
shr ecx, 2
mov r8d, eax
sub r9d, ecx
mov ecx, dword [r14 - 0x5c]
mov dword [r14 - 0x58], r9d
cmp eax, ecx
jb 0x140006d45
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x140006d57
mov eax, ecx
sub eax, r8d
shr eax, 3
sub ecx, eax
mov eax, ecx
sub eax, r8d
mov r8d, eax
mov rax, r14
shr r8d, 2
add r8d, r9d
mov r9, 0xffffffffffffffa4
mov dword [r9 + rax], ecx
mov dword [r14 - 0x58], r8d
mov eax, dword [rbx + 0x40]
mov dword [r14 - 0x68], eax
mov qword [r14 - 0x64], 0
cmp word [rbx + 0x68], 0
lea rax, [rbp + 0xf]
mov qword [rbx + 0x680], rax
mov rax, qword [rbx + 0x2b10]
jge 0x140006dbf
movzx ecx, word [rbx + 0x40]
test rax, rax
je 0x140006db0
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x17], ax
mov rax, rsi
jmp 0x140006dce
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x11], ax
mov rax, rsi
jmp 0x140006dce
test rax, rax
mov eax, 8
jne 0x140006dce
mov eax, 2
mov rcx, rbx
mov qword [rbx + 0x678], rax
mov rcx, qword [rbx + 0xa98]
mov rsi, r12
test rcx, rcx
je 0x140006e39
mov r10, qword [rbx + 0xaa0]
test r10, r10
je 0x140006e39
mov rdi, qword [rbx + 0x60]
lea rax, [rbx + 0x1ab8]
mov r8, qword [rbx + 0xa88]
lea rdx, [rbx + 0x688]
sub rdi, 4
dec r8
mov qword [rsp + 0x28], rdi
mov r9, rdi
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x140006e39
cmp rax, rdi
jae 0x140006e39
mov ecx, 0x4000
mov rsi, rax
or word [rbx + 0x68], cx
mov r15d, 0xfff
cmp word [r14 - 0xc8], r15w
jae 0x140006e59
movzx eax, byte [r14 - 0xc0]
shl ax, 0xc
or word [rbx + 0x68], ax
movzx ecx, word [rbx + 0x68]
or cx, word [r14 - 0xc8]
cmp qword [rbx + 0x2b10], 0
je 0x140006e7b
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x15], ax
jmp 0x140006e85
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xf], ax
mov r8, qword [rbx + 0xa90]
test r8, r8
je 0x140006ed5
mov rcx, qword [rbx + 0x678]
lea rdi, [rbp + 0xf]
add rdi, rcx
cmp word [r14 - 0xc8], r15w
jae 0x140006eb2
mov eax, dword [r14 - 0xc4]
jmp 0x140006eb5
mov eax, r12d
mov rdx, qword [rbx + 0xa88]
mov dword [rdi], eax
lea rax, [rcx + 4]
lea rcx, [rbx + 0x678]
mov qword [rbx + 0x678], rax
call r8
mov dword [rdi], eax
mov ecx, 2
test rsi, rsi
je 0x140006efb
lea rax, [rbx + 0x1ab8]
mov qword [rbx + 0x688], rsi
mov qword [rbx + 0x690], rax
mov qword [rbx + 0xa88], rcx
mov eax, dword [rbx + 0x40]
lea rdi, [r14 - 0xbc]
mov dword [r14 - 0x78], eax
mov rsi, qword [rbx + 0xa88]
mov r15, qword [rbx]
test rdi, rdi
je 0x140006f3a
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov word [rbp - 1], cx
movzx ecx, word [r14 - 0xb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 1], ax
mov eax, dword [rdi]
mov dword [rbp + 3], eax
mov qword [rsp + 0x40], r12
lea rdx, [rbx + 0x678]
mov qword [rsp + 0x38], r12
mov rax, rdi
neg rax
mov r8d, esi
lea rax, [rbp - 1]
mov rcx, r15
sbb r9d, r9d
and r9d, 0x10
mov dword [rsp + 0x30], r9d
test rdi, rdi
lea r9, [rbp - 9]
cmove rax, r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140006f99
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r12d, r12d
jmp 0x140006f9d
mov r12d, dword [rbp - 9]
mov rdi, qword [r14 + 0x20]
lea r15, [r14 + 0x20]
cmp rdi, r15
je 0x14000705e
nop
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x140007017
dec qword [rax]
mov rax, qword [rdi + 0x58]
cmp qword [rax], 0
jne 0x140007017
or dword [rax + 8], 0x100
mov rsi, qword [rdi + 0x58]
test rsi, rsi
je 0x140007017
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140006ff9
mov rcx, rsi
call rax
test byte [rsi + 8], 4
jne 0x14000700e
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14000700e
call qword [fcn.1400ae74e]
mov rcx, rsi
call qword [fcn.1400ae74e]
mov rcx, rdi
call qword [fcn.1400ae74e]
mov rdi, qword [r15]
cmp rdi, r15
jne 0x140006fb0
cmp dword [r14 - 0xa8], 6
jne 0x14000705e
lea rax, [r14 + 0x30]
cmp qword [r14 + 0x30], rax
jne 0x14000705e
lea rax, [r14 + 0x40]
cmp qword [r14 + 0x40], rax
jne 0x14000705e
lea rax, [r14 + 0x10]
cmp qword [rax], rax
jne 0x14000705e
mov edx, dword [r14 + 0xe8]
mov rcx, r13
call fcn.140003b40
test r12d, r12d
js 0x1400070bc
add dword [rbx + 0x2ad0], r12d
inc dword [rbx + 0x2ad4]
mov r15d, dword [rbp - 0x51]
xor r12d, r12d
mov rcx, qword [rbp - 0x59]
imul rax, qword [rbx + 0x30], 0x1d8
mov rdi, qword [rbp - 0x49]
add r13, 0x1d8
add rax, qword [rcx]
add r14, 0x1d8
mov rsi, qword [rbp - 0x41]
cmp r13, rax
jb 0x140006b80
mov r14, qword [rbp - 0x59]
cmp dword [rbx + 0x58], 0
je 0x1400070c3
mov rdi, qword [rbp - 0x49]
mov rsi, qword [rbp - 0x41]
jmp 0x140006b50
mov eax, 0xffffffff
jmp 0x1400070c5
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400ad1e0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret