Function at 0x14004b8e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rsi
push r15
sub rsp, 0x90
mov dword [rdx], ecx
mov rbx, r8
mov dword [rdx + 4], 1
mov r15, rdx
mov esi, ecx
cmp ecx, 2
jle 0x14004bc0e
movsd xmm0, qword [0x140094468]
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rdi
mov edi, ecx
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r14
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x78], xmm11
shr edi, 1
movaps xmmword [rsp + 0x20], xmm12
movd xmm6, edi
cvtdq2pd xmm6, xmm6
call fcn.14007aa6c
movaps xmm8, xmm0
divsd xmm8, xmm6
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.14007ad10
movsd xmm11, qword [0x140094448]
xor r14d, r14d
movsd qword [rbx + 8], xmm0
movabs r12, 0x3ff0000000000000
mov qword [rbx], r12
movaps xmm12, xmm0
cmp edi, 4
jne 0x14004b9a8
addsd xmm8, xmm8
movaps xmm0, xmm8
call fcn.14007ad10
movsd qword [rbx + 0x10], xmm0
movaps xmm0, xmm8
call fcn.14007bf70
movsd qword [rbx + 0x18], xmm0
jmp 0x14004bb10
jbe 0x14004bb01
mov dword [r15 + 8], r14d
mov eax, 2
mov dword [r15 + 0xc], 0x10
cmp esi, 0x20
jle 0x14004ba12
lea ebp, [rax + rax]
movsxd rdx, eax
movsxd r9, ebp
lea r10d, [rbp*8]
mov r11, rdx
cmp rdx, r9
jge 0x14004ba08
lea r8, [r15 + rdx*4]
mov eax, dword [r8]
lea r8, [r8 + 4]
lea ecx, [rax*4]
lea rax, [r11 + rdx]
inc rdx
mov dword [r15 + rax*4], ecx
lea eax, [rcx + r10]
mov dword [r8 + r9*4 - 4], eax
cmp rdx, r9
jl 0x14004b9e1
shr esi, 2
mov eax, ebp
cmp esi, 0x20
ja 0x14004b9c4
movaps xmm0, xmm8
addsd xmm0, xmm8
call fcn.14007ad10
movaps xmm1, xmm11
divsd xmm1, xmm0
movaps xmm0, xmm8
mulsd xmm0, qword [0x1400944a0]
movsd qword [rbx + 0x10], xmm1
call fcn.14007ad10
movaps xmm1, xmm11
mov esi, edi
divsd xmm1, xmm0
mov r15d, 4
movsd qword [rbx + 0x18], xmm1
cmp rsi, r15
jbe 0x14004bb10
movaps xmmword [rsp + 0x70], xmm7
lea rbp, [rbx + 0x30]
movaps xmmword [rsp + 0x50], xmm9
add rsi, 0xfffffffffffffffb
movaps xmm9, xmm8
shr rsi, 2
mulsd xmm9, qword [0x140094490]
inc rsi
movaps xmmword [rsp + 0x40], xmm10
movsd xmm10, qword [0x140094610]
movd xmm7, r15d
cvtdq2pd xmm7, xmm7
movaps xmm6, xmm7
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.14007ad10
movsd qword [rbp - 0x10], xmm0
movaps xmm0, xmm6
call fcn.14007bf70
movsd qword [rbp - 8], xmm0
mulsd xmm7, xmm9
movaps xmm0, xmm7
call fcn.14007ad10
movsd qword [rbp], xmm0
movaps xmm0, xmm7
call fcn.14007bf70
xorps xmm0, xmm10
add r15d, 4
movsd qword [rbp + 8], xmm0
lea rbp, [rbp + 0x20]
sub rsi, 1
jne 0x14004ba92
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x70]
jmp 0x14004bb10
cmp edi, 2
jbe 0x14004bbd4
nop word [rax + rax]
lea r9d, [r14 + rdi]
sar edi, 1
movsxd rcx, r9d
movsd qword [rbx + rcx*8 + 8], xmm12
mov qword [rbx + rcx*8], r12
cmp edi, 4
jne 0x14004bb47
movsxd rax, r14d
mov r14d, r9d
movsd xmm0, qword [rbx + rax*8 + 0x28]
mov rax, qword [rbx + rax*8 + 0x20]
mov qword [rbx + rcx*8 + 0x10], rax
movsd qword [rbx + rcx*8 + 0x18], xmm0
jmp 0x14004bb10
jle 0x14004bbc8
movsxd rax, r14d
movaps xmm0, xmm11
movaps xmm1, xmm11
movsxd r8, edi
movsd xmm2, qword [rbx + rax*8 + 0x30]
divsd xmm0, qword [rbx + rax*8 + 0x20]
divsd xmm1, xmm2
movsd qword [rbx + rcx*8 + 0x10], xmm0
movsd qword [rbx + rcx*8 + 0x18], xmm1
cmp r8, 4
jle 0x14004bbc8
add rcx, 6
lea rdx, [rbx + 0x50]
add r8, 0xfffffffffffffffb
lea rdx, [rdx + rax*8]
shr r8, 2
inc r8
lea rcx, [rbx + rcx*8]
nop dword [rax]
nop dword [rax + rax]
movsd xmm2, qword [rdx + 8]
lea rcx, [rcx + 0x20]
mov rax, qword [rdx - 0x10]
movups xmm0, xmmword [rdx - 8]
lea rdx, [rdx + 0x40]
mov qword [rcx - 0x30], rax
movsd qword [rcx - 0x18], xmm2
movups xmmword [rcx - 0x28], xmm0
sub r8, 1
jne 0x14004bba0
mov r14d, r9d
cmp edi, 2
jg 0x14004bb10
movaps xmm11, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x80]
mov r14, qword [rsp + 0xc8]
mov r12, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0x20]
add rsp, 0x90
pop r15
pop rsi
pop rbx
ret