Function at 0x140060670
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov r8d, dword [rcx]
mov r9d, dword [rcx]
mov rdi, rcx
movsxd r15, dword [rdi]
mov ecx, dword [rcx]
sar r8d, 1
shl r15, 2
sar r9d, 2
sar ecx, 3
lea rax, [r15 + 0xf]
mov qword [rbp + 0x58], rbx
mov r12, rdx
cmp rax, r15
ja 0x1400606bf
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14002b2a0
sub rsp, rax
movsxd rax, r9d
movsxd r14, r8d
mov qword [rbp + 0x48], rax
xor esi, esi
add rax, r14
lea rbx, [rsp + 0x20]
movsxd r10, ecx
lea r11, [rdx + rax*4]
lea r13, [rbx + r14*4]
mov edx, esi
lea rax, [r11 + 4]
mov qword [rbp + 0x40], rax
mov rax, qword [rdi + 8]
lea r9, [rax + r14*4]
test ecx, ecx
jle 0x140060774
mov r14, qword [rbp + 0x40]
lea rax, [r10 - 1]
shr rax, 1
lea edx, [rax*2 + 2]
mov eax, esi
movss xmm2, dword [r14 + 8]
movss xmm3, dword [r11 - 8]
sub r9, 8
sub r11, 0x10
addss xmm3, dword [r14]
addss xmm2, dword [r11]
add r14, 0x10
movaps xmm0, xmm2
movaps xmm1, xmm3
mulss xmm1, dword [r9]
mulss xmm0, dword [r9 + 4]
addss xmm1, xmm0
movss dword [r13 + rax*4], xmm1
mulss xmm2, dword [r9]
mulss xmm3, dword [r9 + 4]
add rax, 2
subss xmm2, xmm3
movss dword [r13 + rax*4 - 4], xmm2
cmp rax, r10
jl 0x140060714
movsxd r14, r8d
mov eax, r8d
movsxd r10, edx
lea r13, [r12 + 4]
sub eax, ecx
movsxd rcx, eax
cmp r10, rcx
jge 0x1400607fc
mov rax, rcx
sub rax, r10
dec rax
shr rax, 1
lea edx, [rdx + rax*2]
lea rax, [rbx + r14*4]
add edx, 2
movss xmm3, dword [r11 - 8]
sub r9, 8
sub r11, 0x10
subss xmm3, dword [r13]
movss xmm2, dword [r11]
add r13, 0x10
subss xmm2, dword [r13 - 8]
movaps xmm1, xmm3
mulss xmm1, dword [r9]
movaps xmm0, xmm2
mulss xmm0, dword [r9 + 4]
addss xmm1, xmm0
movss dword [rax + r10*4], xmm1
mulss xmm2, dword [r9]
mulss xmm3, dword [r9 + 4]
add r10, 2
subss xmm2, xmm3
movss dword [rax + r10*4 - 4], xmm2
cmp r10, rcx
jl 0x14006079f
movsxd rax, edx
lea rcx, [r15 + r12]
lea rdx, [rbx + r14*4]
cmp rax, r14
jge 0x140060873
movss xmm4, dword [0x140161cf0]
movss xmm3, dword [rcx - 8]
sub r9, 8
sub rcx, 0x10
movss xmm2, dword [rcx]
xorps xmm3, xmm4
subss xmm3, dword [r13]
xorps xmm2, xmm4
add r13, 0x10
subss xmm2, dword [r13 - 8]
movaps xmm1, xmm3
mulss xmm1, dword [r9]
movaps xmm0, xmm2
mulss xmm0, dword [r9 + 4]
addss xmm1, xmm0
movss dword [rdx + rax*4], xmm1
mulss xmm2, dword [r9]
mulss xmm3, dword [r9 + 4]
add rax, 2
subss xmm2, xmm3
movss dword [rdx + rax*4 - 4], xmm2
cmp rax, r14
jl 0x140060814
mov rcx, rdi
call fcn.14005fa38
mov rdx, rbx
mov rcx, rdi
call fcn.14005f8a0
mov rax, qword [rdi + 8]
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
lea rcx, [rax + r14*4]
lea rax, [r8 + r14*4]
test rdx, rdx
jle 0x1400608f3
movss xmm0, dword [rbx + 4]
movss xmm1, dword [rcx]
sub rax, 4
mulss xmm0, dword [rcx + 4]
mulss xmm1, dword [rbx]
addss xmm1, xmm0
mulss xmm1, dword [rdi + 0x18]
movss dword [r8 + rsi*4], xmm1
movss xmm2, dword [rcx + 4]
movss xmm0, dword [rcx]
inc rsi
add rcx, 8
mulss xmm2, dword [rbx]
mulss xmm0, dword [rbx + 4]
add rbx, 8
subss xmm2, xmm0
mulss xmm2, dword [rdi + 0x18]
movss dword [rax], xmm2
cmp rsi, rdx
jl 0x14006089f
mov rbx, qword [rbp + 0x58]
mov rsp, rbp
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret