Function at 0x1800cac4c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x180128180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, dword [rcx + 8]
lea r10, [rcx + 0xe]
xor r13d, r13d
lea r11, [r11 - 0x54]
test ebp, ebp
lea rdi, [rsp + 0x30]
mov r15, rdx
mov rbx, rcx
cmovle ebp, r13d
mov r9d, r13d
lea r14d, [r13 + 1]
mov r8, r10
mov dword [r11 - 4], r14d
sub r11, r10
sub rdi, r10
movzx edx, word [r8]
mov rax, rbx
sub rax, r10
movsxd rsi, r9d
add r9d, r14d
movsx ecx, word [rax + r8 + 0xc]
imul ecx, dword [rdi + r8]
mov dword [r11 + r8], ecx
lea r8, [r8 + 4]
cmp dx, r14w
jne 0x1800caca5
lea eax, [r9 + r9]
movsxd rcx, eax
movsx r9d, word [rbx + rcx*2 + 0xa]
test esi, esi
js 0x1800caf09
mov rdi, rsi
shl rdi, 2
test esi, esi
je 0x1800cacf4
movsx r14d, word [rdi + rbx + 0xa]
movsx ecx, word [rdi + rbx + 0xc]
sub ecx, 2
je 0x1800cad90
sub ecx, 1
je 0x1800cad67
sub ecx, 1
je 0x1800cad3e
cmp ecx, 1
jne 0x1800caef3
mov r8d, dword [rsp + rdi + 0x30]
mov ecx, ebp
mov eax, r8d
mov dword [rsp + 0x28], r14d
shl eax, cl
mov rcx, r15
mov dword [rsp + 0x20], r8d
mov r8, rbx
movsxd rdx, eax
call fcn.1800ca744
jmp 0x1800caef3
mov r8d, dword [rsp + rdi + 0x30]
mov ecx, ebp
mov eax, r8d
mov dword [rsp + 0x28], r14d
shl eax, cl
mov rcx, r15
mov dword [rsp + 0x20], r8d
mov r8, rbx
movsxd rdx, eax
call fcn.1800ca404
jmp 0x1800caef3
mov r8d, dword [rsp + rdi + 0x30]
mov ecx, ebp
mov eax, r8d
mov dword [rsp + 0x28], r14d
shl eax, cl
mov rcx, r15
mov dword [rsp + 0x20], r8d
mov r8, rbx
movsxd rdx, eax
call fcn.1800ca228
jmp 0x1800caef3
cmp r9d, 4
je 0x1800cadaf
mov r8d, 0x4c
lea rdx, [0x1800fcb58]
lea rcx, str.assertion_failed:_m4
call fcn.1800b02e4
cmp dword [rsp + rdi + 0x30], r13d
jle 0x1800caef3
mov ecx, dword [rsp + rdi + 0x30]
lea rax, [r15 + 0x28]
movss xmm2, dword [rax - 8]
movss xmm3, dword [rax - 4]
movss xmm0, dword [rax - 0x28]
subss xmm0, xmm2
movss dword [rax - 8], xmm0
movss xmm1, dword [rax - 0x24]
subss xmm1, xmm3
movss dword [rax - 4], xmm1
addss xmm2, dword [rax - 0x28]
addss xmm3, dword [rax - 0x24]
movss xmm0, dword [rax - 0x20]
movss dword [rax - 0x28], xmm2
movss dword [rax - 0x24], xmm3
movss xmm4, dword [rax + 4]
movaps xmm2, xmm4
addss xmm2, dword [rax]
subss xmm4, dword [rax]
mulss xmm2, dword [0x1800fb6f4]
mulss xmm4, dword [0x1800fb6f4]
subss xmm0, xmm2
movss dword [rax], xmm0
movss xmm1, dword [rax - 0x1c]
subss xmm1, xmm4
movss dword [rax + 4], xmm1
addss xmm2, dword [rax - 0x20]
addss xmm4, dword [rax - 0x1c]
movss xmm0, dword [rax - 0x18]
movss dword [rax - 0x20], xmm2
movss dword [rax - 0x1c], xmm4
movss xmm2, dword [rax + 0xc]
movss xmm3, dword [rax + 8]
subss xmm0, xmm2
xorps xmm3, xmmword [0x1800f1cf0]
movss dword [rax + 8], xmm0
movss xmm1, dword [rax - 0x14]
subss xmm1, xmm3
movss dword [rax + 0xc], xmm1
addss xmm2, dword [rax - 0x18]
movss xmm0, dword [rax - 0x10]
addss xmm3, dword [rax - 0x14]
movss dword [rax - 0x18], xmm2
movss dword [rax - 0x14], xmm3
movss xmm4, dword [rax + 0x14]
movaps xmm2, xmm4
addss xmm4, dword [rax + 0x10]
subss xmm2, dword [rax + 0x10]
xorps xmm4, xmmword [0x1800f1cf0]
mulss xmm2, dword [0x1800fb6f4]
mulss xmm4, dword [0x1800fb6f4]
subss xmm0, xmm2
movss dword [rax + 0x10], xmm0
movss xmm1, dword [rax - 0xc]
subss xmm1, xmm4
movss dword [rax + 0x14], xmm1
addss xmm2, dword [rax - 0x10]
addss xmm4, dword [rax - 0xc]
movss dword [rax - 0x10], xmm2
movss dword [rax - 0xc], xmm4
add rax, 0x40
sub rcx, 1
jne 0x1800cadc2
mov r9d, r14d
sub rdi, 4
mov r14d, 1
sub esi, r14d
jns 0x1800cacea
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800e3250
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret