Function at 0x1800bf950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
movups xmm0, xmmword [str.QdGS_WXzPQrZ6_.0_v]
movups xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x18010ef90]
movsd qword [rsp + 0x40], xmm0
movzx eax, word [0x18010ef98]
mov word [rsp + 0x48], ax
xor ebx, ebx
cmp byte [0x18010ef99], bl
je 0x1800bfb3e
mov ecx, ebx
cmp dword [0x180127018], 2
jl 0x1800bfafa
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111060]
movdqa xmm6, xmmword [0x180110ea0]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x34]
mov r8d, dword [rsp + 0x20]
nop word [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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x180110f50]
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 0x1800bf9f0
cmp ecx, 0x1a
jge 0x1800bfb3e
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
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
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1a
jl 0x1800bfb10
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800bfb60
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180020590
nop
test rdi, rdi
je 0x1800bfb95
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180005710
test eax, eax
jle 0x1800bfb95
movsxd rbx, eax
add rbx, rdi
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1800bfbd5
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800bfbd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800bfbd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800d3880
mov rbx, qword [rsp + 0xa8]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret