Function at 0x100d1700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1020a0c0]
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.1019da94
test eax, eax
jne 0x100d173e
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 1
jne 0x100d1976
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 0x100d1777
cmp eax, 0x100
je 0x100d1777
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push str..utf8
push 2
call fcn.101adc99
movups xmm0, xmmword [0x101f35a8]
add esp, 8
cmp byte [0x101f35bf], 0
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [0x101f35b8]
movq qword [esp + 0x30], xmm0
je 0x100d192e
xor ecx, ecx
cmp dword [0x102296a0], 2
jl 0x100d1904
movaps xmm0, xmmword [0x101ff860]
mov eax, 5
movaps xmm4, xmmword [0x101ff6c0]
movaps xmm3, xmmword [0x101ffc00]
movaps xmm6, xmmword [0x101ff750]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x10], xmm0
mov edx, dword [esp + 0x10]
movd xmm7, eax
lea eax, [ecx + 4]
nop word [eax + eax]
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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + eax + 0x1c]
pxor 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + eax + 0x20]
pxor xmm1, xmm0
movd dword [esp + eax + 0x20], xmm1
add eax, 8
cmp eax, 0x1c
jl 0x100d1800
cmp ecx, 0x18
jge 0x100d192e
mov eax, 0x8d3dcb09
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, 0x3a
sub dl, al
add dl, 0x39
xor byte [esp + ecx + 0x20], dl
inc ecx
cmp ecx, 0x18
jl 0x100d1904
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
push 0x2cc
call fcn.1019d46f
add esp, 4
mov ecx, eax
push esi
call fcn.1014fea0
mov esi, dword [0x10227c50]
mov dword [0x10227c50], eax
test esi, esi
je 0x100d1976
mov ecx, esi
call fcn.1003bee0
push 0x2cc
push esi
call fcn.1019d45c
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret 0xc