Function at 0x1800c2840
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 [0x18021e740], edi
je 0x1800c2886
cmp rbx, 0x20
jae 0x1800c286f
xor ecx, ecx
jmp 0x1800c2871
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18021e740], edi
jne 0x1800c2865
cmp qword [0x18021e748], 0
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
jne 0x1800c28c9
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
mov qword [0x18021e748], rax
xchg dword [0x18021e740], ecx
test rax, rax
jne 0x1800c28d1
add rsp, 0x88
ret
xor eax, eax
xchg dword [0x18021e740], eax
cmp byte [0x18021eb50], 0
je 0x1800c294c
mov rcx, qword [0x18021ebb8]
test rcx, rcx
je 0x1800c294c
mov rcx, qword [rcx + 0x40]
xor edx, edx
call fcn.180072be0
mov rcx, qword [0x18021ebb8]
mov rcx, qword [rcx + 0x40]
call fcn.180072970
mov rcx, qword [0x18021ebb8]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.180072be0
mov rcx, qword [0x18021ebb8]
mov rcx, qword [rcx + 0x68]
call fcn.180072970
call fcn.180072550
mov rcx, qword [0x18021ebb8]
mov edx, 8
call fcn.1800c3c28
mov qword [0x18021ebb8], 0
add rsp, 0x88
ret
cmp byte [0x18010a925], 0
movups xmm3, xmmword [str.dVYAC]
movzx eax, word [0x18010a924]
mov edx, dword [0x18010a920]
movups xmmword [rsp + 0x20], xmm3
mov dword [rsp + 0x30], edx
mov word [rsp + 0x34], ax
je 0x1800c2bdd
xor ecx, ecx
cmp dword [0x18011f090], 2
jl 0x1800c2b9e
movdqa xmm5, xmmword [0x18010b100]
movdqa xmm2, xmmword [0x18010ac10]
movdqa xmm4, xmmword [0x18010ad90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movd eax, xmm3
movdqa xmm3, xmmword [0x18010ac40]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x18010aca0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x18010ae10]
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 [0x18010ac30]
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 [0x18010ac50]
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 [0x18010ac60]
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, 0x36
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800c2bb0
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 0x1800c2c03
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.180015c40
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.18002c520
add rsp, 0x88
ret