Function at 0x14001ec30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
mov rdi, r8
movaps xmmword [rsp + 0x30], xmm6
movaps xmm6, xmm3
mov rbx, rdx
test eax, eax
jne 0x14001ec7c
mov rax, qword [r8]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [rax + 0x50]
cmp eax, 1
jge 0x14001eef4
mov rax, qword [rbx]
xor r9d, r9d
movaps xmm2, xmm6
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14001ecab
cmp eax, 1
jne 0x14001ecea
mov rax, qword [r8]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [rax + 0x50]
cmp eax, 1
jge 0x14001eef4
mov rax, qword [rbx]
xor r9d, r9d
movaps xmm2, xmm6
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x38]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rdi]
mov edx, 1
mov rbx, qword [rdi + 0x10]
mov rcx, rdi
lea r8d, [rdx + 6]
call qword [rax + 0x50]
mov rdx, rdi
mov rcx, rbx
mov dword [rbx + 8], eax
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
jmp fcn.14001cb10
cmp eax, 2
jne 0x14001edbe
mov rax, qword [r8]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 5]
call qword [rax + 0x50]
cmp eax, 1
jge 0x14001ed2b
mov rax, qword [rbx]
xor r9d, r9d
movaps xmm2, xmm6
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x30]
mov rax, qword [rbx]
xor r9d, r9d
movaps xmm2, xmm6
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x38]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [rax + 0x50]
cmp eax, 1
jge 0x14001eef4
mov rcx, rdi
call fcn.14001d320
mov rax, qword [rdi]
mov rcx, rdi
mov rbx, qword [rdi + 8]
call qword [rax + 0x30]
mov r8, qword [rdi]
mov rcx, rdi
test al, al
je 0x14001ed70
lea rdx, [rsp + 0x20]
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
jmp 0x14001ed9a
call qword [r8 + 0x38]
mov r8, qword [rdi]
lea rdx, [rsp + 0x20]
movaps xmm6, xmmword [0x1401fe9e0]
mov rcx, rdi
test al, al
je 0x14001ed90
call qword [r8 + 0x68]
jmp 0x14001ed94
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
mulps xmm0, xmm6
movups xmmword [rbx + 0x10], xmm0
mov rcx, qword [rdi + 0xe0]
mov rdx, rdi
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
jmp qword [rax + 8]
cmp eax, 3
jne 0x14001ee5d
mov rax, qword [r8]
mov rcx, rdi
mov rbx, qword [r8 + 8]
call qword [rax + 0x30]
mov r8, qword [rdi]
mov rcx, rdi
test al, al
je 0x14001edec
lea rdx, [rsp + 0x20]
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
jmp 0x14001ee16
call qword [r8 + 0x38]
mov r8, qword [rdi]
lea rdx, [rsp + 0x20]
movaps xmm6, xmmword [0x1401fe9e0]
mov rcx, rdi
test al, al
je 0x14001ee0c
call qword [r8 + 0x68]
jmp 0x14001ee10
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
mulps xmm0, xmm6
movss xmm2, dword [0x1401fe4b4]
xorps xmm1, xmm1
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
comiss xmm0, dword [0x1401fe3d0]
mov rcx, qword [rdi + 0xa0]
mov rax, qword [rdi + 0x88]
setb dl
add rcx, rcx
mov byte [rax + rcx*8 + 0xb], dl
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
cmp eax, 4
jne 0x14001eef4
mov rax, qword [r8]
mov rcx, rdi
mov rbx, qword [r8 + 8]
call qword [rax + 0x30]
mov r8, qword [rdi]
mov rcx, rdi
test al, al
je 0x14001ee8b
lea rdx, [rsp + 0x20]
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
jmp 0x14001eeb5
call qword [r8 + 0x38]
mov r8, qword [rdi]
lea rdx, [rsp + 0x20]
movaps xmm6, xmmword [0x1401fe9e0]
mov rcx, rdi
test al, al
je 0x14001eeab
call qword [r8 + 0x68]
jmp 0x14001eeaf
call qword [r8 + 0x60]
movups xmm0, xmmword [rax]
mulps xmm0, xmm6
movss xmm6, dword [0x1401fe4b4]
xorps xmm1, xmm1
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rdi]
mov rcx, rdi
movaps xmm2, xmm6
call qword [rax + 0x48]
comiss xmm0, dword [0x1401fe3d0]
setb al
mov byte [rdi + 0x84], al
test al, al
je 0x14001eeec
movss xmm6, dword [0x1401fe324]
movss dword [rdi + 0x80], xmm6
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret