Function at 0x1800b3520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x80
xor ebx, ebx
mov ebp, 1
mov edi, ebx
xor eax, eax
lock cmpxchg dword [0x18020b790], ebp
je 0x1800b3568
cmp rdi, 0x20
jae 0x1800b3551
xor ecx, ecx
jmp 0x1800b3553
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x18020b790], ebp
jne 0x1800b3547
cmp qword [0x18020b798], rbx
jne 0x1800b359c
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18020b798], rax
mov ecx, ebx
xchg dword [0x18020b790], ecx
test rax, rax
jne 0x1800b35a4
mov eax, 0xfffffff8
jmp 0x1800b3a47
mov eax, ebx
xchg dword [0x18020b790], eax
mov rcx, qword [0x18020bc10]
mov qword [rsp + 0x90], rsi
movaps xmmword [rsp + 0x70], xmm6
call fcn.18004dfe0
mov esi, dword [0x18010c088]
mov rdi, 0xffffffffffffffff
test al, al
jne 0x1800b37c6
cmp byte [0x1800fa803], bl
movups xmm0, xmmword [0x1800fa7f0]
mov eax, dword [0x1800fa800]
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x30], xmm0
je 0x1800b3781
mov r8d, ebx
cmp esi, 2
jl 0x1800b3737
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fab00]
movdqa xmm4, xmmword [0x1800fad30]
movdqa xmm6, xmmword [0x1800fab70]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 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 [0x1800fac70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 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, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1800b3630
cmp r8d, 0x14
jge 0x1800b3781
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x1800b3750
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xorps xmm1, xmm1
mov r8, rdi
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x1800b37a0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1800140a0
movzx edx, bpl
lea rcx, [rsp + 0x48]
call fcn.180029810
cmp byte [0x18020bbb0], bl
je 0x1800b384c
mov rcx, qword [0x18020bc10]
lea r8, [0x18020bbd8]
lea rdx, [0x1800b2990]
mov rcx, qword [rcx + 0x40]
call fcn.180063b60
test eax, eax
jne 0x1800b3842
mov rax, qword [0x18020bc10]
mov edx, ebp
mov rcx, qword [rax + 0x40]
call fcn.180064120
test eax, eax
jne 0x1800b3842
mov rcx, qword [0x18020bc10]
lea r8, [0x18020bbf8]
lea rdx, [0x1800b2c60]
mov rcx, qword [rcx + 0x68]
call fcn.180063b60
test eax, eax
jne 0x1800b3842
mov rax, qword [0x18020bc10]
mov edx, ebp
mov rcx, qword [rax + 0x68]
call fcn.180064120
test eax, eax
je 0x1800b3a3a
mov eax, 0xfffffff9
jmp 0x1800b3a3a
cmp byte [0x1800fa7bd], bl
mov eax, dword [0x1800fa7b8]
movups xmm0, xmmword [str.cSRLqN]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1800fa7bc]
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x44], ax
je 0x1800b39fd
cmp esi, 2
jl 0x1800b39c4
movdqa xmm0, xmmword [0x1800fac90]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1800fab00]
movdqa xmm4, xmmword [0x1800fad30]
movdqa xmm6, xmmword [0x1800fab70]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
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 [0x1800fac70]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 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, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fac70]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x1800b38c0
cmp eax, 0x16
jge 0x1800b39fd
movsxd rax, ebx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0x16
jl 0x1800b39d0
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xorps xmm1, xmm1
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
inc rdi
cmp byte [rax + rdi], 0
jne 0x1800b3a13
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1800140a0
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180029810
mov rsi, qword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0x70]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret