Function at 0xf0df40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0x24]
push esi
call fcn.00f0e1d0
add esp, 4
test eax, eax
jne 0xf0e17d
mov eax, dword [ebp + 0x20]
push eax
call fcn.00f0dcf0
add esp, 4
test eax, eax
jne 0xf0e17d
mov eax, dword [ebp + 0x18]
imul esi, esi, 0x68
mov esi, dword [esi + 0xf7a408]
push ebx
test al, 7
mov ebx, 0
setne bl
shr eax, 3
add ebx, eax
lea eax, [esi + esi]
lea ecx, [ebx - 2]
mov dword [ebp - 0x14], ebx
cmp eax, ecx
jae 0xf0e1ba
mov ecx, ebx
sub ecx, eax
mov dword [ebp - 0x10], ecx
add ecx, 0xfffffffe
cmp dword [ebp + 0xc], ecx
ja 0xf0e1ba
push edi
push ebx
call fcn.00f2674c
push ebx
mov edi, eax
call fcn.00f2674c
push esi
mov dword [ebp - 8], eax
call fcn.00f2674c
add esp, 0xc
mov dword [ebp - 0xc], eax
test edi, edi
je 0xf0e18e
cmp dword [ebp - 8], 0
je 0xf0e182
test eax, eax
je 0xf0e182
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
test eax, eax
je 0xf0e001
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 0x24]
push edi
push ecx
push eax
push edx
jmp 0xf0e00d
mov ecx, dword [ebp + 0x24]
lea eax, [ebp - 4]
push eax
push edi
push 0
push edi
push ecx
call fcn.00f0ebb0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0xf0e15e
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp + 0xc]
lea edx, [edi + esi]
add ebx, 0xfffffffe
push ebx
push eax
push edx
mov dword [ebp - 4], esi
call fcn.00f26f10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov byte [eax + edi], 1
mov eax, dword [ebp - 4]
inc eax
push ebx
mov dword [ebp - 4], eax
push ecx
add eax, edi
push eax
call fcn.00f26fd0
mov eax, dword [ebp + 0x20]
add dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [edx*8 + 0xf79314]
push eax
push esi
push ebx
call ecx
add esp, 0x24
cmp eax, esi
je 0xf0e085
mov ebx, 9
jmp 0xf0e15e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
sub eax, esi
dec eax
push eax
push edx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
push ebx
push eax
call fcn.00f0ea50
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0xf0e15e
mov edx, dword [ebp - 0x10]
test edx, edx
je 0xf0e0cc
mov ecx, dword [ebp - 8]
mov eax, edi
sub ecx, edi
lea esp, [esp]
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0xf0e0c0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
push esi
push ecx
push edx
mov edx, dword [ebp + 0x24]
push edi
push edx
call fcn.00f0ea50
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0xf0e15e
test esi, esi
je 0xf0e0fc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub ecx, eax
mov edx, esi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0xf0e0f3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x2c]
cmp dword [eax], ecx
jae 0xf0e10f
mov dword [eax], ecx
mov ebx, 6
jmp 0xf0e15e
mov ebx, dword [ebp + 0x28]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], 0
mov byte [ebx], 0
mov eax, dword [ebp - 4]
inc eax
push esi
mov dword [ebp - 4], eax
push ecx
add eax, ebx
push eax
call fcn.00f26fd0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, esi
push edx
mov dword [ebp - 4], eax
add eax, ebx
push edi
push eax
call fcn.00f26fd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x2c]
sub eax, esi
lea eax, [ecx + eax - 1]
add esp, 0x18
mov dword [ebp - 4], eax
mov dword [edx], eax
xor ebx, ebx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00f24621
mov ecx, dword [ebp - 8]
push ecx
call fcn.00f24621
push edi
call fcn.00f24621
add esp, 0xc
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
call fcn.00f24621
mov eax, dword [ebp - 0xc]
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0xf0e1a1
push ecx
call fcn.00f24621
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
je 0xf0e1ae
push eax
call fcn.00f24621
add esp, 4
pop edi
pop ebx
mov eax, 0xd
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret