Function at 0x100cfa60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x102230c0]
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.101b6fda
test eax, eax
jne 0x100cfa9e
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.101b67d9
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 1
jne 0x100cfcc2
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 0x100cfad7
cmp eax, 0x100
je 0x100cfad7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push str..utf8
push 2
call fcn.101c7229
movups xmm0, xmmword [str.q_thb_YVMH_p___]
add esp, 8
cmp byte [0x10208e1f], 0
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [0x10208e18]
movq qword [esp + 0x30], xmm0
je 0x100cfc7a
xor ecx, ecx
cmp dword [0x10241d90], 2
jl 0x100cfc50
movaps xmm0, xmmword [str.2222222222222222]
lea eax, [ecx + 4]
movaps xmm4, xmmword [0x102157f0]
movaps xmm3, xmmword [0x10215c30]
movaps xmm5, xmmword [0x10215890]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x10215920]
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
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x10215920]
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 0x100cfb44
cmp ecx, 0x18
jge 0x100cfc7a
nop dword [eax + eax]
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x32
xor byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 0x18
jl 0x100cfc50
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
push 0x2cc
call fcn.101b6ae5
add esp, 4
mov ecx, eax
push esi
call fcn.1016b010
mov esi, dword [0x10240c90]
mov dword [0x10240c90], eax
test esi, esi
je 0x100cfcc2
mov ecx, esi
call fcn.1003c2a0
push 0x2cc
push esi
call fcn.101b6ad2
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.101b67d9
mov esp, ebp
pop ebp
ret 0xc