Function at 0x140016d20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xd0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], rdi
movaps xmmword [rbp + 0xa0], xmm6
movaps xmmword [rbp + 0x90], xmm7
movaps xmmword [rbp + 0x80], xmm8
movaps xmmword [rbp + 0x70], xmm9
movaps xmmword [rbp + 0x60], xmm10
movaps xmmword [rbp + 0x50], xmm11
mov rax, qword [0x1400b94c0]
xor rax, rbp
mov qword [rbp + 0x40], rax
mov dword [rbp], r9d
mov r14d, r9d
mov edi, r8d
mov rsi, rdx
mov qword [rbp + 0x10], rdx
mov rbx, rcx
mov qword [rbp + 0x30], rcx
cmp r8d, 3
jl 0x14001710e
test byte [rcx + 0x30], 2
mov rax, qword [rcx + 0x38]
movss xmm7, dword [rax]
movss xmm8, dword [rax + 4]
je 0x14001707d
mov eax, r9d
lea edx, [rdi*8 - 6]
and eax, 0xffffff
add edx, edi
mov dword [rbp + 0x18], eax
lea eax, [rdi + rdi]
mov r8d, eax
mov dword [rbp + 0x20], eax
call fcn.14001bf70
mov esi, dword [rbx + 0x48]
mov r8d, 2
mov dword [rbp + 0x24], esi
lea eax, [rsi + 1]
mov dword [rbp + 0x1c], eax
nop dword [rax]
mov rax, qword [rbx + 0x58]
movzx edx, r8w
add dx, dx
inc r8d
add dx, si
mov word [rax], si
mov rax, qword [rbx + 0x58]
lea ecx, [rdx - 2]
mov word [rax + 2], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 4], dx
add qword [rbx + 0x58], 6
cmp r8d, edi
jl 0x140016df0
mov rsi, qword [rbp + 0x10]
movsxd rax, edi
shl rax, 3
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140016e3f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140060410
movss xmm9, dword [0x140063e00]
sub rsp, rcx
movss xmm6, dword [0x140063d40]
lea ecx, [rdi - 1]
xor r15d, r15d
movsxd rax, edi
mov qword [rbp + 0x10], r15
mov r14d, r15d
lea r13, [rsp + 0x20]
mov r12, rsi
lea rbx, [rax*8 - 8]
nop
movsxd rax, ecx
mov rdx, r12
lea rcx, [rbp + 8]
lea r8, [rsi + rax*8]
call fcn.140003bd0
movaps xmm1, xmm6
lea rcx, [rbp + 8]
call fcn.14001b680
movaps xmm1, xmm0
lea rcx, [rbp + 8]
call fcn.140003c90
movss xmm0, dword [rbp + 8]
mov ecx, r14d
movss xmm2, dword [rbp + 0xc]
xorps xmm0, xmm9
movss dword [rbx + r13 + 4], xmm0
inc r14d
movss dword [rbx + r13], xmm2
add r12, 8
mov rbx, r15
add r15, 8
cmp r14d, edi
jl 0x140016e80
movss xmm9, dword [0x140063d1c]
lea r15d, [rdi - 1]
movss xmm11, dword [0x140069dbc]
mov rax, r13
movss xmm10, dword [0x140063d80]
sub rax, rsi
mov rbx, qword [rbp + 0x30]
mov r14d, dword [rbp + 0x24]
mov r12d, dword [rbp]
mov qword [rbp + 8], rax
lea r8, [rax + rsi]
movsxd rax, r15d
lea rcx, [rbp + 0x30]
lea rdx, [rax*8]
add rdx, r13
call fcn.140003c00
mov rdx, rax
lea rcx, [rbp]
movaps xmm2, xmm9
call fcn.140003ba0
movss xmm1, dword [rbp + 4]
movss xmm0, dword [rbp]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
comiss xmm1, xmm11
jbe 0x140016f70
movaps xmm0, xmm6
lea rcx, [rbp]
divss xmm0, xmm1
movaps xmm1, xmm10
minss xmm1, xmm0
call fcn.140003c90
movaps xmm1, xmm9
lea rcx, [rbp]
call fcn.140003c90
lea r8, [rbp]
mov rdx, rsi
lea rcx, [rbp + 0x24]
call fcn.140003bd0
lea r8, [rbp]
mov rdx, rsi
lea rcx, [rbp + 0x38]
movss xmm0, dword [rax]
movss xmm1, dword [rax + 4]
mov rax, qword [rbx + 0x50]
movss dword [rax], xmm0
movss dword [rax + 4], xmm1
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm7
movss dword [rax + 0xc], xmm8
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], r12d
call fcn.140003c00
mov r9, qword [rbp + 0x10]
add r15w, r15w
mov ecx, dword [rbp + 0x18]
movzx r8d, r9w
add r8w, r8w
add rsi, 8
movss xmm0, dword [rax]
movss xmm1, dword [rax + 4]
mov rax, qword [rbx + 0x50]
lea edx, [r14 + r8]
movss dword [rax + 0x14], xmm0
movss dword [rax + 0x18], xmm1
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm7
movss dword [rax + 0x20], xmm8
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], ecx
lea ecx, [r14 + r15]
mov rax, qword [rbx + 0x58]
add qword [rbx + 0x50], 0x28
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
mov rax, qword [rbx + 0x58]
mov ecx, dword [rbp + 0x1c]
add r15w, cx
add r8w, cx
mov word [rax + 4], r15w
mov rax, qword [rbx + 0x58]
mov word [rax + 6], r15w
mov r15d, r9d
mov rax, qword [rbx + 0x58]
inc r9d
mov qword [rbp + 0x10], r9
mov word [rax + 8], r8w
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
add qword [rbx + 0x58], 0xc
mov rax, qword [rbp + 8]
cmp r9d, edi
jl 0x140016f11
movzx eax, word [rbp + 0x20]
jmp 0x14001710b
lea eax, [rdi - 2]
mov r8d, edi
lea edx, [rax + rax*2]
call fcn.14001bf70
mov rcx, rdi
nop
mov rax, qword [rbx + 0x50]
movsd xmm0, qword [rsi]
lea rsi, [rsi + 8]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm7
movss dword [rax + 0xc], xmm8
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], r14d
add qword [rbx + 0x50], 0x14
sub rcx, 1
jne 0x140017090
mov r8d, 2
nop dword [rax + rax]
mov rcx, qword [rbx + 0x58]
movzx eax, word [rbx + 0x48]
mov word [rcx], ax
lea ecx, [r8 - 1]
add cx, word [rbx + 0x48]
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
movzx ecx, r8w
mov rax, qword [rbx + 0x58]
inc r8d
add cx, word [rbx + 0x48]
mov word [rax + 4], cx
add qword [rbx + 0x58], 6
cmp r8d, edi
jl 0x1400170d0
movzx eax, di
add dword [rbx + 0x48], eax
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.14005fe80
mov rbx, qword [rbp + 0xe0]
mov rsi, qword [rbp + 0xe8]
mov rdi, qword [rbp + 0xf0]
movaps xmm6, xmmword [rbp + 0xa0]
movaps xmm7, xmmword [rbp + 0x90]
movaps xmm8, xmmword [rbp + 0x80]
movaps xmm9, xmmword [rbp + 0x70]
movaps xmm10, xmmword [rbp + 0x60]
movaps xmm11, xmmword [rbp + 0x50]
lea rsp, [rbp + 0xb0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret