Function at 0x10099330
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101adbb1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x88
push esi
push edi
mov eax, dword [0x10249010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], ecx
mov eax, dword fs:[0x2c]
mov esi, dword [0x1039ea44]
mov esi, dword [eax + esi*4]
mov eax, dword [0x103a0fc4]
mov dword [ebp - 0x14], esi
cmp eax, dword [esi + 4]
jle 0x1009940f
push 0x103a0fc4
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0fc4], 0xffffffff
jne 0x1009940f
mov eax, dword [0x1039ead8]
mov edi, dword [eax + 0x30]
test edi, edi
je 0x100993f7
mov edx, dword [edi + 0xc]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100993c0
sub ecx, esi
lea esi, [ecx + 1]
mov ecx, 0x4fa38bcd
test esi, esi
je 0x100993f0
movsx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
imul ecx, eax, 0xf1546419
sub esi, 1
jne 0x100993d5
cmp ecx, 0xfcb59afa
je 0x100993f9
mov edi, dword [edi + 4]
test edi, edi
jne 0x100993b5
xor edi, edi
push 0x103a0fc4
mov dword [0x103a0fb8], edi
call fcn.10151ac3
mov esi, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [0x103a0fb8]
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x30]
xor eax, ecx
je 0x1009943b
movss xmm0, dword [0x10232db8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [0x1039f500]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x10099b3d
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x734]
call eax
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x10099b3d
mov ecx, dword [0x1039f568]
mov eax, dword [ebp - 0x18]
movss xmm0, dword [ecx + 0x198]
addss xmm0, dword [ecx + 0x194]
movss xmm1, dword [eax + 4]
movss xmm4, dword [eax + 8]
movaps xmm2, xmm1
movss dword [ebp - 0x74], xmm1
movss dword [ebp - 0x94], xmm1
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [eax]
mov eax, dword [ebx + 8]
movaps xmm3, xmm0
movss dword [ebp - 0x70], xmm0
movss dword [ebp - 0x98], xmm0
movaps xmm0, xmm4
movss dword [ebp - 0x78], xmm4
subss xmm0, dword [eax + 8]
subss xmm3, dword [eax]
subss xmm2, dword [eax + 4]
movss dword [ebp - 0x90], xmm4
movss dword [ebp - 0x34], xmm0
movaps xmm0, xmm3
movss dword [ebp - 0x30], xmm3
movaps xmm1, xmm2
mulss xmm0, xmm3
mulss xmm1, xmm2
addss xmm0, xmm1
call fcn.1002f5d0
divss xmm2, xmm3
movss dword [ebp - 0x18], xmm0
movaps xmm0, xmm2
call fcn.100a9140
mulss xmm0, dword [0x10232ef0]
movss dword [ebp - 0x2c], xmm0
movss dword [ebp - 0x24], xmm0
movss xmm0, dword [0x102330dc]
divss xmm0, dword [ebp - 0x18]
mulss xmm0, dword [ebp - 0x34]
call fcn.100a9140
mulss xmm0, dword [0x10233104]
mov dword [ebp - 0x20], 0
movss dword [ebp - 0x28], xmm0
movss xmm0, dword [ebp - 0x30]
comiss xmm0, dword [0x10232c38]
jb 0x1009955e
movss xmm0, dword [ebp - 0x2c]
addss xmm0, dword [0x10232fa8]
movss dword [ebp - 0x24], xmm0
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
push eax
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
call fcn.100a9850
mov eax, dword [0x103a0fb0]
add esp, 8
cmp eax, dword [esi + 4]
jle 0x10099676
push 0x103a0fb0
call fcn.10151b0d
add esp, 4
cmp dword [0x103a0fb0], 0xffffffff
jne 0x10099676
movss xmm5, dword [0x10232cc8]
xor edx, edx
movss xmm6, dword [0x10232db8]
movss xmm7, dword [0x102330a0]
lea ecx, [edx + 0xc]
lea esi, [edx + 6]
nop
movss xmm1, dword [0x10233088]
mov eax, ecx
imul eax, ecx
xorps xmm4, xmm4
movaps xmm3, xmm7
cvtsi2ss xmm4, eax
mulss xmm4, xmm5
andps xmm3, xmm4
movaps xmm0, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltss xmm0, xmm1
andps xmm1, xmm0
orps xmm1, xmm3
addss xmm2, xmm1
subss xmm2, xmm1
movaps xmm0, xmm2
subss xmm0, xmm4
cmpnless xmm0, xmm3
andps xmm0, xmm6
subss xmm2, xmm0
cvttss2si eax, xmm2
add eax, 6
test eax, eax
jle 0x1009965a
add edx, eax
inc ecx
sub esi, 1
jne 0x10099600
push 0x103a0fb0
mov dword [0x103a0fcc], edx
call fcn.10151ac3
mov esi, dword [ebp - 0x14]
add esp, 4
movss xmm0, dword [0x10232db8]
mov eax, dword [0x1039eab8]
movss dword [ebp - 0x1c], xmm0
cmp eax, dword [esi + 4]
jle 0x100996dc
push 0x1039eab8
call fcn.10151b0d
add esp, 4
cmp dword [0x1039eab8], 0xffffffff
jne 0x100996dc
push ecx
push 0x8d29f550
mov dword [ebp - 4], 0
mov ecx, dword [0x1039f394]
push 0x19c23329
call fcn.100bc2f0
push 0x1039eab8
mov dword [0x1039eabc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.10151ac3
add esp, 4
mov eax, dword [0x1039eabc]
movsx eax, word [eax + edi]
add eax, 0xffffffe7
cmp eax, 0xa
ja case.0x100996f4.26
movzx eax, byte [eax + 0x10099b64]
jmp dword [eax*4 + 0x10099b54]
movss xmm0, dword [0x10232e48]
jmp 0x10099717
movss xmm0, dword [0x10232e68]
jmp 0x10099717
movss xmm0, dword [0x10232e64]
movss dword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x38]
xor edx, edx
mov ecx, dword [eax + 4]
add ecx, 4
mov eax, ecx
cmove eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
call eax
mov ecx, dword [0x1039ead4]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
call edx
cmp dword [eax + 0xac], 0
jl 0x10099b3d
mov edx, dword [eax + 0xb0]
add edx, eax
je 0x10099b3d
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx + 8]
shl ecx, 4
add ecx, dword [ebx + 0xc]
lea eax, [eax + ecx*4]
add eax, edx
mov dword [ebp - 0x7c], eax
je 0x10099b3d
movss xmm7, dword [0x10232db8]
xorps xmm0, xmm0
movss xmm6, dword [0x10232cc8]
xorps xmm5, xmm5
movaps xmm1, xmm7
movss dword [ebp - 0x30], xmm5
xor eax, eax
movss dword [ebp - 0x18], xmm1
movss dword [ebp - 0x14], xmm0
mov dword [ebp - 0x34], eax
mulss xmm1, dword [ebp - 0x60]
add eax, 0xc
xor esi, esi
movss xmm3, dword [0x102330a0]
imul eax, eax
movss dword [ebp - 0x2c], xmm1
movss xmm1, dword [0x10233088]
movd xmm4, eax
cvtdq2ps xmm4, xmm4
mulss xmm4, xmm6
andps xmm3, xmm4
movaps xmm0, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltss xmm0, xmm1
andps xmm1, xmm0
orps xmm1, xmm3
addss xmm2, xmm1
subss xmm2, xmm1
movaps xmm0, xmm2
subss xmm0, xmm4
cmpnless xmm0, xmm3
andps xmm0, xmm7
subss xmm2, xmm0
cvttss2si edi, xmm2
add edi, 6
test edi, edi
jle 0x10099acc
movss xmm1, dword [0x10232e50]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x84], esi
divss xmm1, xmm0
movss dword [ebp - 0x80], xmm1
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
mulss xmm0, xmm1
addss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x64], xmm0
call fcn.10066cb0
mulss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x64]
call fcn.1002a2f0
movss xmm2, dword [ebp - 0x68]
movaps xmm1, xmm0
mulss xmm1, dword [ebp - 0x2c]
movss xmm5, dword [ebp - 0x44]
movss xmm0, dword [ebp - 0x5c]
movss xmm4, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x3c]
mulss xmm0, xmm1
mulss xmm5, xmm2
mulss xmm4, xmm2
addss xmm5, dword [ebp - 0x50]
mulss xmm3, xmm2
addss xmm4, dword [ebp - 0x4c]
addss xmm3, dword [ebp - 0x48]
addss xmm5, xmm0
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm1
addss xmm4, xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm1
addss xmm3, xmm0
movaps xmm1, xmm4
movaps xmm0, xmm5
mulss xmm1, xmm4
mulss xmm0, xmm5
addss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm3
addss xmm0, xmm1
call fcn.1002f5d0
addss xmm0, dword [0x10232c58]
movss xmm6, dword [0x10232db8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
divss xmm6, xmm0
movaps xmm1, xmm6
mulss xmm1, xmm5
movaps xmm5, xmm6
mulss xmm5, xmm4
mulss xmm6, xmm3
xorps xmm3, xmm3
ucomiss xmm5, xmm3
lahf
test ah, 0x44
jp 0x10099952
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x10099952
comiss xmm6, xmm3
xorps xmm2, xmm2
jbe 0x10099945
movss xmm0, dword [0x10233004]
jmp 0x100999cd
movss xmm0, dword [0x10232f2c]
jmp 0x100999cd
movaps xmm0, xmm5
call fcn.1007b000
mulss xmm0, dword [0x10232fa8]
xorps xmm2, xmm2
movsd xmm7, qword [0x10232de8]
movss xmm4, dword [0x10233010]
cvtss2sd xmm0, xmm0
mulsd xmm0, xmm7
cvtsd2ss xmm2, xmm0
comiss xmm3, xmm2
jbe 0x1009998a
addss xmm2, xmm4
mulss xmm5, xmm5
mulss xmm1, xmm1
addss xmm5, xmm1
movaps xmm0, xmm5
call fcn.1002f5d0
xorps xmm6, xmmword [0x10233610]
movaps xmm1, xmm0
movaps xmm0, xmm6
call fcn.1007b000
mulss xmm0, dword [0x10232fa8]
cvtss2sd xmm0, xmm0
mulsd xmm0, xmm7
cvtsd2ss xmm0, xmm0
comiss xmm3, xmm0
jbe 0x100999cd
addss xmm0, xmm4
lea edx, [ebp - 0x28]
movss dword [ebp - 0x8c], xmm0
lea ecx, [ebp - 0x8c]
movss dword [ebp - 0x88], xmm2
call fcn.100a9600
movss xmm4, dword [ebp - 0x28]
movss xmm3, dword [ebp - 0x24]
movaps xmm1, xmm4
movss xmm2, dword [ebp - 0x20]
movaps xmm0, xmm3
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, xmm1
call fcn.1002f5d0
addss xmm0, dword [0x10232c58]
movss xmm1, dword [0x10232db8]
mov eax, dword [ebp - 0x6c]
push dword [ebx + 0x10]
mov ecx, dword [ebp - 0x7c]
divss xmm1, xmm0
movss xmm0, dword [eax + 0x10c]
mov eax, dword [ebp - 0x38]
push dword [ebx + 0xc]
mulss xmm4, xmm1
push dword [eax + 4]
mulss xmm3, xmm1
mov eax, edx
lea edx, [ebp - 0x98]
mulss xmm2, xmm1
push eax
mulss xmm4, xmm0
mulss xmm3, xmm0
addss xmm4, dword [ebp - 0x70]
mulss xmm2, xmm0
addss xmm3, dword [ebp - 0x74]
addss xmm2, dword [ebp - 0x78]
movss dword [ebp - 0x28], xmm4
movss dword [ebp - 0x24], xmm3
movss dword [ebp - 0x20], xmm2
call fcn.10097a20
movss xmm7, dword [0x10232db8]
xorps xmm1, xmm1
add esp, 0x10
comiss xmm0, xmm1
jbe 0x10099aa6
movaps xmm0, xmm7
jmp 0x10099aa9
xorps xmm0, xmm0
addss xmm0, dword [ebp - 0x30]
movss xmm1, dword [ebp - 0x80]
inc esi
movaps xmm5, xmm0
movss dword [ebp - 0x30], xmm5
cmp esi, edi
jl 0x10099832
movss xmm6, dword [0x10232cc8]
mov eax, dword [ebp - 0x34]
test al, 1
jne 0x10099add
movss xmm0, dword [0x10232ddc]
jmp 0x10099ae5
movss xmm0, dword [0x102330e0]
movss xmm1, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x34], eax
addss xmm0, dword [ebp - 0x14]
subss xmm1, dword [0x10232d1c]
movss dword [ebp - 0x14], xmm0
movss dword [ebp - 0x18], xmm1
cmp eax, 6
jl 0x100997a6
movd xmm0, dword [0x103a0fcc]
cvtdq2ps xmm0, xmm0
divss xmm5, xmm0
mulss xmm5, dword [ebp - 0x1c]
minss xmm5, xmm7
movaps xmm0, xmm5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
xorps xmm0, xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret