Function at 0x1012b800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x101c0814]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, esi
shl edi, 2
mov eax, edi
call fcn.101334c0
mov eax, dword [ebp + 0x14]
add eax, esi
mov dword [ebp - 0x24], esp
shl eax, 2
call fcn.101334c0
xor edx, edx
mov eax, esp
mov dword [ebp - 0x10], eax
mov ecx, edx
test esi, esi
jle 0x1012b85a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
add eax, 0xfffffffc
add edi, eax
mov eax, dword [edi]
lea edi, [edi - 4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x1012b849
xor edx, edx
mov eax, esp
movss xmm6, dword [0x1015d900]
mov edi, edx
test esi, esi
jle 0x1012b885
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
movss xmm0, dword [ecx]
lea ecx, [ecx - 4]
xorps xmm0, xmm6
movss dword [eax + edi*4], xmm0
inc edi
cmp edi, esi
jl 0x1012b871
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + esi]
cmp edi, eax
jge 0x1012b8a2
sub eax, edi
mov esi, esp
mov ecx, eax
xor eax, eax
lea edi, [esi + edi*4]
mov esi, dword [ebp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
lea edi, [ecx - 3]
mov eax, edx
mov dword [ebp - 0x18], edi
test edi, edi
mov dword [ebp - 0xc], eax
mov edi, esp
jle 0x1012b9e1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edi
lea eax, [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
sub ecx, eax
mov dword [ebp - 0x28], ecx
lea edx, [eax + 8]
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], edx
shr eax, 2
lea edx, [edi + 4]
inc eax
lea edx, [edx + esi*4]
mov dword [ebp - 0x18], eax
mov edi, eax
shl eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
movups xmm0, xmmword [eax - 8]
push esi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
movups xmmword [ebp - 0x38], xmm0
push dword [ebp - 0x24]
call fcn.1012ba8e
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov eax, dword [ebp + 0xc]
movss xmm1, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
movaps xmm0, xmm1
xorps xmm0, xmm6
mov esi, dword [ebp - 0x1c]
movss dword [ecx - 4], xmm0
push 0x10
movss dword [edx - 0xc], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx - 4]
addss xmm1, dword [ebp - 0x34]
movaps xmm0, xmm1
xorps xmm0, xmm6
movss dword [ecx], xmm0
movss dword [edx - 8], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx]
mov edx, dword [ebp - 0x28]
movss xmm0, dword [ecx - 4]
mulss xmm0, dword [eax + 4]
addss xmm1, dword [ebp - 0x30]
addss xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmm6
movss dword [ecx + 4], xmm0
movss dword [edx + esi], xmm1
movss xmm1, dword [eax]
mulss xmm1, dword [ecx + 4]
mov edx, dword [ebp - 8]
movss xmm0, dword [ecx]
mulss xmm0, dword [eax + 4]
pop esi
addss xmm1, dword [ebp - 0x2c]
add dword [ebp - 0x20], esi
addss xmm1, xmm0
movss xmm0, dword [ecx - 4]
mulss xmm0, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 0x1c], eax
addss xmm1, xmm0
movaps xmm0, xmm1
xorps xmm0, xmm6
movss dword [ecx + 8], xmm0
add ecx, esi
movss dword [edx], xmm1
add edx, esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
sub edi, 1
jne 0x1012b8f0
mov edi, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jge 0x1012ba5e
sub dword [ebp + 8], edi
lea ecx, [edi + eax*4]
add eax, esi
mov dword [ebp - 0x14], ecx
lea eax, [edi + eax*4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
sub eax, edi
mov edi, dword [ebp + 0x14]
sub edi, dword [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
movss xmm1, dword [edi + ecx]
mov eax, edx
test esi, esi
jle 0x1012ba37
mov dword [ebp - 0x28], ecx
mov edx, ecx
mov ecx, dword [ebp - 0x24]
movss xmm0, dword [ecx + eax*4]
inc eax
mulss xmm0, dword [edx]
add edx, 4
subss xmm1, xmm0
cmp eax, esi
jl 0x1012ba1d
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movss dword [eax], xmm1
add eax, 4
movss dword [edi + ecx], xmm1
add ecx, 4
sub dword [ebp - 0xc], 1
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
jne 0x1012ba0a
mov ecx, dword [ebp + 0x14]
test esi, esi
jle 0x1012ba7b
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
sub eax, 4
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
lea ecx, [ecx - 4]
mov dword [edi + edx*4], eax
inc edx
cmp edx, esi
jl 0x1012ba6e
lea esp, [ebp - 0x40]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132731
mov esp, ebp
pop ebp
ret