Function at 0x18002ec20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
test rcx, rcx
je 0x18002ed3d
cmp qword [0x180209b18], 0
je 0x18002ed3d
mov rax, qword [0x180209b08]
test rax, rax
jne 0x18002ec6e
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x10]
mov rax, qword [0x180209b18]
add rax, r8
mov qword [0x180209b08], 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 0x18002ed1a
lea rcx, [rsp + 0x30]
call fcn.1800253c0
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.180025900
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x18002eecd
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ed07
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002eedb
call fcn.1800b2a4c
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 [0x1800e73e8]
xor edi, edi
cmp byte [str._zQJIRRZ], dil
mov qword [rsp + 0x60], rax
je 0x18002ee9d
cmp dword [0x18010a088], 2
jl 0x18002ee5b
movdqa xmm2, xmmword [0x1800f8c90]
movdqa xmm4, xmmword [0x1800f8f10]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800f8cb0]
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 [0x1800f8cf0]
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 [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f8e40]
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
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f8cf0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x64]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800f8e10]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800f8e40]
xorps xmm2, xmm0
movd dword [rsp + 0x64], xmm2
jmp 0x18002ee9d
lea r8, [rsp + 0x60]
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x18002ee70
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rdi
inc r8
cmp byte [rax + r8], dil
jne 0x18002eeb7
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180013f10
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1800b96fc
int3