Function at 0x180030af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
test rcx, rcx
je 0x180030c0d
cmp qword [0x18020bb78], 0
je 0x180030c0d
mov rax, qword [0x18020bb70]
test rax, rax
jne 0x180030b3e
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x10]
mov rax, qword [0x18020bb78]
add rax, r8
mov qword [0x18020bb70], 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 0x180030bea
lea rcx, [rsp + 0x30]
call fcn.180027200
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.180027740
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180030d9c
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030bd7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030daa
call fcn.1800b4d3c
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 [0x1800e94c0]
xor edi, edi
cmp byte [0x1800e94c7], dil
mov qword [rsp + 0x60], rax
je 0x180030d6c
cmp dword [0x18010c088], 2
jl 0x180030d2b
movdqa xmm2, xmmword [0x1800fab00]
movdqa xmm4, xmmword [0x1800fac80]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1800fab20]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fab90]
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 [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
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, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800fab90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x64]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1800fac90]
xorps xmm2, xmm0
movd dword [rsp + 0x64], xmm2
jmp 0x180030d6c
lea r8, [rsp + 0x60]
mov ecx, edi
nop dword [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, 0x31
xor byte [r8 - 1], al
cmp ecx, 8
jl 0x180030d40
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 0x180030d86
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1800140a0
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1800bbacc
int3