Function at 0x1000c970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100430b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10045240]
mov ecx, 1
push esi
push edi
add eax, 0x4a0
xchg dword [eax], ecx
push 0
push 0
push dword [0x1004480c]
push dword [0x10044814]
push 0x10044818
call dword [sym.imp.d3dx9_43.dll_D3DXSaveSurfaceToFileW]
test eax, eax
jns 0x1000ccae
cmp word [0x1003f876], 0
mov eax, 5
movups xmm0, xmmword [0x1003f860]
movups xmmword [ebp - 0x1c], xmm0
lea edx, [eax + 0x1a]
movq xmm0, qword [0x1003f870]
movq qword [ebp - 0xc], xmm0
je 0x1000cb19
xor esi, esi
cmp dword [0x10043f44], 2
jl 0x1000cae0
movaps xmm2, xmmword [0x10040370]
mov esi, 8
movaps xmm3, xmmword [0x10040430]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm4, eax
psrad xmm1, xmm4
movd xmm5, edx
mov eax, 0x1003f860
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100403c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10040380]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x100403d0]
movq xmm0, qword [eax]
xorps xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x100403c0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x14]
paddw xmm1, xmmword [0x100403d0]
xorps xmm1, xmm0
movq qword [ebp - 0x14], xmm1
nop dword [eax]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x32
xor word [ebp + esi*2 - 0x1c], ax
inc esi
cmp esi, 0xc
jl 0x1000cae0
mov eax, 5
lea edx, [eax + 0x1a]
mov ecx, 0x1d
lea edi, [ebp - 0x98]
mov esi, str.aRBPsqT_Y
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x10043f44], 2
movsw word es:[edi], word [esi]
jl 0x1000cc60
movaps xmm4, xmmword [0x10040370]
movaps xmm3, xmmword [0x10040430]
movaps xmm6, xmmword [0x100403c0]
movd xmm5, eax
movd xmm7, edx
nop dword [eax]
movd xmm0, ecx
lea eax, [ecx + 4]
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
movq xmm0, qword [0x100403d0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x98]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x98], 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
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
movq xmm0, qword [0x100403d0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x90]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x90], xmm1
add ecx, 8
cmp ecx, 0x38
jl 0x1000cb60
cmp ecx, 0x3b
jge 0x1000cc94
nop
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, ecx
shl edx, 3
sub eax, edx
add eax, 0x32
xor word [ebp + ecx*2 - 0x98], ax
inc ecx
cmp ecx, 0x3b
jl 0x1000cc60
push 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [0x1004480c]
test ecx, ecx
je 0x1000ccc8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1004480c], 0
mov eax, dword [0x10045240]
xor ecx, ecx
add eax, 0x4a0
xchg dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100178e6
mov esp, ebp
pop ebp
ret