Function at 0x1800c1ec0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov esi, 1
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x18021d810], esi
je 0x1800c1f11
nop word [rax + rax]
cmp rbx, 0x20
jae 0x1800c1efa
xor ecx, ecx
jmp 0x1800c1efc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18021d810], esi
jne 0x1800c1ef0
cmp qword [0x18021d818], r14
jne 0x1800c1f46
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18021d818], rax
mov ecx, r14d
xchg dword [0x18021d810], ecx
test rax, rax
jne 0x1800c1f4f
mov eax, 0xfffffff8
jmp 0x1800c2556
mov eax, r14d
xchg dword [0x18021d810], eax
mov rcx, qword [0x18021dc90]
mov qword [rsp + 0xa8], rdi
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
call fcn.180058c80
mov edi, dword [0x18011e090]
mov rbx, 0xffffffffffffffff
movdqa xmm7, xmmword [0x18010ac30]
test al, al
jne 0x1800c2213
cmp byte [0x18010a7f3], r14b
movups xmm3, xmmword [0x18010a7e0]
mov ecx, dword [0x18010a7f0]
mov dword [rbp - 0x50], ecx
movups xmmword [rbp - 0x60], xmm3
je 0x1800c21da
mov r8d, r14d
cmp edi, 2
jl 0x1800c21a4
movdqa xmm4, xmmword [0x18010afa0]
movdqa xmm2, xmmword [0x18010aac0]
movdqa xmm5, xmmword [0x18010ab50]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x18010aca0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd eax, xmm3
movdqa xmm3, xmmword [0x18010aaf0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movd dword [rbp - 0x60], xmm2
movdqa xmm2, xmmword [0x18010aae0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm5
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rbp - 0x5c]
andps xmm2, xmm7
pmuldq xmm1, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x5c], 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, xmm5
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rbp - 0x58]
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm4
paddb xmm3, xmm6
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rbp - 0x58], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movdqa xmm3, xmmword [0x18010ab10]
andps xmm2, xmm7
movd xmm0, dword [rbp - 0x54]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
pmuldq xmm1, xmm4
paddb xmm2, xmm6
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x54], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
xorps xmm3, xmm0
movd dword [rbp - 0x50], xmm3
jmp 0x1800c21da
lea r9, [rbp - 0x60]
nop dword [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x1800c21b0
xorps xmm0, xmm0
mov qword [rbp - 0x38], r14
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x30], r14
lea rax, [rbp - 0x60]
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x1800c21f0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1800160d0
movzx edx, sil
lea rcx, [rbp - 0x48]
call fcn.18002c3d0
cmp byte [0x18021dc28], r14b
je 0x1800c229a
mov rcx, qword [0x18021dc90]
lea r8, [0x18021dc60]
lea rdx, [0x1800c1310]
mov rcx, qword [rcx + 0x40]
call fcn.180072480
test eax, eax
jne 0x1800c2290
mov rax, qword [0x18021dc90]
mov edx, esi
mov rcx, qword [rax + 0x40]
call fcn.180072a30
test eax, eax
jne 0x1800c2290
mov rcx, qword [0x18021dc90]
lea r8, [0x18021dc78]
lea rdx, [0x1800c15f0]
mov rcx, qword [rcx + 0x68]
call fcn.180072480
test eax, eax
jne 0x1800c2290
mov rax, qword [0x18021dc90]
mov edx, esi
mov rcx, qword [rax + 0x68]
call fcn.180072a30
test eax, eax
je 0x1800c2544
mov eax, 0xfffffff9
jmp 0x1800c2544
cmp byte [0x18010a7dd], r14b
movups xmm6, xmmword [str.bPSKpM]
movzx eax, word [0x18010a7dc]
mov edx, dword [0x18010a7d8]
movups xmmword [rbp - 0x60], xmm6
mov dword [rbp - 0x50], edx
mov word [rbp - 0x4c], ax
je 0x1800c250d
mov ecx, r14d
cmp edi, 2
jl 0x1800c24d4
movdqa xmm4, xmmword [0x18010afa0]
movdqa xmm3, xmmword [0x18010aac0]
movdqa xmm2, xmmword [0x18010aae0]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [0x18010ab50]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
mov ecx, dword [0x18010aca0]
punpckldq xmm1, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd eax, xmm6
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm5
psubd xmm3, xmm0
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, ecx
paddb xmm3, xmm0
movd xmm0, eax
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rbp - 0x60], xmm3
movdqa xmm3, xmmword [0x18010aaf0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x5c]
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
xorps xmm2, xmm1
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd dword [rbp - 0x5c], xmm2
movdqa xmm2, xmmword [0x18010ab00]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x58]
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
xorps xmm3, xmm1
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movd dword [rbp - 0x58], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
movdqa xmm3, xmmword [0x18010ab10]
paddd xmm0, xmm1
movd xmm1, dword [rbp - 0x54]
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
xorps xmm2, xmm1
movdqa xmm1, xmm3
pmuldq xmm0, xmm4
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd dword [rbp - 0x54], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, edx
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, ecx
andps xmm3, xmm7
mov ecx, 0x14
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
xorps xmm3, xmm1
movd dword [rbp - 0x50], xmm3
mov eax, ecx
lea r8, [rbp - 0x60]
add r8, rax
nop dword [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 0x1800c24e0
xorps xmm0, xmm0
mov qword [rbp - 0x38], r14
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x30], r14
lea rax, [rbp - 0x60]
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1800c2520
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x48]
call fcn.1800160d0
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.18002c3d0
movaps xmm6, xmmword [rsp + 0x70]
mov rdi, qword [rsp + 0xa8]
movaps xmm7, xmmword [rsp + 0x60]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret