Function at 0x1009aeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1025ab04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1024eb14], 0
mov ecx, dword [0x1025bb4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
jne 0x1009aefb
call eax
test eax, eax
je 0x1009b1d9
mov ecx, dword [0x1025bb4c]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret
call eax
test eax, eax
jne 0x1009af10
mov ecx, dword [0x1025bb4c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x1025bb50]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov edx, dword [0x1024eb18]
cmp eax, edx
je 0x1009af35
mov ecx, dword [0x1025bb50]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x1025bb54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
mov edx, dword [0x1024eb1c]
cmp eax, edx
je 0x1009af5a
mov ecx, dword [0x1025bb54]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
movd xmm0, dword [0x1024eb20]
mov ecx, dword [0x1025bb58]
cvtdq2ps xmm0, xmm0
mov eax, dword [ecx]
mulss xmm0, dword [0x1016cae8]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x2c], eax
movss dword [ebp - 0x30], xmm0
call dword [ebp - 0x2c]
movss xmm1, dword [ebp - 0x30]
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x2c]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1009afac
mov ecx, dword [0x1025bb58]
push ecx
movss dword [esp], xmm1
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
call eax
movss xmm1, dword [0x101686e4]
movss xmm0, dword [0x1024ec24]
mulss xmm0, xmm1
push ebx
push esi
push edi
cvttss2si edx, xmm0
movss xmm0, dword [0x1024ec28]
mulss xmm0, xmm1
movzx esi, dl
cvttss2si ecx, xmm0
movss xmm0, dword [0x1024ec2c]
mulss xmm0, xmm1
movzx edi, cl
mov ecx, 0x10251d20
cvttss2si eax, xmm0
movzx ebx, al
lea eax, [ebp - 0x28]
push eax
call fcn.1004edd0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push edi
push esi
push eax
lea eax, [ebp - 0x10]
push 0xc
push eax
call fcn.1009b6c0
mov edx, dword [ebp - 0x14]
add esp, 0x18
cmp edx, 0x10
jb 0x1009b051
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1009b047
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009b047
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.101041fa
add esp, 8
mov edx, dword [0x1025bb5c]
test dword [edx + 0x14], 0x1000
je 0x1009b18b
cmp byte [0x10251d00], 0
je 0x1009b0c7
cmp byte [0x10251d01], 0
jne 0x1009b112
mov byte [0x10251d01], 1
xor esi, esi
xor edx, edx
mov ebx, esi
xor edx, dword [0x10251d1c]
xor ebx, dword [0x10251d18]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x30], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x10251d02], al
inc esi
cmp esi, 0x16
jb 0x1009b083
jmp 0x1009b112
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x10251d1c]
xor ebx, dword [0x10251d18]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x30], edx
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [esi + 0x10251d02], al
inc esi
cmp esi, 0x16
jb 0x1009b0d0
push 0x15
push 0x10251d02
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.10045f20
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
cmp ecx, 0x10
jb 0x1009b171
mov esi, dword [ebp - 0x28]
inc ecx
mov edx, esi
mov eax, edx
cmp ecx, 0x1000
jb 0x1009b167
mov edx, dword [esi - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1009b167
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101041fa
add esp, 8
mov edx, dword [0x1025bb5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1009b19b
mov eax, dword [edx + 0x1c]
mov esi, 0x1016844d
mov eax, dword [eax + 0x24]
test eax, eax
cmovne esi, eax
lea eax, [ebp - 0x10]
nop
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x1009b1c0
test cl, cl
je 0x1009b1bc
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x1009b1c0
add esi, 2
add eax, 2
test cl, cl
jne 0x1009b1a0
xor eax, eax
jmp 0x1009b1c5
sbb eax, eax
or eax, 1
pop edi
pop esi
pop ebx
test eax, eax
je 0x1009b1d9
mov eax, dword [edx]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, edx
mov eax, dword [eax + 0x38]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10104522
mov esp, ebp
pop ebp
ret