Function at 0x1400068d0
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 [0x14004f010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rax, qword [rcx + 0x2b10]
mov r14, rcx
test rax, rax
mov dword [rbp - 0x51], r8d
mov ecx, 0xa
mov qword [rbp - 0x49], rdx
mov edi, 4
mov r15d, r8d
cmovne edi, ecx
lea rsi, [r14 + 0x28]
xor ecx, ecx
mov qword [rbp - 0x41], rdi
mov qword [rbp + 0xf], rcx
mov rbx, rdx
mov dword [rbp + 0x17], ecx
mov word [rbp + 0x1b], cx
mov qword [rbp - 0x59], rsi
test rax, rax
je 0x1400069a2
mov rax, qword [rsi]
movzx esi, word [rax + 0x28]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
lea ecx, [rsi + 1]
idiv ecx
mov ebx, edx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, bx
mov edi, eax
call qword [sym.imp.WS2_32.dll_htons]
xor bx, si
mov word [rbp + 0xf], ax
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xf3df
mov word [rbp + 0x11], ax
and cx, di
mov eax, 0x920d
or cx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov rbx, qword [rbp - 0x49]
lea rsi, [r14 + 0x28]
mov rdi, qword [rbp - 0x41]
mov word [rbp + 0x13], ax
jmp 0x1400069a6
mov qword [rbp - 0x59], rsi
xor r12d, r12d
nop dword [rax]
imul rax, qword [r14 + 0x30], 0x1d8
mov r13, qword [rsi]
add rax, r13
mov dword [r14 + 0x58], r12d
cmp r13, rax
jae 0x140006ee6
mov rcx, qword [rbp - 0x59]
lea rsi, [r13 + 0xe0]
nop word [rax + rax]
mov eax, dword [rsi - 0xa8]
test eax, eax
je 0x140006eb8
cmp eax, 9
je 0x140006eb8
mov word [r14 + 0x68], r12w
mov qword [r14 + 0x670], r12
mov qword [r14 + 0xa88], 1
mov qword [r14 + 0x60], rdi
cmp qword [rsi], rsi
je 0x140006a22
mov rdx, r13
mov rcx, r14
call fcn.140005df0
test r15d, r15d
je 0x140006a68
lea rax, [rsi + 0x10]
cmp qword [rax], rax
je 0x140006a68
mov eax, dword [r14 + 0x40]
sub eax, dword [rsi - 0x70]
cmp eax, 0x5265c00
jae 0x140006a68
mov r8, rbx
mov rdx, r13
mov rcx, r14
call fcn.140006350
cmp eax, 1
jne 0x140006a68
test rbx, rbx
je 0x140006eb4
cmp dword [rbx], 0
je 0x140006eb4
jmp 0x140006f03
lea rax, [rsi + 0x30]
cmp qword [rax], rax
je 0x140006a84
mov rdx, r13
mov rcx, r14
call fcn.140006520
test eax, eax
je 0x140006b1b
lea rax, [rsi + 0x10]
cmp qword [rax], rax
jne 0x140006b1b
mov edx, dword [rsi - 0x74]
mov ecx, dword [r14 + 0x40]
sub ecx, edx
sub edx, dword [r14 + 0x40]
cmp ecx, 0x5265c00
cmovb edx, ecx
cmp edx, dword [rsi - 0x38]
jb 0x140006b1b
mov eax, dword [rsi - 0x10]
sub rax, qword [r14 + 0x60]
cmp rax, 4
jb 0x140006b1b
cmp dword [rsi - 0xa8], 5
jne 0x140006b10
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 0x140006ae0
call qword [0x14004f080]
jmp 0x140006b10
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.140003b70
mov rdx, r13
mov rcx, r14
call fcn.140006520
lea rax, [rsi + 0x40]
cmp qword [rax], rax
je 0x140006b2f
mov rdx, r13
mov rcx, r14
call fcn.140005fd0
cmp qword [r14 + 0x670], 0
je 0x140006eb4
mov ecx, dword [rsi - 0x68]
mov edx, dword [r14 + 0x40]
test ecx, ecx
jne 0x140006b4d
mov dword [rsi - 0x68], edx
jmp 0x140006bc3
mov eax, edx
sub eax, ecx
sub ecx, edx
cmp eax, 0x5265c00
cmovb ecx, eax
cmp ecx, 0x2710
jb 0x140006bc3
mov ecx, dword [rsi - 0x64]
test ecx, ecx
je 0x140006bc3
mov eax, dword [rsi - 0x60]
xor edx, edx
shl eax, 0x10
div ecx
mov edx, dword [rsi - 0x58]
mov ecx, edx
shr ecx, 2
mov r8d, eax
sub edx, ecx
mov ecx, dword [rsi - 0x5c]
cmp eax, ecx
jb 0x140006b94
sub eax, ecx
shr eax, 3
add ecx, eax
sub r8d, ecx
jmp 0x140006ba6
mov eax, ecx
sub eax, r8d
shr eax, 3
sub ecx, eax
mov eax, ecx
sub eax, r8d
mov r8d, eax
mov dword [rsi - 0x5c], ecx
shr r8d, 2
add r8d, edx
mov dword [rsi - 0x58], r8d
mov eax, dword [r14 + 0x40]
mov dword [rsi - 0x68], eax
mov qword [rsi - 0x64], 0
cmp word [r14 + 0x68], 0
lea rax, [rbp + 0xf]
mov qword [r14 + 0x680], rax
mov rax, qword [r14 + 0x2b10]
jge 0x140006c05
movzx ecx, word [r14 + 0x40]
test rax, rax
je 0x140006bf6
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x17], ax
mov rax, rdi
jmp 0x140006c14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x11], ax
mov rax, rdi
jmp 0x140006c14
test rax, rax
mov eax, 8
jne 0x140006c14
mov eax, 2
mov rcx, r14
xor edi, edi
lea r12, [rcx + 0x678]
mov qword [r12], rax
mov rcx, qword [r14 + 0xa98]
test rcx, rcx
je 0x140006c83
mov r10, qword [r14 + 0xaa0]
test r10, r10
je 0x140006c83
mov rbx, qword [r14 + 0x60]
lea rax, [r14 + 0x1ab8]
mov r8, qword [r14 + 0xa88]
lea rdx, [r14 + 0x688]
sub rbx, 4
dec r8
mov qword [rsp + 0x28], rbx
mov r9, rbx
mov qword [rsp + 0x20], rax
call r10
test rax, rax
je 0x140006c83
cmp rax, rbx
jae 0x140006c83
mov ecx, 0x4000
mov rdi, rax
or word [r14 + 0x68], cx
mov r15d, 0xfff
cmp word [rsi - 0xc8], r15w
jae 0x140006ca3
movzx eax, byte [rsi - 0xc0]
shl ax, 0xc
or word [r14 + 0x68], ax
movzx ecx, word [r14 + 0x68]
or cx, word [rsi - 0xc8]
cmp qword [r14 + 0x2b10], 0
je 0x140006cc5
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x15], ax
jmp 0x140006ccf
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xf], ax
mov r8, qword [r14 + 0xa90]
test r8, r8
je 0x140006d13
mov rcx, qword [r12]
lea rbx, [rbp + 0xf]
add rbx, rcx
cmp word [rsi - 0xc8], r15w
jae 0x140006cf8
mov eax, dword [rsi - 0xc4]
jmp 0x140006cfa
xor eax, eax
mov rdx, qword [r14 + 0xa88]
mov dword [rbx], eax
lea rax, [rcx + 4]
mov rcx, r12
mov qword [r12], rax
call r8
mov dword [rbx], eax
mov ecx, 2
test rdi, rdi
je 0x140006d39
lea rax, [r14 + 0x1ab8]
mov qword [r14 + 0x688], rdi
mov qword [r14 + 0x690], rax
mov qword [r14 + 0xa88], rcx
mov eax, dword [r14 + 0x40]
lea rbx, [rsi - 0xbc]
mov dword [rsi - 0x78], eax
mov rdi, qword [r14 + 0xa88]
mov r15, qword [r14]
test rbx, rbx
je 0x140006d77
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov word [rbp - 1], cx
movzx ecx, word [rsi - 0xb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 1], ax
mov eax, dword [rbx]
mov dword [rbp + 3], eax
mov ecx, 0
mov rax, rbx
mov qword [rsp + 0x40], rcx
neg rax
mov qword [rsp + 0x38], rcx
lea rax, [rbp - 1]
sbb r9d, r9d
mov r8d, edi
and r9d, 0x10
mov rdx, r12
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rbp - 9]
cmove rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140006dd6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb r12d, r12d
jmp 0x140006dda
mov r12d, dword [rbp - 9]
mov rbx, qword [rsi + 0x20]
lea r15, [rsi + 0x20]
cmp rbx, r15
je 0x140006e9a
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x58]
test rax, rax
je 0x140006e57
dec qword [rax]
mov rax, qword [rbx + 0x58]
cmp qword [rax], 0
jne 0x140006e57
or dword [rax + 8], 0x100
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x140006e57
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140006e39
mov rcx, rdi
call rax
test byte [rdi + 8], 4
jne 0x140006e4e
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140006e4e
call qword [0x14004f078]
mov rcx, rdi
call qword [0x14004f078]
mov rcx, rbx
call qword [0x14004f078]
mov rbx, qword [r15]
cmp rbx, r15
jne 0x140006df0
cmp dword [rsi - 0xa8], 6
jne 0x140006e9a
lea rax, [rsi + 0x30]
cmp qword [rax], rax
jne 0x140006e9a
lea rax, [rsi + 0x40]
cmp qword [rax], rax
jne 0x140006e9a
lea rax, [rsi + 0x10]
cmp qword [rax], rax
jne 0x140006e9a
mov edx, dword [rsi + 0xe8]
mov rcx, r13
call fcn.140003990
test r12d, r12d
js 0x140006efa
add dword [r14 + 0x2ad0], r12d
inc dword [r14 + 0x2ad4]
mov r15d, dword [rbp - 0x51]
xor r12d, r12d
mov rcx, qword [rbp - 0x59]
imul rax, qword [r14 + 0x30], 0x1d8
mov rbx, qword [rbp - 0x49]
add r13, 0x1d8
add rax, qword [rcx]
add rsi, 0x1d8
mov rdi, qword [rbp - 0x41]
cmp r13, rax
jb 0x1400069e0
mov rsi, qword [rbp - 0x59]
cmp dword [r14 + 0x58], 0
je 0x140006f01
mov rbx, qword [rbp - 0x49]
mov rdi, qword [rbp - 0x41]
jmp 0x1400069b0
mov eax, 0xffffffff
jmp 0x140006f03
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14003a020
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret