Function at 0x140001c90
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
cmp byte [0x14016000b], 0
mov rbx, rdx
movsd xmm0, qword [0x140160000]
mov eax, dword [0x140160008]
mov r10d, dword [0x140165030]
mov qword [rsp + 0x80], rdi
mov edi, 0x1f
movaps xmmword [rsp + 0x60], xmm6
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
lea r11d, [rdi - 0x1a]
je 0x140001e34
xor r8d, r8d
cmp r10d, 2
jl 0x140001df1
movdqa xmm2, xmmword [0x1401600e0]
mov r8d, 8
movdqa xmm3, xmmword [0x1401600f0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140160150]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r11d
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140160110]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140160000]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140160120]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140160130]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140160110]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140160120]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140160130]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x140001e00
mov eax, dword [0x14015fff8]
xor ecx, ecx
movsd xmm0, qword [0x14015fff0]
mov dword [rsp + 0x58], eax
movzx eax, byte [0x14015fffc]
mov byte [rsp + 0x5c], al
movsd qword [rsp + 0x50], xmm0
cmp r10d, 2
jl 0x140001f71
movdqa xmm2, xmmword [0x1401600e0]
mov ecx, 8
movdqa xmm3, xmmword [0x1401600f0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140160150]
movdqa xmm0, xmm2
mov eax, dword [0x140160130]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r11d
movd xmm5, edi
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140160110]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140160120]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [0x14015fff0]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x50], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140160110]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140160120]
movd xmm1, dword [rsp + 0x54]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x54], xmm2
movaps xmm6, xmmword [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rdi, qword [rsp + 0x80]
movsxd rax, ecx
add r8, rax
nop dword [rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0xd
jl 0x140001f90
lea rdx, [rsp + 0x50]
call fcn.140001340
lea r8, [rsp + 0x40]
mov rdx, rax
call fcn.1400014a0
test rax, rax
je 0x14000200a
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call rax
add rsp, 0x70
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x70
pop rbx
ret