Function at 0x18002fcc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
test rcx, rcx
je 0x18002fddd
cmp qword [0x18020ab40], 0
je 0x18002fddd
mov rax, qword [0x18020ab38]
test rax, rax
jne 0x18002fd0e
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x10]
mov rax, qword [0x18020ab40]
add rax, r8
mov qword [0x18020ab38], rax
xor edi, edi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call rax
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x18002fdba
lea rcx, [rsp + 0x30]
call fcn.180026450
cmp qword [rsp + 0x48], 7
lea rdx, [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rcx, rbx
cmova rdx, qword [rsp + 0x30]
lea r8, [rdx + rax*2]
lea rdx, [rsp + 0x30]
cmova rdx, qword [rsp + 0x30]
call fcn.180026990
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18002ff76
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002fda7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002ff84
call fcn.1800b31bc
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rax, qword [str.sWT]
xor edi, edi
cmp byte [str._sWTeHR], dil
mov qword [rsp + 0x60], rax
je 0x18002ff3f
cmp dword [0x18010b088], 2
jl 0x18002ff03
movdqa xmm2, xmmword [0x1800f9b20]
movdqa xmm3, xmmword [0x1800f9b40]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800f9dd0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f9be0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x60]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800f9ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f9ce0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x60], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f9be0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x64]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f9ca0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f9ce0]
xorps xmm2, xmm0
movd dword [rsp + 0x64], xmm2
jmp 0x18002ff3f
lea r8, [rsp + 0x60]
mov ecx, edi
nop word [rax + 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, 0x35
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x18002ff10
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], dil
jne 0x18002ff60
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180013c60
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1800b9e6c
int3