Function at 0x10012528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x100e0804]
sub esp, 0x28
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100127ff
mov ecx, dword [0x10117a8c]
test ecx, ecx
je 0x100127ff
call fcn.1000e789
cmp dword [eax], 0
jle 0x100127ff
cmp byte [0x100e0995], 0
je 0x100127ff
mov eax, dword [0x100e0958]
mov eax, dword [eax + 0x1c]
dec eax
push eax
call fcn.10012e89
cmp byte [0x100e0994], 0
pop ecx
jne 0x100127b0
mov eax, dword [0x100e099c]
cmp eax, dword [edi + 8]
jge 0x10012772
movzx eax, byte [0x100e095c]
xor edx, edx
push eax
push edx
mov cl, 0x6e
mov dword [ebp - 0x14], 0x4e1d1e6e
mov dword [ebp - 0x10], 0x71d1d0f
mov eax, edx
mov dword [ebp - 0xc], 0xa0b1a1d
mov byte [ebp - 8], dl
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x100125d2
mov cl, byte [ebp - 0x14]
jmp 0x100125c3
sub esp, 0x18
mov byte [ebp - 8], dl
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.100098a9
call fcn.1007b260
mov eax, dword [0x100e0960]
add esp, 0x20
sub eax, 1
je 0x10012670
sub eax, 1
je 0x10012632
sub eax, 1
jne 0x100126b5
mov cl, 0x55
mov dword [ebp - 0x14], 0x26203655
mov dword [ebp - 0x10], 0x7b383a21
mov dword [ebp - 0xc], 0x233422
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xa
jae 0x10012629
mov cl, byte [ebp - 0x14]
jmp 0x1001261a
mov byte [ebp - 9], 0
lea edx, [ebp - 0x13]
jmp 0x100126a6
movaps xmm0, xmmword [0x100891e0]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x16161519
mov dword [ebp - 0x10], 0x250e191f
mov dword [ebp - 0xc], 0xd544f4a
mov word [ebp - 8], 0xc1b
mov byte [ebp - 6], 0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x1d
jb 0x1001265e
lea edx, [ebp - 0x23]
jmp 0x100126a2
movaps xmm0, xmmword [0x10089200]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 8], 0x4a5d
movaps xmm0, xmmword [0x100891f0]
movups xmmword [ebp - 0x18], xmm0
mov byte [ebp - 6], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x21
jb 0x10012692
lea edx, [ebp - 0x27]
mov byte [ebp - 6], 0
mov ecx, dword [0x100e0808]
push edx
mov eax, dword [ecx]
call dword [eax + 0x148]
cmp byte [0x100e0965], 0
je 0x100126e2
mov eax, dword [0x100e0818]
mov ecx, dword [0x10117a8c]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
call fcn.1000d3b6
mov ecx, dword [0x100e0818]
push 0
push 4
push 4
push eax
call esi
cmp byte [0x100e0964], 0
je 0x10012716
mov eax, dword [0x100e080c]
mov ecx, dword [0x10117a8c]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x10088e40]
movss dword [ebp - 4], xmm0
call fcn.1000cfbb
movss xmm0, dword [ebp - 4]
movss dword [eax], xmm0
cmp byte [0x100e0966], 0
je 0x10012751
push 0x100df030
lea ecx, [ebp - 0x18]
call fcn.10009ae7
sub esp, 0xc
mov esi, 0x100e09a8
mov edi, esp
push 3
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1007b7e5
mov edi, dword [ebp + 8]
add esp, 0x20
mov eax, dword [0x100e080c]
movss xmm0, dword [eax + 0x10]
addss xmm0, dword [0x10089004]
mov byte [0x100e0994], 1
movss dword [0x100e09a0], xmm0
mov eax, dword [0x100e09a4]
mov eax, dword [eax + 0x30]
mov dword [edi + 0x30], eax
add edi, 0xc
mov esi, dword [0x100e09a4]
lea esi, [esi + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x100e09a4]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [0x100e09a4]
mov eax, dword [eax + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [0x100e09a4]
mov eax, dword [eax + 0x2c]
mov dword [edi + 0x2c], eax
cmp byte [0x100e0996], 0
mov eax, dword [edi + 0x30]
je 0x100127c1
or eax, 4
jmp 0x100127c4
and eax, 0xfffffffb
mov dword [edi + 0x30], eax
cmp byte [0x100e0994], 0
je 0x100127ff
mov ecx, dword [0x10117a8c]
call fcn.100112a5
movss xmm0, dword [eax + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x100891d0]
lahf
test ah, 0x44
jnp 0x100127ff
mov byte [0x100e0995], 0
mov byte [0x100e0994], 0
pop edi
pop esi
leave
ret