Function at 0x140210fc0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r14
mov eax, 0x98
call fcn.1400be950
sub rsp, rax
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
movsxd r14, edx
mov dword [rsp + 0x24], r14d
movaps xmm6, xmm2
mov qword [rsp + 0x30], rcx
test edx, edx
jne 0x140211003
lea eax, [rdi + 1]
jmp 0x1402113bd
mov qword [rsp + 0x90], rbp
call fcn.1401c5500
mov rbp, rax
test rax, rax
je 0x1402113ab
lea rdx, [0x140211550]
lea rcx, [0x1403c7810]
call fcn.1401d46a0
test eax, eax
mov ecx, edi
cmovne ecx, dword [0x1403c781c]
test ecx, ecx
je 0x1402113ab
cmp dword [0x1403c7814], edi
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r15
je 0x140211094
call fcn.1401d4570
mov rcx, qword [0x1403c7808]
mov ebx, eax
call fcn.1401d4680
mov ecx, dword [0x1403c7818]
mov edx, ebx
call fcn.1401d4560
mov rcx, qword [0x1403c7808]
mov ebx, eax
mov dword [rsp + 0x20], eax
call fcn.1401d4740
test ebx, ebx
jne 0x1402110a6
jmp 0x14021109a
mov ebx, edi
mov dword [rsp + 0x20], ebx
mov rcx, qword [0x1403c7800]
call fcn.1401d4680
mov r15, qword [0x1403c73b8]
mov rax, qword [0x1403c77f0]
movups xmm0, xmmword [0x1403c77d8]
mov qword [rsp + 0x28], rax
mov eax, dword [0x1403c77e8]
lea rcx, [r15 + r14]
mov dword [rsp + 0x48], eax
mov qword [0x1403c73b8], rcx
movups xmmword [rsp + 0x38], xmm0
cmp rcx, 0x3ff
jb 0x14021111e
movabs rax, 0x40100401004011
mov qword [0x1403c73b0], 0x3ff
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 9
imul rax, rax, 0x3ff
sub rcx, rax
mov qword [0x1403c73b8], rcx
jmp 0x14021113b
mov rax, qword [0x1403c73b0]
cmp rax, 0x3ff
jae 0x14021113b
cmp rcx, rax
cmova rax, rcx
mov qword [0x1403c73b0], rax
mov eax, 0x66666667
mov ecx, r14d
imul r14d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
mov eax, edi
test ecx, ecx
setg al
add eax, edx
add dword [0x1403c77f4], eax
test ebx, ebx
jne 0x140211177
mov rcx, qword [0x1403c7800]
call fcn.1401d4740
mov qword [rsp + 0x88], rsi
mov r13d, edi
mov qword [rsp + 0x80], r12
test r14d, r14d
jle 0x1402112fd
mov r12d, r14d
movsxd rsi, r15d
mov r14d, reloc.WS2_32.dll_sendto
nop
cmp r12d, 0x14
mov ebx, r12d
cmovg ebx, r14d
call fcn.1401c5a90
mov rdx, rax
xor r8d, r8d
mov rcx, rbp
call fcn.1401c4f50
test eax, eax
je 0x140211389
mov r8, r14
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.1401c51b0
test eax, eax
je 0x140211389
lea rcx, [0x1403c73c0]
movsxd rdx, r15d
add rdx, rcx
lea r14d, [r15 - 0x3ff]
add r14d, ebx
mov rcx, rbp
test r14d, r14d
jle 0x140211231
mov eax, ebx
sub eax, r14d
movsxd r8, eax
call fcn.1401c51b0
test eax, eax
je 0x140211389
movsxd r8, r14d
lea rdx, [0x1403c73c0]
mov rcx, rbp
call fcn.1401c51b0
test eax, eax
je 0x140211389
movsxd rbx, ebx
jmp 0x140211244
movsxd rbx, ebx
mov r8, rbx
call fcn.1401c51b0
test eax, eax
je 0x140211389
mov r14, qword [rsp + 0x30]
mov r8, rbx
mov rdx, r14
mov rcx, rbp
call fcn.1401c51b0
test eax, eax
je 0x140211389
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.1401c51b0
test eax, eax
je 0x140211389
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbp
call fcn.1401c4e70
test eax, eax
je 0x140211389
inc dword [rsp + 0x2c]
add r14, rbx
mov qword [rsp + 0x30], r14
mov r8, rdi
test rbx, rbx
jle 0x1402112e0
lea r14, [0x1403c73c0]
nop dword [rax]
movzx eax, byte [rsp + r8 + 0x38]
lea rcx, [rsi + 1]
xor byte [rsi + r14], al
mov edx, edi
cmp rcx, 0x3ff
lea eax, [r15 + 1]
mov rsi, rdi
cmovl edx, eax
cmovl rsi, rcx
inc r8
mov r15d, edx
cmp r8, rbx
jl 0x1402112b0
add r13d, 0x14
sub r12d, 0x14
mov r14d, reloc.WS2_32.dll_sendto
cmp r13d, dword [rsp + 0x24]
jl 0x1402111a0
mov ebx, dword [rsp + 0x20]
test ebx, ebx
jne 0x140211310
mov rcx, qword [0x1403c7800]
call fcn.1401d4680
nop dword [rax]
movdqu xmm1, xmmword [0x1403c77d8]
mov ecx, 4
lea rdx, [0x1403c77e8]
movdqu xmm0, xmmword [rsp + 0x38]
pxor xmm1, xmm0
movdqu xmmword [0x1403c77d8], xmm1
nop word [rax + rax]
movzx eax, byte [rsp + rdi + 0x48]
xor byte [rdi + rdx], al
lea rdi, [rdi + 1]
sub rcx, 1
jne 0x140211340
movsd xmm0, qword [0x1402d8a70]
movsd xmm1, qword [0x1403c77f8]
comisd xmm0, xmm1
jbe 0x140211374
addsd xmm1, xmm6
movsd qword [0x1403c77f8], xmm1
test ebx, ebx
jne 0x140211384
mov rcx, qword [0x1403c7800]
call fcn.1401d4740
mov edi, 1
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
mov rcx, rbp
call fcn.1401c54c0
mov rbp, qword [rsp + 0x90]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400be7c0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x98
pop r14
pop rdi
ret