Function at 0x1800b4150
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x88
mov qword [rax + 0x10], rbx
xor ebx, ebx
mov qword [rax - 8], rdi
xor eax, eax
mov edi, 1
lock cmpxchg dword [0x180210790], edi
je 0x1800b4196
cmp rbx, 0x20
jae 0x1800b417f
xor ecx, ecx
jmp 0x1800b4181
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180210790], edi
jne 0x1800b4175
cmp qword [0x180210798], 0
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
jne 0x1800b41d9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
mov qword [0x180210798], rax
xchg dword [0x180210790], ecx
test rax, rax
jne 0x1800b41e1
add rsp, 0x88
ret
xor eax, eax
xchg dword [0x180210790], eax
cmp byte [0x180210ba8], 0
je 0x1800b425c
mov rcx, qword [0x180210c10]
test rcx, rcx
je 0x1800b425c
mov rcx, qword [rcx + 0x40]
xor edx, edx
call fcn.1800634f0
mov rcx, qword [0x180210c10]
mov rcx, qword [rcx + 0x40]
call fcn.180063270
mov rcx, qword [0x180210c10]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.1800634f0
mov rcx, qword [0x180210c10]
mov rcx, qword [rcx + 0x68]
call fcn.180063270
call fcn.180062e50
mov rcx, qword [0x180210c10]
mov edx, 8
call fcn.1800b5498
mov qword [0x180210c10], 0
add rsp, 0x88
ret
cmp byte [0x1800fd8dd], 0
mov eax, dword [0x1800fd8d8]
movups xmm0, xmmword [0x1800fd8c8]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1800fd8dc]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x44], ax
je 0x1800b441d
xor ecx, ecx
cmp dword [0x180111088], 2
jl 0x1800b43d9
movdqa xmm0, xmmword [0x1800fddb0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fdc00]
movdqa xmm4, xmmword [0x1800fde80]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x1800fdc50]
nop
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, 4
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1800b42d0
movaps xmm6, xmmword [rsp + 0x70]
cmp ecx, 0x16
jge 0x1800b441d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800b43f0
xorps xmm0, xmm0
mov qword [rsp + 0x58], 0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800b4443
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.180013b40
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180028f80
add rsp, 0x88
ret