Function at 0x14021ee50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x1404a90f8]
xor rax, rbp
mov qword [rbp + 0x18], rax
movsxd rax, dword [rcx]
mov r12, r8
mov rsi, rcx
mov qword [rbp + 8], rdx
mov ecx, eax
mov r9d, eax
mov r8d, eax
sar ecx, 1
sar r8d, 3
mov rdi, rdx
lea rdx, [rax*4]
sar r9d, 2
lea rax, [rdx + 0xf]
mov dword [rbp], ecx
mov dword [rbp + 4], r8d
mov qword [rbp + 0x10], rdx
cmp rax, rdx
ja 0x14021eec5
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400be3f0
sub rsp, rax
movsxd r14, ecx
movsxd r15, r9d
movsxd r11, r8d
lea rbx, [rsp + 0x20]
lea rax, [r15 + r14]
lea rdx, [rdi + rax*4]
mov rax, qword [rsi + 8]
xor edi, edi
lea r10, [rbx + r14*4]
lea r9, [rdx + 4]
mov r13d, edi
mov r8d, edi
lea rcx, [rax + r14*4]
test r11, r11
jle 0x14021ef77
lea rax, [r11 - 1]
shr rax, 1
lea r13d, [rax*2 + 2]
nop dword [rax]
nop word [rax + rax]
movss xmm2, dword [r9 + 8]
sub rcx, 8
addss xmm2, dword [rdx - 0x10]
movss xmm3, dword [rdx - 8]
sub rdx, 0x10
addss xmm3, dword [r9]
add r9, 0x10
movaps xmm0, xmm2
mulss xmm0, dword [rcx + 4]
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
addss xmm1, xmm0
movss dword [r10 + r8*4], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r10 + r8*4 + 4], xmm2
add r8, 2
cmp r8, r11
jl 0x14021ef20
mov eax, dword [rbp]
sub eax, dword [rbp + 4]
mov r9, qword [rbp + 8]
movsxd r11, eax
add r9, 4
movsxd r8, r13d
cmp r8, r11
jge 0x14021f007
mov rax, r11
sub rax, r8
dec rax
shr rax, 1
lea r13d, [r13 + rax*2]
add r13d, 2
nop word [rax + rax]
movss xmm3, dword [rdx - 8]
sub rcx, 8
subss xmm3, dword [r9]
movss xmm2, dword [rdx - 0x10]
sub rdx, 0x10
subss xmm2, dword [r9 + 8]
add r9, 0x10
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
movaps xmm0, xmm2
mulss xmm0, dword [rcx + 4]
addss xmm1, xmm0
movss dword [r10 + r8*4], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r10 + r8*4 + 4], xmm2
add r8, 2
cmp r8, r11
jl 0x14021efb0
mov rdx, qword [rbp + 8]
add rdx, qword [rbp + 0x10]
movsxd rax, r13d
cmp rax, r14
jge 0x14021f07d
movss xmm4, dword [0x140437d70]
nop
movss xmm3, dword [rdx - 8]
sub rcx, 8
movss xmm2, dword [rdx - 0x10]
sub rdx, 0x10
xorps xmm2, xmm4
xorps xmm3, xmm4
subss xmm2, dword [r9 + 8]
subss xmm3, dword [r9]
add r9, 0x10
movaps xmm0, xmm2
mulss xmm0, dword [rcx + 4]
movaps xmm1, xmm3
mulss xmm1, dword [rcx]
addss xmm1, xmm0
movss dword [r10 + rax*4], xmm1
mulss xmm2, dword [rcx]
mulss xmm3, dword [rcx + 4]
subss xmm2, xmm3
movss dword [r10 + rax*4 + 4], xmm2
add rax, 2
cmp rax, r14
jl 0x14021f020
mov r8d, dword [rbp]
mov rdx, r10
mov rcx, rsi
call fcn.14021f860
mov rdx, rbx
mov rcx, rsi
call fcn.14021f640
mov rax, qword [rsi + 8]
lea rcx, [rax + r14*4]
lea rax, [r12 + r14*4]
cmp r15, 4
jl 0x14021f1f8
lea rdx, [r15 - 4]
shr rdx, 2
lea r8, [r12 + 8]
inc rdx
lea rdi, [rdx*4]
nop word [rax + rax]
movss xmm1, dword [rbx + 4]
mulss xmm1, dword [rcx + 4]
movss xmm0, dword [rcx]
mulss xmm0, dword [rbx]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 8], xmm1
movss xmm2, dword [rcx + 4]
mulss xmm2, dword [rbx]
movss xmm0, dword [rbx + 4]
mulss xmm0, dword [rcx]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rax - 4], xmm2
movss xmm1, dword [rbx + 8]
mulss xmm1, dword [rcx + 8]
movss xmm0, dword [rcx + 0xc]
mulss xmm0, dword [rbx + 0xc]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 - 4], xmm1
movss xmm2, dword [rbx + 8]
mulss xmm2, dword [rcx + 0xc]
movss xmm0, dword [rcx + 8]
mulss xmm0, dword [rbx + 0xc]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rax - 8], xmm2
movss xmm1, dword [rbx + 0x10]
mulss xmm1, dword [rcx + 0x10]
movss xmm0, dword [rcx + 0x14]
mulss xmm0, dword [rbx + 0x14]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8], xmm1
movss xmm2, dword [rbx + 0x10]
mulss xmm2, dword [rcx + 0x14]
movss xmm0, dword [rcx + 0x10]
mulss xmm0, dword [rbx + 0x14]
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rax - 0xc], xmm2
add rax, 0xfffffffffffffff0
movss xmm0, dword [rcx + 0x1c]
mulss xmm0, dword [rbx + 0x1c]
movss xmm1, dword [rcx + 0x18]
mulss xmm1, dword [rbx + 0x18]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r8 + 4], xmm1
add r8, 0x10
movss xmm2, dword [rcx + 0x1c]
mulss xmm2, dword [rbx + 0x18]
movss xmm0, dword [rcx + 0x18]
add rcx, 0x20
mulss xmm0, dword [rbx + 0x1c]
add rbx, 0x20
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rax], xmm2
sub rdx, 1
jne 0x14021f0d0
cmp rdi, r15
jge 0x14021f254
sub rcx, rbx
movss xmm0, dword [rbx + 4]
sub rax, 4
mulss xmm0, dword [rcx + rbx + 4]
movss xmm1, dword [rcx + rbx]
mulss xmm1, dword [rbx]
addss xmm1, xmm0
mulss xmm1, dword [rsi + 0x18]
movss dword [r12 + rdi*4], xmm1
inc rdi
movss xmm2, dword [rcx + rbx + 4]
mulss xmm2, dword [rbx]
movss xmm0, dword [rbx + 4]
mulss xmm0, dword [rcx + rbx]
add rbx, 8
subss xmm2, xmm0
mulss xmm2, dword [rsi + 0x18]
movss dword [rax], xmm2
cmp rdi, r15
jl 0x14021f200
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bd5f0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret