Function at 0x10090660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add eax, 0x18
push edi
cmp eax, dword [esi + 8]
jb 0x10090680
mov eax, 0x102d5d30
mov ecx, dword [eax + 4]
mov edx, ecx
and edx, 0x7fffff00
cmp edx, 0x7ff7a500
jne 0x100906c4
or ecx, 0x70
cmp ecx, 0x7ff7a574
jne 0x100906ff
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
add eax, 0x10
call fcn.10076150
add esp, 8
test eax, eax
je 0x100906ff
fld qword [esp + 0x18]
lea eax, [esp + 0x18]
fstp qword [esp + 0x18]
fld qword [eax]
call fcn.1015f310
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
add eax, 0x10
cmp eax, edx
jae 0x10090757
cmp eax, 0x102d5d30
je 0x10090757
mov eax, dword [eax + 4]
mov edi, eax
and edi, 0x7fffff00
cmp edi, 0x7ff7a500
je 0x10090703
mov eax, 3
jmp 0x10090708
fldz
jmp 0x100906c6
and eax, 0xff
and eax, 0xf
cmp eax, 4
jne 0x10090757
push 0
push 2
push esi
call fcn.1005de70
add esp, 0xc
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10090724
sub eax, edx
lea ebx, [eax + 1]
push ebx
call fcn.100600c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100908fd
mov eax, dword [esp + 0x10]
push ebx
push eax
push edi
call fcn.10060290
add esp, 0xc
jmp 0x10090801
mov eax, dword [ecx]
add eax, 0x10
cmp eax, edx
jae 0x100908fd
cmp eax, 0x102d5d30
je 0x100908fd
mov eax, dword [eax + 4]
mov edi, eax
and edi, 0x7fffff00
cmp edi, 0x7ff7a500
je 0x10090789
mov eax, 3
jmp 0x1009078e
and eax, 0xff
and eax, 0xf
cmp eax, 7
jne 0x100908fd
mov eax, dword [ecx]
add eax, 0x10
cmp eax, edx
jb 0x100907a8
mov eax, 0x102d5d30
mov ecx, dword [eax + 4]
mov edx, ecx
and edx, 0x7fffff00
cmp edx, 0x7ff7a500
je 0x100907c2
mov ecx, 3
jmp 0x100907c8
and ecx, 0xff
and ecx, 0xf
sub ecx, 2
je 0x100907e0
sub ecx, 5
jne 0x100908fd
mov eax, dword [eax]
add eax, 0x18
jmp 0x100907e2
mov eax, dword [eax]
test eax, eax
je 0x100908fd
cmp dword [eax + 4], 4
jne 0x100908fd
mov eax, dword [eax]
push eax
call fcn.100604e0
add esp, 4
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100908fd
mov ecx, dword [edi + 8]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
je 0x1009084a
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x18]
cmp eax, edx
ja 0x1009082e
jne 0x1009082b
cmp dword [edi + 0x10], ebx
ja 0x1009082b
xor eax, eax
jmp 0x1009083a
mov eax, dword [edi + 0xc]
sub eax, edx
test eax, eax
je 0x1009083a
add edx, ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x18]
test ecx, ecx
je 0x10090844
mov ebx, eax
mov ecx, dword [esp + 0x10]
jmp 0x1009084c
xor ecx, ecx
xor eax, eax
test ebx, ebx
je 0x1009085e
mov dl, byte [esp + 0x14]
xor byte [ecx + eax], dl
inc eax
cmp eax, ebx
jb 0x10090852
push 8
push esi
call fcn.1005f7f0
add esp, 8
test eax, eax
je 0x100908db
mov dword [eax], edi
mov dword [eax + 4], 4
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov eax, 0x1043cee8
add edi, 0x28
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10090887
sub eax, ecx
push eax
push 0x1043cee8
push esi
call fcn.10074e00
mov dword [ebx], eax
movzx eax, byte [eax + 4]
or eax, 0x7ff7a540
mov dword [ebx + 4], eax
add dword [esi + 8], 8
mov eax, dword [esi + 8]
add eax, 0xfffffff8
add esp, 0xc
push eax
push eax
push edi
mov eax, esi
call fcn.10071890
add esp, 0xc
push 0xfffffffffffffffe
push esi
call fcn.1005f070
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec dword [edi + 4]
cmp dword [edi + 4], 0
jne 0x100908fd
mov eax, dword [edi + 8]
mov esi, dword [sym.imp.MSVCR100.dll_free]
test eax, eax
je 0x100908f7
push eax
call esi
add esp, 4
push edi
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret