Function at 0x14008ab10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movsd xmm0, qword [0x140162d68]
xor ebx, ebx
cmp byte [0x140162d73], bl
mov eax, dword [0x140162d70]
mov edi, dword [0x14017d0d8]
movsd qword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], eax
je 0x14008ac91
mov r8d, ebx
cmp edi, 2
jl 0x14008ac4e
movdqa xmm2, xmmword [0x140167f70]
mov r8d, 8
movdqa xmm4, xmmword [0x1401682b0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140167f90]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140162d68]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401680f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140168120]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x20], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x24]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401680f0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140168120]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x20]
add r9, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x14008ac60
lea rcx, [rsp + 0x20]
call qword [0x140142418]
test rax, rax
jne 0x14008ae29
mov eax, dword [0x140162d58]
movsd xmm0, qword [0x140162d50]
mov dword [rsp + 0x28], eax
movzx eax, byte [0x140162d5c]
mov byte [rsp + 0x2c], al
movsd qword [rsp + 0x20], xmm0
cmp edi, 2
jl 0x14008add2
movdqa xmm2, xmmword [0x140167f70]
mov ebx, 8
movdqa xmm4, xmmword [0x1401682b0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x140167f90]
movdqa xmm0, xmm2
mov eax, dword [0x140168120]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401680f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x140162d50]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x20], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140167fc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401680f0]
movd xmm1, dword [rsp + 0x24]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x24], xmm2
movsxd rax, ebx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0xd
jl 0x14008ade0
lea rcx, [rsp + 0x20]
call qword [0x140142418]
test rax, rax
sete al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret