Function at 0x18005a610
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov eax, r9d
movaps xmmword [rsp + 0x30], xmm7
mov r11, rdx
movss xmm7, dword [0x1800d1460]
cdq
sub eax, edx
movaps xmmword [rsp + 0x20], xmm8
movss xmm8, dword [0x1800d1db0]
xorps xmm6, xmm6
sar eax, 1
movsxd r9, eax
xor eax, eax
movaps xmmword [rsp + 0x10], xmm9
movss xmm9, dword [0x1800d14b0]
movaps xmmword [rsp], xmm10
movss xmm10, dword [0x1800d14a0]
cmp r9, 4
jl 0x18005a8a6
mov qword [rsp + 0x60], rbx
lea rdx, [r9 - 4]
shr rdx, 2
lea rbx, [r8 + 8]
inc rdx
mov qword [rsp + 0x50], rdi
lea rdi, [r11 + 8]
lea rax, [rdx*4]
movss xmm1, dword [rbx - 8]
movss xmm4, dword [rcx]
movaps xmm0, xmm1
movss xmm3, dword [rcx + 4]
subss xmm0, xmm4
mulss xmm0, xmm9
addss xmm4, xmm0
addss xmm0, xmm1
movss xmm1, dword [rcx + 8]
movss dword [rcx], xmm0
movss xmm2, dword [rbx - 4]
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm4
mulss xmm0, xmm7
addss xmm3, xmm0
addss xmm0, xmm2
xorps xmm2, xmm8
mulss xmm3, xmm10
movss dword [rcx + 4], xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
addss xmm1, xmm4
mulss xmm0, xmm7
addss xmm1, xmm0
addss xmm2, xmm0
mulss xmm1, xmm1
movss dword [rcx + 8], xmm2
movss dword [rdi - 8], xmm3
movss xmm4, dword [rcx]
addss xmm6, xmm1
movss xmm1, dword [rbx]
movss xmm3, dword [rcx + 4]
movaps xmm0, xmm1
subss xmm0, xmm4
mulss xmm0, xmm9
addss xmm4, xmm0
addss xmm0, xmm1
movss xmm1, dword [rcx + 8]
movss dword [rcx], xmm0
movss xmm2, dword [rbx + 4]
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm4
mulss xmm0, xmm7
addss xmm3, xmm0
addss xmm0, xmm2
xorps xmm2, xmm8
mulss xmm3, xmm10
movss dword [rcx + 4], xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
addss xmm1, xmm4
mulss xmm0, xmm7
addss xmm1, xmm0
addss xmm2, xmm0
mulss xmm1, xmm1
movss dword [rcx + 8], xmm2
movss dword [rdi - 4], xmm3
movss xmm4, dword [rcx]
addss xmm6, xmm1
movss xmm1, dword [rbx + 8]
movss xmm3, dword [rcx + 4]
movaps xmm0, xmm1
subss xmm0, xmm4
mulss xmm0, xmm9
addss xmm4, xmm0
addss xmm0, xmm1
movss xmm1, dword [rcx + 8]
movss dword [rcx], xmm0
movss xmm2, dword [rbx + 0xc]
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm4
mulss xmm0, xmm7
addss xmm3, xmm0
addss xmm0, xmm2
xorps xmm2, xmm8
movss dword [rcx + 4], xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
mulss xmm0, xmm7
addss xmm1, xmm4
mulss xmm3, xmm10
addss xmm2, xmm0
addss xmm1, xmm0
movss dword [rcx + 8], xmm2
movss dword [rdi], xmm3
movss xmm4, dword [rcx]
movss xmm3, dword [rcx + 4]
mulss xmm1, xmm1
addss xmm6, xmm1
movss xmm1, dword [rbx + 0x10]
movaps xmm0, xmm1
subss xmm0, xmm4
mulss xmm0, xmm9
addss xmm4, xmm0
addss xmm0, xmm1
movss xmm1, dword [rcx + 8]
movss dword [rcx], xmm0
movss xmm2, dword [rbx + 0x14]
add rbx, 0x20
movaps xmm0, xmm2
subss xmm0, xmm3
addss xmm3, xmm4
mulss xmm0, xmm7
addss xmm3, xmm0
addss xmm0, xmm2
xorps xmm2, xmm8
mulss xmm3, xmm10
movss dword [rcx + 4], xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
addss xmm1, xmm4
mulss xmm0, xmm7
addss xmm1, xmm0
addss xmm2, xmm0
mulss xmm1, xmm1
movss dword [rcx + 8], xmm2
movss dword [rdi + 4], xmm3
add rdi, 0x10
addss xmm6, xmm1
sub rdx, 1
jne 0x18005a694
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
cmp rax, r9
jge 0x18005a943
lea rdx, [r11 + rax*4]
movss xmm1, dword [r8 + rax*8]
movss xmm5, dword [rcx]
movaps xmm0, xmm1
movss xmm4, dword [rcx + 4]
subss xmm0, xmm5
movss xmm2, dword [rcx + 8]
mulss xmm0, xmm9
addss xmm5, xmm0
addss xmm0, xmm1
movss dword [rcx], xmm0
movss xmm3, dword [r8 + rax*8 + 4]
inc rax
movaps xmm0, xmm3
subss xmm0, xmm4
addss xmm4, xmm5
mulss xmm0, xmm7
addss xmm4, xmm0
addss xmm0, xmm3
xorps xmm3, xmm8
movaps xmm1, xmm3
subss xmm1, xmm2
addss xmm2, xmm5
mulss xmm4, xmm10
movss dword [rcx + 4], xmm0
mulss xmm1, xmm7
addss xmm2, xmm1
addss xmm3, xmm1
mulss xmm2, xmm2
movss dword [rcx + 8], xmm3
movss dword [rdx], xmm4
add rdx, 4
addss xmm6, xmm2
cmp rax, r9
jl 0x18005a8b3
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x10]
movaps xmm10, xmmword [rsp]
add rsp, 0x58
ret