Function at 0x100cfc30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x102220c0]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push edi
push esi
call fcn.101b5a6b
test eax, eax
jne 0x100cfc6e
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 1
jne 0x100cfe80
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, 0x80
je 0x100cfca7
cmp eax, 0x100
je 0x100cfca7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push str..utf8
push 2
call fcn.101c5cb9
movups xmm0, xmmword [str.s_vnd__RXOJfvYYW]
add esp, 8
cmp byte [0x10207e1f], 0
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [0x10207e18]
movq qword [esp + 0x30], xmm0
je 0x100cfe38
xor ecx, ecx
cmp dword [0x10240d90], 2
jl 0x100cfe10
movaps xmm0, xmmword [str.000000000000000044444444444444445555555555555555666666666666666677777777777777778888888888888888]
lea eax, [ecx + 4]
movaps xmm4, xmmword [0x102149a0]
movaps xmm3, xmmword [0x10214da0]
movaps xmm5, xmmword [0x10214a30]
movaps xmmword [esp + 0x10], xmm0
mov edx, dword [esp + 0x10]
movd xmm0, ecx
add ecx, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + eax + 0x1c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + eax + 0x1c], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10214ac0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + eax + 0x20]
xorps xmm1, xmm0
movd dword [esp + eax + 0x20], xmm1
add eax, 8
cmp eax, 0x1c
jl 0x100cfd14
cmp ecx, 0x18
jge 0x100cfe38
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x34
sub dl, al
add dl, 0x30
xor byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 0x18
jl 0x100cfe10
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
push 0x2cc
call fcn.101b5576
add esp, 4
mov ecx, eax
push esi
call fcn.101698c0
mov esi, dword [0x1023fc90]
mov dword [0x1023fc90], eax
test esi, esi
je 0x100cfe80
mov ecx, esi
call fcn.1003bf70
push 0x2cc
push esi
call fcn.101b5563
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.101b526a
mov esp, ebp
pop ebp
ret 0xc