Function at 0x1008f610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x6c], 0
mov dword [ebp - 0x34], eax
jne 0x1008f8b4
nop dword [eax]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f665
cmp eax, dword [esi + 0x34]
jae 0x1008f677
mov cl, byte [eax]
inc eax
mov dword [esi + 0x2c], eax
cmp cl, 0x4f
jne 0x1008f8aa
cmp byte [esi + 0x3c], 0
je 0x1008f683
xor eax, eax
jmp 0x1008f69d
push dword [esi + 0x20]
call fcn.10086f40
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x1008f652
mov dword [esi + 0x6c], 1
jmp 0x1008f8aa
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f68f
sub eax, dword [esi + 0x30]
jmp 0x1008f69d
push dword [esi + 0x20]
call fcn.10086fe0
add esp, 4
sub eax, dword [esi + 0x24]
lea ecx, [eax - 0x19]
mov dword [ebp - 0x24], eax
cmp ecx, dword [esi + 0x38]
ja 0x1008f8b4
mov edi, 1
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f6c5
cmp eax, dword [esi + 0x34]
jae 0x1008f6d7
mov cl, byte [eax]
inc eax
mov dword [esi + 0x2c], eax
jmp 0x1008f6e0
push dword [esi + 0x20]
call fcn.10086f40
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x1008f6e0
xor cl, cl
mov dword [esi + 0x6c], 1
cmp cl, byte [edi + str.OggS]
jne 0x1008f6ee
inc edi
cmp edi, 4
jl 0x1008f6b1
cmp dword [esi + 0x6c], 0
jne 0x1008f8b4
cmp edi, 4
jne 0x1008f89d
mov eax, dword [str.OggS]
mov dword [ebp - 0x20], eax
nop dword [eax]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f724
cmp eax, dword [esi + 0x34]
jae 0x1008f736
mov cl, byte [eax]
inc eax
mov dword [esi + 0x2c], eax
jmp 0x1008f73f
push dword [esi + 0x20]
call fcn.10086f40
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x1008f73f
xor cl, cl
mov dword [esi + 0x6c], 1
mov byte [ebp + edi - 0x20], cl
inc edi
cmp edi, 0x1b
jb 0x1008f710
cmp dword [esi + 0x6c], 0
jne 0x1008f8b4
cmp byte [ebp - 0x1c], 0
jne 0x1008f89d
movzx ecx, byte [ebp - 7]
movzx eax, byte [ebp - 8]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0xa]
shl ecx, 8
add ecx, eax
mov eax, 0x16
mov dword [ebp - 0x2c], ecx
mov byte [ebp + eax - 0x20], 0
inc eax
cmp eax, 0x1a
jb 0x1008f784
xor edi, edi
xor edx, edx
movzx ecx, byte [ebp + edx - 0x20]
mov eax, edi
shr eax, 0x18
xor ecx, eax
shl edi, 8
xor edi, dword [ecx*4 + 0x10110d58]
movzx ecx, byte [ebp + edx - 0x1f]
mov eax, edi
shr eax, 0x18
xor ecx, eax
shl edi, 8
xor edi, dword [ecx*4 + 0x10110d58]
movzx ecx, byte [ebp + edx - 0x1e]
mov eax, edi
shr eax, 0x18
add edx, 3
xor ecx, eax
shl edi, 8
xor edi, dword [ecx*4 + 0x10110d58]
cmp edx, 0x1b
jb 0x1008f793
movzx eax, byte [ebp - 6]
xor ebx, ebx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1008f898
nop
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f804
cmp eax, dword [esi + 0x34]
jae 0x1008f816
mov cl, byte [eax]
inc eax
mov dword [esi + 0x2c], eax
jmp 0x1008f81f
push dword [esi + 0x20]
call fcn.10086f40
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x1008f81f
xor cl, cl
mov dword [esi + 0x6c], 1
mov eax, edi
movzx ecx, cl
shr eax, 0x18
add ebx, ecx
xor eax, ecx
shl edi, 8
xor edi, dword [eax*4 + 0x10110d58]
sub dword [ebp - 0x28], 1
jne 0x1008f7f0
test ebx, ebx
je 0x1008f898
cmp dword [esi + 0x6c], 0
jne 0x1008f8b4
test ebx, ebx
je 0x1008f898
nop dword [eax]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f864
cmp eax, dword [esi + 0x34]
jae 0x1008f876
mov dl, byte [eax]
inc eax
mov dword [esi + 0x2c], eax
jmp 0x1008f87f
push dword [esi + 0x20]
call fcn.10086f40
mov edx, eax
add esp, 4
cmp edx, 0xffffffff
jne 0x1008f87f
xor dl, dl
mov dword [esi + 0x6c], 1
mov ecx, edi
movzx eax, dl
shr ecx, 0x18
xor ecx, eax
shl edi, 8
xor edi, dword [ecx*4 + 0x10110d58]
sub ebx, 1
jne 0x1008f850
cmp edi, dword [ebp - 0x2c]
je 0x1008f8c7
mov eax, dword [ebp - 0x24]
push eax
push esi
call fcn.1008b050
add esp, 8
cmp dword [esi + 0x6c], 0
je 0x1008f640
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x1008f8f4
cmp byte [esi + 0x3c], 0
je 0x1008f8d8
xor eax, eax
jmp 0x1008f8f2
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1008f8e4
sub eax, dword [esi + 0x30]
jmp 0x1008f8f2
push dword [esi + 0x20]
call fcn.10086fe0
add esp, 4
sub eax, dword [esi + 0x24]
mov dword [edi], eax
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x1008f907
movzx eax, byte [ebp - 0x1b]
shr eax, 2
and eax, 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
dec eax
push eax
push esi
call fcn.1008b050
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret