Function at 0x1800b6680
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
call fcn.1800654b0
cmp eax, 1
ja 0x1800b6954
cmp byte [0x180211c18], 0
je 0x1800b670f
mov rcx, qword [0x180211c80]
test rcx, rcx
je 0x1800b670f
mov rcx, qword [rcx + 0x40]
xor edx, edx
call fcn.180065bf0
mov rcx, qword [0x180211c80]
mov rcx, qword [rcx + 0x40]
call fcn.180065970
mov rcx, qword [0x180211c80]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.180065bf0
mov rcx, qword [0x180211c80]
mov rcx, qword [rcx + 0x68]
call fcn.180065970
call fcn.180065550
mov rcx, qword [0x180211c80]
mov edx, 8
call fcn.1800b7ba8
xor r9d, r9d
mov qword [0x180211c80], r9
add rsp, 0xa8
ret
mov eax, dword [0x1800fea48]
xor r9d, r9d
cmp byte [0x1800fea4d], r9b
movups xmm0, xmmword [str.fTWOA]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1800fea4c]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x44], ax
je 0x1800b690c
cmp dword [0x180112028], 2
mov ecx, r9d
jl 0x1800b68cc
movdqa xmm0, xmmword [0x1800fef30]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800feda0]
mov eax, 1
movdqa xmm4, xmmword [0x1800fef20]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm7
movdqa xmm7, xmmword [0x1800fee30]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm8
movd xmm8, eax
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800fef10]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1800b67b0
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
cmp ecx, 0x16
jge 0x1800b690c
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800b68e0
xorps xmm0, xmm0
mov qword [rsp + 0x58], r9
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x60], r9
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r9b
jne 0x1800b6930
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180013d70
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180029370
add rsp, 0xa8
ret