Function at 0x14004c660
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 0x14004c98e
movsd xmm0, qword [0x1400954a0]
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.14007b7ec
movaps xmm8, xmm0
divsd xmm8, xmm6
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.14007ba90
movsd xmm11, qword [0x140095480]
xor r14d, r14d
movsd qword [rbx + 8], xmm0
movabs r12, 0x3ff0000000000000
mov qword [rbx], r12
movaps xmm12, xmm0
cmp edi, 4
jne 0x14004c728
addsd xmm8, xmm8
movaps xmm0, xmm8
call fcn.14007ba90
movsd qword [rbx + 0x10], xmm0
movaps xmm0, xmm8
call fcn.14007ccf0
movsd qword [rbx + 0x18], xmm0
jmp 0x14004c890
jbe 0x14004c881
mov dword [r15 + 8], r14d
mov eax, 2
mov dword [r15 + 0xc], 0x10
cmp esi, 0x20
jle 0x14004c792
lea ebp, [rax + rax]
movsxd rdx, eax
movsxd r9, ebp
lea r10d, [rbp*8]
mov r11, rdx
cmp rdx, r9
jge 0x14004c788
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 0x14004c761
shr esi, 2
mov eax, ebp
cmp esi, 0x20
ja 0x14004c744
movaps xmm0, xmm8
addsd xmm0, xmm8
call fcn.14007ba90
movaps xmm1, xmm11
divsd xmm1, xmm0
movaps xmm0, xmm8
mulsd xmm0, qword [0x1400954d8]
movsd qword [rbx + 0x10], xmm1
call fcn.14007ba90
movaps xmm1, xmm11
mov esi, edi
divsd xmm1, xmm0
mov r15d, 4
movsd qword [rbx + 0x18], xmm1
cmp rsi, r15
jbe 0x14004c890
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 [0x1400954c8]
inc rsi
movaps xmmword [rsp + 0x40], xmm10
movsd xmm10, qword [0x140095640]
movd xmm7, r15d
cvtdq2pd xmm7, xmm7
movaps xmm6, xmm7
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.14007ba90
movsd qword [rbp - 0x10], xmm0
movaps xmm0, xmm6
call fcn.14007ccf0
movsd qword [rbp - 8], xmm0
mulsd xmm7, xmm9
movaps xmm0, xmm7
call fcn.14007ba90
movsd qword [rbp], xmm0
movaps xmm0, xmm7
call fcn.14007ccf0
xorps xmm0, xmm10
add r15d, 4
movsd qword [rbp + 8], xmm0
lea rbp, [rbp + 0x20]
sub rsi, 1
jne 0x14004c812
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x70]
jmp 0x14004c890
cmp edi, 2
jbe 0x14004c954
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 0x14004c8c7
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 0x14004c890
jle 0x14004c948
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 0x14004c948
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 0x14004c920
mov r14d, r9d
cmp edi, 2
jg 0x14004c890
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