Function at 0x10089da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push esi
mov esi, dword [ebp + 0x10]
mov edx, eax
sar ecx, 1
sar edx, 2
sar eax, 3
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x14], eax
lea eax, [ecx*4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x38], eax
push edi
mov edi, dword [esi + 0x68]
mov dword [ebp - 0x44], edi
test edx, edx
je 0x10089e05
add eax, 7
mov ecx, edi
and eax, 0xfffffff8
sub ecx, eax
cmp ecx, dword [esi + 0x64]
jge 0x10089dfa
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x10089e0f
lea eax, [edx + ecx]
mov dword [esi + 0x68], ecx
mov dword [ebp - 0x28], eax
jmp 0x10089e0f
call fcn.100ade60
mov eax, esp
mov dword [ebp - 0x28], esp
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
add edx, 0xfffffff8
add edx, eax
mov edi, dword [esi + edi*4 + 0x438]
mov eax, edi
mov dword [ebp - 8], edi
mov esi, ecx
mov edi, dword [ebp - 0x38]
add edi, ecx
mov dword [ebp - 0x10], edi
cmp ecx, edi
mov edi, eax
je 0x10089e83
nop dword [eax]
movss xmm1, dword [eax]
mulss xmm1, dword [esi]
movss xmm0, dword [eax + 4]
mulss xmm0, dword [esi + 8]
subss xmm1, xmm0
movss dword [edx + 4], xmm1
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
add eax, 8
mulss xmm1, dword [esi + 8]
mulss xmm0, dword [esi]
add esi, 0x10
addss xmm1, xmm0
movss dword [edx], xmm1
sub edx, 8
cmp esi, dword [ebp - 0x10]
jne 0x10089e40
mov esi, dword [ebp - 0x10]
movss xmm2, dword [0x100e2960]
add esi, 0xfffffff4
cmp edx, dword [ebp - 0x28]
jb 0x10089eec
nop word [eax + eax]
movss xmm1, dword [esi + 8]
movss xmm0, dword [esi]
xorps xmm1, xmm2
mulss xmm1, dword [eax]
xorps xmm0, xmm2
mulss xmm0, dword [eax + 4]
subss xmm1, xmm0
movss dword [edx + 4], xmm1
movss xmm1, dword [esi]
movss xmm0, dword [esi + 8]
xorps xmm1, xmm2
mulss xmm1, dword [eax]
sub esi, 0x10
mulss xmm0, dword [eax + 4]
add eax, 8
subss xmm1, xmm0
movss dword [edx], xmm1
sub edx, 8
cmp edx, dword [ebp - 0x28]
jae 0x10089ea0
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
add edx, 0xffffffe0
add edx, edi
lea eax, [ecx + eax*4]
mov dword [ebp - 0x1c], eax
cmp edx, edi
jb 0x1008a016
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
lea eax, [edi + 2]
lea eax, [esi + eax*4]
mov dword [ebp - 0x20], eax
mov eax, 2
sub eax, edi
lea edi, [ecx + 4]
shl eax, 2
sub eax, ecx
mov dword [ebp - 0x30], edi
add eax, dword [ebp - 0x1c]
mov edi, esi
sub edi, ecx
add eax, esi
sub dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
nop
movss xmm1, dword [esi - 4]
movss xmm2, dword [esi - 8]
movaps xmm3, xmm1
subss xmm2, dword [eax - 8]
mov edi, dword [ebp - 0x2c]
addss xmm1, dword [edi + ecx]
subss xmm3, dword [edi + ecx]
mov edi, dword [ebp - 0x1c]
add dword [ebp - 0x1c], 0x10
movss dword [edi + 4], xmm1
movaps xmm1, xmm3
movss xmm0, dword [eax - 8]
addss xmm0, dword [esi - 8]
movss dword [edi], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [edx + 0x14]
mulss xmm1, dword [edx + 0x10]
subss xmm1, xmm0
movss dword [ecx], xmm1
mulss xmm2, dword [edx + 0x10]
mulss xmm3, dword [edx + 0x14]
addss xmm2, xmm3
movss dword [ecx - 4], xmm2
movss xmm0, dword [eax + 4]
movss xmm3, dword [esi + 4]
movss xmm2, dword [esi]
subss xmm3, xmm0
addss xmm0, dword [esi + 4]
subss xmm2, dword [eax]
movaps xmm1, xmm3
movss dword [edi + 0xc], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [eax]
mov edi, dword [ebp - 0x10]
add eax, 0x10
movss dword [edi + esi], xmm0
movaps xmm0, xmm2
mulss xmm1, dword [edx]
add esi, 0x10
mulss xmm0, dword [edx + 4]
subss xmm1, xmm0
movss dword [ecx + 8], xmm1
mulss xmm2, dword [edx]
mulss xmm3, dword [edx + 4]
sub edx, 0x20
addss xmm2, xmm3
movss dword [ecx + 4], xmm2
add ecx, 0x10
cmp edx, dword [ebp - 8]
jae 0x10089f40
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push edx
call fcn.10089170
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov edi, edx
mov dword [ebp - 0x3c], eax
neg esi
mov eax, dword [ebp - 0xc]
push esi
dec eax
sar edi, 4
push eax
push ecx
push edi
call fcn.10089870
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x34]
push esi
mov esi, dword [ebp + 8]
dec eax
push eax
push esi
push edi
call fcn.10089870
mov eax, dword [ebp - 0xc]
neg edi
mov edx, dword [ebp + 0xc]
dec eax
push 0x10
push dword [ebp - 8]
sar edx, 5
push edi
push eax
push esi
push edx
mov dword [ebp - 0x1c], edx
call fcn.10089210
mov eax, dword [ebp - 0xc]
add esp, 0x44
sub eax, dword [ebp - 0x14]
dec eax
push 0x10
push dword [ebp - 8]
push edi
push eax
push esi
push dword [ebp - 0x1c]
call fcn.10089210
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add eax, eax
push 0x10
push dword [ebp - 8]
sub ecx, eax
push edi
dec ecx
push ecx
push esi
push dword [ebp - 0x1c]
call fcn.10089210
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push 0x10
push dword [ebp - 8]
lea eax, [eax + eax*2]
sub ecx, eax
push edi
dec ecx
push ecx
push esi
push dword [ebp - 0x1c]
call fcn.10089210
mov ecx, dword [ebp - 0x3c]
add esp, 0x48
mov edi, 2
mov dword [ebp - 0x14], edi
lea ecx, [ecx - 4]
sar ecx, 1
mov dword [ebp - 0x18], ecx
lea eax, [edi - 1]
cmp ecx, edi
jle 0x1008a152
mov dword [ebp - 0x10], 4
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 2]
sar edx, cl
mov ecx, dword [ebp - 0x10]
rol ecx, 1
mov dword [ebp - 0x30], edx
sar edx, 1
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x1008a149
lea ecx, [edi + 3]
neg edx
rol eax, cl
lea ecx, [edi + 4]
mov edi, dword [ebp + 0xc]
sar edi, cl
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
dec edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], ecx
nop
push eax
push dword [ebp - 8]
push edx
push edi
push esi
push dword [ebp - 0x20]
call fcn.10089210
sub edi, dword [ebp - 0x30]
add esp, 0x18
sub dword [ebp - 0x2c], 1
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
jne 0x1008a120
mov edi, dword [ebp - 0x14]
mov eax, 1
inc edi
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp - 0x18]
jl 0x1008a0e4
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff9
cmp edi, edx
jge 0x1008a203
mov ecx, edi
rol eax, cl
lea ecx, [edi + 6]
sub edx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], edx
nop
mov edi, dword [ebp + 0xc]
add ecx, 0xfffffffc
mov edx, edi
sar edx, cl
mov ecx, eax
rol ecx, 3
mov dword [ebp - 0x3c], ecx
mov ecx, edx
sar ecx, 1
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0xc]
rol eax, 1
dec edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
sar edi, cl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], edx
test edi, edi
jle 0x1008a1f2
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x3c]
neg ecx
shl esi, 4
mov dword [ebp - 0x24], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
push dword [ebp - 0x18]
push dword [ebp - 0x3c]
push eax
push ecx
push edx
push esi
push dword [ebp - 0x20]
call fcn.100893c0
mov eax, dword [ebp - 0x2c]
dec edi
mov edx, dword [ebp - 0x40]
add esp, 0x1c
add eax, dword [ebp - 0x24]
sub edx, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], edx
test edi, edi
jg 0x1008a1c0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
inc ecx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x14], ecx
jne 0x1008a170
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [edi - 1]
push eax
push esi
push dword [ebp - 0x1c]
call fcn.100895b0
mov ecx, dword [ebp + 0x14]
add edi, 0xfffffffc
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov eax, dword [eax + ecx*4 + 0x458]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ecx + edi*4]
mov edi, dword [ebp - 0x34]
add edi, 0xfffffffc
mov dword [ebp - 0x20], edx
lea edi, [ecx + edi*4]
cmp edi, ecx
jb 0x1008a2af
mov edx, 6
sub edx, dword [ebp - 0x34]
shl edx, 2
sub edx, ecx
add edx, dword [ebp - 0x20]
add edx, edi
movzx ecx, word [eax]
lea edx, [edx - 0x10]
mov eax, dword [esi + ecx*4]
mov dword [edx + 0x14], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [edx + 0x10], eax
mov eax, dword [esi + ecx*4 + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi + ecx*4 + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
mov eax, dword [esi + ecx*4]
mov dword [edx + 0xc], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [edx + 8], eax
mov eax, dword [esi + ecx*4 + 8]
mov dword [edi + 4], eax
mov eax, dword [esi + ecx*4 + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [edi], eax
sub edi, 0x10
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
cmp edi, ecx
jae 0x1008a257
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp + 0x10]
cmp ecx, edx
jae 0x1008a3ec
mov eax, dword [ebp + 0x14]
lea esi, [ecx + 8]
mov eax, dword [edi + eax*4 + 0x448]
mov edi, eax
add edi, 8
nop dword [eax]
movss xmm3, dword [esi - 8]
movss xmm2, dword [esi - 4]
movss xmm7, dword [edi - 4]
movss xmm1, dword [edi - 8]
movaps xmm0, xmm7
movss dword [ebp - 0x24], xmm2
movaps xmm4, xmm1
addss xmm2, dword [edx + 0xc]
movss dword [ebp - 0x18], xmm3
subss xmm3, dword [edx + 8]
mulss xmm7, xmm2
mulss xmm0, xmm3
mulss xmm4, xmm2
movss xmm2, dword [ebp - 0x18]
addss xmm2, dword [edx + 8]
addss xmm4, xmm0
mulss xmm1, xmm3
subss xmm7, xmm1
movaps xmm0, xmm2
movss xmm1, dword [ebp - 0x24]
addss xmm0, xmm4
subss xmm1, dword [edx + 0xc]
subss xmm2, xmm4
movss dword [esi - 8], xmm0
movaps xmm0, xmm1
addss xmm0, xmm7
subss xmm7, xmm1
movss dword [esi - 4], xmm0
movss dword [edx + 8], xmm2
movss dword [edx + 0xc], xmm7
movss xmm1, dword [esi + 4]
movss xmm3, dword [esi]
movss xmm2, dword [edi]
movss xmm7, dword [edi + 4]
movaps xmm0, xmm2
movss dword [ebp - 0x24], xmm1
movaps xmm4, xmm7
addss xmm1, dword [edx + 4]
movss dword [ebp - 0x18], xmm3
add edi, 0x10
subss xmm3, dword [edx]
mulss xmm7, xmm1
mulss xmm2, xmm3
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0x24]
subss xmm7, xmm2
movss xmm2, dword [ebp - 0x18]
addss xmm2, dword [edx]
subss xmm1, dword [edx + 4]
mulss xmm4, xmm3
addss xmm4, xmm0
movaps xmm0, xmm2
addss xmm0, xmm4
subss xmm2, xmm4
movss dword [esi], xmm0
movaps xmm0, xmm1
addss xmm0, xmm7
subss xmm7, xmm1
movss dword [esi + 4], xmm0
add esi, 0x10
movss dword [edx], xmm2
movss dword [edx + 4], xmm7
sub edx, 0x10
lea eax, [esi - 8]
cmp eax, edx
jb 0x1008a2d0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x38]
add eax, 0xfffffffc
add edx, 0xffffffe0
add edx, ecx
lea eax, [esi + eax*4]
mov dword [ebp - 0x18], eax
cmp edx, ecx
jb 0x1008a59d
lea eax, [esi + 8]
movss xmm6, dword [0x100e2960]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
add eax, 8
add eax, esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
add eax, 2
lea eax, [esi + eax*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [edi + eax*4 + 0x440]
mov edi, dword [ebp - 0x24]
sub eax, ecx
add eax, 0x18
add eax, edx
nop word [eax + eax]
movss xmm4, dword [eax + 4]
movss xmm5, dword [edx + 0x18]
movaps xmm3, xmm4
movss xmm0, dword [eax]
mulss xmm0, dword [edx + 0x1c]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edx + 0x1c]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [edi - 8], xmm3
xorps xmm3, xmm6
movss dword [esi + 0xc], xmm3
movss dword [ecx - 8], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx + 4], xmm5
movss xmm4, dword [eax - 4]
movss xmm5, dword [edx + 0x10]
movaps xmm3, xmm4
movss xmm0, dword [eax - 8]
mulss xmm0, dword [edx + 0x14]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edx + 0x14]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 8]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [edi - 4], xmm3
xorps xmm3, xmm6
movss dword [esi + 8], xmm3
movss dword [ecx - 4], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx], xmm5
movss xmm4, dword [eax - 0xc]
movss xmm5, dword [edx + 8]
movaps xmm3, xmm4
movss xmm0, dword [eax - 0x10]
mulss xmm0, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mulss xmm4, dword [edx + 0xc]
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 0x10]
subss xmm3, xmm0
subss xmm5, xmm4
movss dword [edi], xmm3
xorps xmm3, xmm6
movss dword [esi + 4], xmm3
movss dword [ecx], xmm5
mov ecx, dword [ebp - 0xc]
movss dword [ecx - 4], xmm5
movss xmm2, dword [edx + 4]
movss xmm5, dword [edx]
movaps xmm0, xmm2
movss xmm3, dword [eax - 0x14]
sub edx, 0x20
mulss xmm0, dword [eax - 0x18]
mov ecx, dword [ebp - 8]
mulss xmm2, dword [eax - 0x14]
add dword [ebp - 8], 0x10
mulss xmm3, xmm5
xorps xmm5, xmm6
mulss xmm5, dword [eax - 0x18]
sub eax, 0x20
subss xmm3, xmm0
subss xmm5, xmm2
movss dword [edi + 4], xmm3
xorps xmm3, xmm6
movss dword [esi], xmm3
add edi, 0x10
movss dword [ecx + 4], xmm5
sub esi, 0x10
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 0xc], 0x10
movss dword [ecx - 8], xmm5
cmp edx, dword [ebp - 0x28]
jae 0x1008a450
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x68], eax
lea esp, [ebp - 0x4c]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret