Function at 0x1012d935
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
imul ecx, esi
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x68], edx
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + ecx*8 + 4]
add ecx, ecx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x14], eax
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + ecx*8 + 4]
mov dword [ebp - 0xc], eax
jle 0x1012dcd9
mov eax, dword [ebp + 0x1c]
mov ecx, esi
shl eax, 3
mov dword [ebp - 0x48], eax
mov eax, esi
shl eax, 3
shl ecx, 4
sub eax, ecx
mov dword [ebp - 0x50], eax
imul eax, esi, 0x18
push edi
mov edi, dword [ebp + 8]
add edi, ecx
mov dword [ebp - 0x4c], edi
sub eax, ecx
mov dword [ebp - 0x54], eax
mov eax, esi
shl eax, 5
sub eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov esi, dword [ebp - 0x50]
add esi, edi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x54]
add esi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
lea esi, [eax + edi]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x1012dcc2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
imul ecx, eax, 0x18
mov dword [ebp - 0x3c], eax
shl dword [ebp - 0x3c], 5
mov dword [ebp - 0x30], eax
shl dword [ebp - 0x30], 4
shl eax, 3
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x44], esi
mov eax, dword [ecx]
movss xmm6, dword [edi]
movss xmm1, dword [edi + 4]
movaps xmm2, xmm6
mov esi, dword [ebp - 0x24]
movaps xmm0, xmm1
mov dword [ebp - 0xd4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x2c]
movss xmm5, dword [esi]
mov edx, dword [ebp - 0x28]
movaps xmm4, xmm5
mulss xmm0, dword [eax + 4]
mulss xmm2, dword [eax]
mulss xmm1, dword [eax]
mulss xmm6, dword [eax + 4]
subss xmm2, xmm0
mov eax, dword [ebp - 0x20]
movss xmm3, dword [edx]
addss xmm6, xmm1
movss xmm1, dword [eax + 4]
movss dword [ebp + 0x10], xmm2
movaps xmm0, xmm1
movss xmm2, dword [eax]
mov eax, dword [ebp - 0x34]
movaps xmm7, xmm2
mulss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
mulss xmm2, dword [eax + 4]
mulss xmm7, dword [eax]
mov eax, dword [ebp - 0x38]
addss xmm2, xmm1
movss xmm1, dword [esi + 4]
subss xmm7, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
mulss xmm5, dword [eax + 4]
mulss xmm4, dword [eax]
mov eax, dword [ebp - 0x40]
addss xmm5, xmm1
movss dword [ebp - 0x1c], xmm2
movss xmm1, dword [edx + 4]
movaps xmm2, xmm3
subss xmm4, xmm0
movss dword [ebp - 4], xmm7
mulss xmm2, dword [eax]
movaps xmm0, xmm1
mulss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
mulss xmm3, dword [eax + 4]
subss xmm2, xmm0
addss xmm3, xmm1
movaps xmm0, xmm2
addss xmm0, dword [ebp + 0x10]
movaps xmm1, xmm3
addss xmm1, xmm6
movss dword [ebp - 0x58], xmm0
subss xmm6, xmm3
movss xmm0, dword [ebp + 0x10]
subss xmm0, xmm2
movss xmm2, dword [ebp - 0x1c]
movss dword [ebp - 0x5c], xmm1
movss dword [ebp - 8], xmm6
movaps xmm6, xmm4
addss xmm6, xmm7
movaps xmm7, xmm5
movss dword [ebp + 0x10], xmm0
addss xmm7, xmm2
movss xmm0, dword [ebp - 4]
subss xmm2, xmm5
movss xmm5, dword [ebp - 0x58]
subss xmm0, xmm4
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 4], xmm0
movaps xmm0, xmm6
addss xmm0, xmm5
addss xmm0, dword [ecx]
movss dword [ecx], xmm0
movaps xmm0, xmm7
addss xmm0, xmm1
mulss xmm2, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
movaps xmm4, xmm5
movaps xmm3, xmm1
mulss xmm4, dword [ebp - 0x18]
push 8
addss xmm0, dword [ecx + 4]
mulss xmm3, dword [ebp - 0x18]
addss xmm4, dword [ebp - 0xd4]
movss xmm1, dword [ebp + 0x10]
movss dword [ecx + 4], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [ebp - 0x10]
addss xmm3, dword [ebp - 0xd0]
mulss xmm1, dword [ebp - 0x14]
addss xmm4, xmm0
mulss xmm5, dword [ebp - 0x10]
movaps xmm0, xmm7
mulss xmm6, dword [ebp - 0x18]
mulss xmm0, dword [ebp - 0x10]
xorps xmm1, xmmword [0x1015d900]
addss xmm5, dword [ebp - 0xd4]
addss xmm3, xmm0
mulss xmm7, dword [ebp - 0x18]
movss xmm0, dword [ebp - 8]
mulss xmm0, dword [ebp - 0x14]
addss xmm5, xmm6
addss xmm2, xmm0
movss xmm0, dword [ebp - 4]
mulss xmm0, dword [ebp - 0xc]
subss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, xmm2
addss xmm2, xmm4
movss dword [edi], xmm0
movaps xmm0, xmm3
subss xmm0, xmm1
addss xmm1, xmm3
movss xmm3, dword [ebp + 0x10]
mulss xmm3, dword [ebp - 0xc]
movss dword [edi + 4], xmm0
movss xmm0, dword [ebp - 8]
mulss xmm0, dword [ebp - 0xc]
movss dword [edx], xmm2
movss xmm2, dword [ebp - 0x1c]
mulss xmm2, dword [ebp - 0x14]
movss dword [edx + 4], xmm1
movss xmm1, dword [ebp - 0x5c]
mulss xmm1, dword [ebp - 0x10]
subss xmm2, xmm0
pop edx
movss xmm0, dword [ebp - 4]
add ecx, edx
mulss xmm0, dword [ebp - 0x14]
add edi, edx
add dword [ebp - 0x24], edx
addss xmm1, dword [ebp - 0xd0]
add dword [ebp - 0x28], edx
subss xmm3, xmm0
movaps xmm0, xmm2
addss xmm0, xmm5
subss xmm5, xmm2
addss xmm1, xmm7
movss dword [eax], xmm0
movaps xmm0, xmm3
addss xmm0, xmm1
subss xmm1, xmm3
movss dword [eax + 4], xmm0
add eax, edx
mov edx, dword [ebp - 0x30]
add dword [ebp - 0x34], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x64]
movss dword [esi], xmm5
movss dword [esi + 4], xmm1
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x3c]
add dword [ebp - 0x40], esi
sub dword [ebp - 0x44], 1
jne 0x1012da06
mov edx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x48]
add edi, dword [ebp - 0x48]
sub dword [ebp + 0x18], 1
mov dword [ebp + 8], ecx
mov dword [ebp - 0x4c], edi
jne 0x1012d9ad
pop edi
pop esi
mov esp, ebp
pop ebp
ret