Function at 0x140028170
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rbp
push r14
sub rsp, 0x90
mov dword [rdx], ecx
mov rbx, r8
mov dword [rdx + 4], 1
mov r14, rdx
mov ebp, ecx
cmp ecx, 2
jle 0x1400284b6
movsd xmm0, qword [0x1400691e0]
mov qword [rax + 8], rsi
mov esi, ecx
mov qword [rax + 0x18], r12
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rsp + 0x20], xmm12
mov qword [rax + 0x10], rdi
shr esi, 1
mov qword [rax + 0x20], r15
movd xmm6, esi
cvtdq2pd xmm6, xmm6
call fcn.140053ecc
movaps xmm8, xmm0
divsd xmm8, xmm6
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.140054170
movsd xmm11, qword [0x1400691c8]
movabs r12, 0x3ff0000000000000
mov qword [rbx], r12
movaps xmm12, xmm0
movsd qword [rbx + 8], xmm0
cmp esi, 4
jne 0x140028237
addsd xmm8, xmm8
movaps xmm0, xmm8
call fcn.140054170
movsd qword [rbx + 0x10], xmm0
movaps xmm0, xmm8
call fcn.1400569f0
movsd qword [rbx + 0x18], xmm0
xor edi, edi
jmp 0x1400283b0
xor edi, edi
cmp esi, 4
jbe 0x1400283a4
mov dword [r14 + 8], edi
mov eax, 2
mov dword [r14 + 0xc], 0x10
cmp ebp, 0x20
jle 0x1400282b2
nop dword [rax + rax]
lea r15d, [rax + rax]
movsxd rdx, eax
movsxd r9, r15d
lea r10d, [r15*8]
mov r11, rdx
cmp rdx, r9
jge 0x1400282a7
lea r8, [r14 + rdx*4]
nop
mov eax, dword [r8]
lea r8, [r8 + 4]
lea ecx, [rax*4]
lea rax, [r11 + rdx]
inc rdx
mov dword [r14 + rax*4], ecx
lea eax, [rcx + r10]
mov dword [r8 + r9*4 - 4], eax
cmp rdx, r9
jl 0x140028280
shr ebp, 2
mov eax, r15d
cmp ebp, 0x20
ja 0x140028260
movaps xmm0, xmm8
addsd xmm0, xmm8
call fcn.140054170
movaps xmm1, xmm11
divsd xmm1, xmm0
movaps xmm0, xmm8
mulsd xmm0, qword [0x140069210]
movsd qword [rbx + 0x10], xmm1
call fcn.140054170
movaps xmm1, xmm11
mov ebp, esi
divsd xmm1, xmm0
mov r15d, 4
movsd qword [rbx + 0x18], xmm1
cmp rbp, r15
jbe 0x1400283a4
movaps xmmword [rsp + 0x70], xmm7
lea r14, [rbx + 0x30]
movaps xmmword [rsp + 0x50], xmm9
add rbp, 0xfffffffffffffffb
movaps xmm9, xmm8
shr rbp, 2
mulsd xmm9, qword [0x140069200]
inc rbp
movaps xmmword [rsp + 0x40], xmm10
movsd xmm10, qword [0x140069420]
movd xmm7, r15d
cvtdq2pd xmm7, xmm7
movaps xmm6, xmm7
mulsd xmm6, xmm8
movaps xmm0, xmm6
call fcn.140054170
movsd qword [r14 - 0x10], xmm0
movaps xmm0, xmm6
call fcn.1400569f0
mulsd xmm7, xmm9
movsd qword [r14 - 8], xmm0
movaps xmm0, xmm7
call fcn.140054170
movsd qword [r14], xmm0
movaps xmm0, xmm7
call fcn.1400569f0
xorps xmm0, xmm10
add r15d, 4
movsd qword [r14 + 8], xmm0
lea r14, [r14 + 0x20]
sub rbp, 1
jne 0x140028332
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x70]
jmp 0x1400283b0
cmp esi, 2
jbe 0x14002847c
nop dword [rax]
lea r9d, [rdi + rsi]
sar esi, 1
movsxd rcx, r9d
movsd qword [rbx + rcx*8 + 8], xmm12
mov qword [rbx + rcx*8], r12
cmp esi, 4
jne 0x1400283e7
movsxd rax, edi
mov edi, 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 0x1400283b0
jle 0x140028470
movsxd rax, edi
movaps xmm0, xmm11
movaps xmm1, xmm11
movsxd r8, esi
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 0x140028470
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 + 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 0x140028440
mov edi, r9d
jmp 0x1400283b0
mov edi, r9d
cmp esi, 2
jg 0x1400283b0
mov r15, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm8, xmmword [rsp + 0x60]
mov r12, qword [rsp + 0xc0]
movaps xmm11, xmmword [rsp + 0x30]
mov rsi, qword [rsp + 0xb0]
movaps xmm12, xmmword [rsp + 0x20]
add rsp, 0x90
pop r14
pop rbp
pop rbx
ret