Function at 0x100d3860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x1020c0c0]
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.101a0a74
test eax, eax
jne 0x100d389e
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.101a0143
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 1
jne 0x100d3ad6
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 0x100d38d7
cmp eax, 0x100
je 0x100d38d7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push str..utf8
push 2
call fcn.101b0c79
movups xmm0, xmmword [0x101f65e8]
add esp, 8
cmp byte [0x101f65ff], 0
movups xmmword [esp + 0x20], xmm0
movq xmm0, qword [0x101f65f8]
movq qword [esp + 0x30], xmm0
je 0x100d3a8e
xor ecx, ecx
cmp dword [0x1022b6e0], 2
jl 0x100d3a64
movaps xmm0, xmmword [0x10202760]
mov eax, 5
movaps xmm4, xmmword [0x102025e0]
movaps xmm3, xmmword [0x10202b20]
movaps xmm6, xmmword [0x10202690]
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 [0x10202710]
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 [0x10202710]
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 0x100d3960
cmp ecx, 0x18
jge 0x100d3a8e
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 0x100d3a64
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
push 0x2cc
call fcn.101a044f
add esp, 4
mov ecx, eax
push esi
call fcn.10152ec0
mov esi, dword [0x10229c88]
mov dword [0x10229c88], eax
test esi, esi
je 0x100d3ad6
mov ecx, esi
call fcn.1003c5b0
push 0x2cc
push esi
call fcn.101a043c
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.101a0143
mov esp, ebp
pop ebp
ret 0xc