Function at 0x1800cb5e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rdi, rcx
movups xmm0, xmmword [str.VeDRTV__QRs_7_7_n_]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x18012add8]
movsd qword [rsp + 0x60], xmm0
movzx eax, word [0x18012ade0]
mov word [rsp + 0x68], ax
xor ebx, ebx
cmp byte [0x18012ade1], bl
je 0x1800cb7ab
mov ecx, ebx
cmp dword [0x180149018], 2
jl 0x1800cb772
movdqa xmm5, xmmword [0x18012ef60]
movdqa xmm4, xmmword [0x18012f050]
movdqa xmm6, xmmword [0x18012efa0]
movdqa xmm0, xmmword [0x18012f060]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x54]
mov r8d, dword [rsp + 0x30]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f040]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18012f040]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x1800cb670
cmp ecx, 0x1a
jge 0x1800cb7ab
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1a
jl 0x1800cb780
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800cb7d0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180016150
nop
test rdi, rdi
jne 0x1800cb873
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor r8d, r8d
lea rdx, [0x18011f470]
lea rcx, [rsp + 0x50]
call fcn.180016150
nop
cmp byte [0x18014add8], dil
je 0x1800cb867
mov byte [rsp + 0x90], dil
mov dword [rsp + 0x98], 2
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [0x18014bfd8]
mov qword [rsp + 0x20], rax
lea r9, [0x18014bfc8]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x98]
call fcn.180028480
nop
lea rcx, [rsp + 0x50]
call fcn.18002d3d0
jmp 0x1800cb88a
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.180062b90
test eax, eax
jle 0x1800cb88a
movsxd rbx, eax
add rbx, rdi
lea rcx, [rsp + 0x30]
call fcn.18002d3d0
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret