Function at 0x1800c2570
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 [0x18021d810], edi
je 0x1800c25b6
cmp rbx, 0x20
jae 0x1800c259f
xor ecx, ecx
jmp 0x1800c25a1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18021d810], edi
jne 0x1800c2595
cmp qword [0x18021d818], 0
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
jne 0x1800c25f9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
mov qword [0x18021d818], rax
xchg dword [0x18021d810], ecx
test rax, rax
jne 0x1800c2601
add rsp, 0x88
ret
xor eax, eax
xchg dword [0x18021d810], eax
cmp byte [0x18021dc28], 0
je 0x1800c267c
mov rcx, qword [0x18021dc90]
test rcx, rcx
je 0x1800c267c
mov rcx, qword [rcx + 0x40]
xor edx, edx
call fcn.180072a30
mov rcx, qword [0x18021dc90]
mov rcx, qword [rcx + 0x40]
call fcn.1800727c0
mov rcx, qword [0x18021dc90]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.180072a30
mov rcx, qword [0x18021dc90]
mov rcx, qword [rcx + 0x68]
call fcn.1800727c0
call fcn.1800723a0
mov rcx, qword [0x18021dc90]
mov edx, 8
call fcn.1800c3978
mov qword [0x18021dc90], 0
add rsp, 0x88
ret
cmp byte [0x18010a7dd], 0
movups xmm3, xmmword [str.bPSKpM]
movzx eax, word [0x18010a7dc]
mov edx, dword [0x18010a7d8]
movups xmmword [rsp + 0x20], xmm3
mov dword [rsp + 0x30], edx
mov word [rsp + 0x34], ax
je 0x1800c290d
xor ecx, ecx
cmp dword [0x18011e090], 2
jl 0x1800c28ce
movdqa xmm5, xmmword [0x18010afa0]
movdqa xmm2, xmmword [0x18010aac0]
movdqa xmm4, xmmword [0x18010ac30]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movd eax, xmm3
movdqa xmm3, xmmword [0x18010aaf0]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x18010ab50]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x18010aca0]
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x18010aae0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x24], xmm2
movdqa xmm2, xmmword [0x18010ab00]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x28]
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm5
paddb xmm3, xmm7
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rsp + 0x28], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
movdqa xmm3, xmmword [0x18010ab10]
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movdqa xmm1, xmm3
movd xmm0, dword [rsp + 0x2c]
andps xmm2, xmm4
punpckldq xmm1, xmm3
mov ecx, 0x14
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
pmuldq xmm1, xmm5
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x2c], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x70]
psubd xmm3, xmm0
andps xmm3, xmm4
movd xmm0, edx
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
movaps xmm7, xmmword [rsp + 0x60]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
mov eax, ecx
lea r8, [rsp + 0x20]
add r8, 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 0x1800c28e0
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800c2933
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800160d0
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.18002c3d0
add rsp, 0x88
ret