Function at 0xf90ec6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
call fcn.00f92662
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0x40]
add ecx, 0x24
call fcn.00f9825f
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jae 0xf91187
test eax, eax
je 0xf910fe
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
call fcn.00f9366d
test eax, eax
jne 0xf9118a
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x1c]
add ecx, 0x24
dec edx
call fcn.00f98244
mov ecx, dword [edi + 0x40]
add ecx, 0x20
call fcn.00f9825f
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jbe 0xf90f5a
push 0xb
pop esi
jmp 0xf9116b
lea ecx, [esp + 0x24]
mov edx, eax
push 0
push ecx
mov ecx, esi
call fcn.00f9269c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xf9116b
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
add eax, 4
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.00f9825f
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0xf90fd0
mov ecx, dword [edi + 0x44]
call fcn.00f9366d
mov esi, eax
test esi, esi
jne 0xf9115b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x40]
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
mov dword [ebx], edi
xor edi, edi
jmp 0xf9115b
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 0x14]
shr eax, 2
sub eax, 2
cmp ecx, eax
ja 0xf910f9
mov ecx, dword [edi + 0x44]
call fcn.00f9366d
mov esi, eax
test esi, esi
jne 0xf9115b
cmp dword [ebp + 0xc], eax
jbe 0xf9107c
mov ecx, dword [esp + 0x10]
add ecx, 8
call fcn.00f9825f
sub eax, dword [ebp + 0xc]
xor edx, edx
inc edx
mov ecx, edx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], edx
jbe 0xf9107c
mov edi, dword [esp + 0x24]
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
mov esi, eax
lea ecx, [ecx + 2]
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*4]
call fcn.00f9825f
sub eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmovge ecx, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, edi
jb 0xf9102a
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add ecx, 8
lea ecx, [ecx + esi*4]
call fcn.00f9825f
cmp eax, dword [esp + 0x20]
ja 0xf910f9
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
lea edx, [eax - 1]
cmp esi, edx
jae 0xf910ad
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ecx + esi*4 + 8], eax
mov ecx, dword [esp + 0x34]
call fcn.00f98244
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
call fcn.00f931b3
mov ecx, dword [esp + 0x28]
neg eax
sbb eax, eax
inc eax
push eax
mov eax, dword [ebp + 8]
push ebx
mov edx, dword [eax]
call fcn.00f9269c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xf9115b
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x44]
call fcn.00f9366d
mov esi, eax
test esi, esi
je 0xf9115b
mov ecx, dword [ebx]
test ecx, ecx
je 0xf9115b
jmp 0xf91153
push 0xb
pop esi
jmp 0xf9115b
mov ecx, esi
call fcn.00f92662
mov ecx, dword [ebp + 8]
inc eax
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [ecx], eax
mov eax, 0x40000000
movzx ecx, word [esi + 0x12]
div ecx
mov ecx, dword [esp + 0x34]
inc eax
cmp ecx, eax
jne 0xf9112b
mov eax, dword [ebp + 8]
inc ecx
mov dword [eax], ecx
push 0
mov edx, ecx
mov ecx, esi
push ebx
call fcn.00f9269c
pop ecx
pop ecx
test eax, eax
jne 0xf9118a
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x44]
call fcn.00f9366d
mov esi, eax
test esi, esi
je 0xf91170
mov ecx, dword [ebx]
test ecx, ecx
je 0xf9116b
mov ecx, dword [ecx + 0x44]
call fcn.00f93b6b
test edi, edi
je 0xf91167
mov ecx, dword [edi + 0x44]
call fcn.00f93b6b
test esi, esi
je 0xf91170
and dword [ebx], 0
jmp 0xf91194
mov eax, dword [ebx]
xor edx, edx
inc edx
mov ecx, dword [eax + 0x44]
cmp word [ecx + 0x16], dx
jle 0xf91191
test eax, eax
je 0xf91187
call fcn.00f93b6b
push 0xb
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov eax, esi
jmp 0xf9118a