Function at 0x10182a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ecx]
add edi, dword [ebp + 0x14]
mov ecx, dword [edx + 0x55d0]
mov dword [ebp + 0x14], ecx
test esi, esi
jne 0x10182a98
dec ecx
and ecx, 0xf
mov dword [ebp + 0x14], ecx
test esi, esi
mov dword [ebp + 0x10], 0x4d50
lea eax, [edi + 4]
cmovne edi, eax
mov eax, 0x44d0
cmovne eax, dword [ebp + 0x10]
add eax, edx
lea edx, [ecx + 1]
lea esi, [eax + ecx*4]
mov dword [ebp - 4], esi
test cl, 1
je 0x10182ad5
mov esi, eax
mov dword [ebp + 0x10], ecx
and edx, 0xf
add eax, 0x440
lea edx, [eax + edx*4]
mov eax, dword [ebp - 4]
jmp 0x10182ae9
lea esi, [eax + 0x440]
mov dword [ebp + 0x10], edx
lea edx, [eax + ecx*4]
lea eax, [eax + ecx*4]
add eax, 0x444
push dword [ebp + 0xc]
push eax
push edx
call fcn.10183f50
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov edx, 0x10
mov dword [ecx + 0x55d0], eax
mov ecx, 0x1034c8c0
mov eax, dword [ebp + 0x10]
shl eax, 2
sub ecx, eax
movss xmm0, dword [ecx + 4]
mov eax, esi
mulss xmm0, dword [esi + 4]
movss xmm1, dword [ecx]
mulss xmm1, dword [esi]
subss xmm1, xmm0
movss xmm0, dword [ecx + 8]
mulss xmm0, dword [esi + 8]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0xc]
mulss xmm0, dword [esi + 0xc]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x10]
mulss xmm0, dword [esi + 0x10]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x14]
mulss xmm0, dword [esi + 0x14]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [esi + 0x18]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x1c]
mulss xmm0, dword [esi + 0x1c]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x20]
mulss xmm0, dword [esi + 0x20]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x24]
mulss xmm0, dword [esi + 0x24]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x28]
mulss xmm0, dword [esi + 0x28]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x2c]
mulss xmm0, dword [esi + 0x2c]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x30]
mulss xmm0, dword [esi + 0x30]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x34]
mulss xmm0, dword [esi + 0x34]
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x38]
mulss xmm0, dword [esi + 0x38]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x3c]
mulss xmm0, dword [esi + 0x3c]
sub ecx, 0xffffff80
add esi, 0x40
subss xmm1, xmm0
movss dword [edi], xmm1
add edi, 8
sub edx, 1
jne 0x10182b14
movss xmm0, dword [ecx]
mulss xmm0, dword [esi]
mov edx, dword [ebp + 0x10]
movss xmm1, dword [ecx + 8]
mulss xmm1, dword [esi + 8]
movss xmm2, dword [0x101f36d0]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x10]
mulss xmm0, dword [esi + 0x10]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x18]
mulss xmm0, dword [esi + 0x18]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x20]
mulss xmm0, dword [esi + 0x20]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x28]
mulss xmm0, dword [esi + 0x28]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x30]
mulss xmm0, dword [esi + 0x30]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x38]
mulss xmm0, dword [esi + 0x38]
lea ecx, [ecx + edx*8]
mov edx, 0xf
addss xmm1, xmm0
movss dword [edi], xmm1
add edi, 8
add ecx, 0xffffff80
nop dword [eax]
movss xmm1, dword [ecx - 4]
movss xmm0, dword [ecx - 8]
xorps xmm1, xmm2
mulss xmm0, dword [eax + 4]
mulss xmm1, dword [eax]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0xc]
mulss xmm0, dword [eax + 8]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x10]
mulss xmm0, dword [eax + 0xc]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x14]
mulss xmm0, dword [eax + 0x10]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x18]
mulss xmm0, dword [eax + 0x14]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x1c]
mulss xmm0, dword [eax + 0x18]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x20]
mulss xmm0, dword [eax + 0x1c]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x24]
mulss xmm0, dword [eax + 0x20]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x28]
mulss xmm0, dword [eax + 0x24]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x2c]
mulss xmm0, dword [eax + 0x28]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x30]
mulss xmm0, dword [eax + 0x2c]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x34]
mulss xmm0, dword [eax + 0x30]
subss xmm1, xmm0
movss xmm0, dword [ecx - 0x38]
mulss xmm0, dword [eax + 0x34]
subss xmm1, xmm0
movss xmm0, dword [eax + 0x38]
mulss xmm0, dword [ecx - 0x3c]
subss xmm1, xmm0
movss xmm0, dword [eax + 0x3c]
mulss xmm0, dword [ecx]
sub eax, 0x40
add ecx, 0xffffff80
subss xmm1, xmm0
movss dword [edi], xmm1
add edi, 8
sub edx, 1
jne 0x10182c90
mov eax, dword [ebp + 0x18]
pop edi
pop esi
add dword [eax], 0x100
xor eax, eax
mov esp, ebp
pop ebp
ret