Function at 0xef8be0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 0x20
push ebx
push esi
test eax, eax
jne 0xef8c47
cmp dword [ebp + 0x10], eax
je 0xef8c17
mov eax, dword [edi + 0x10]
mov byte [edi + 4], 6
mov dword [edi + 8], 0x40
mov ecx, dword [eax]
push 0x100
call ecx
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0xef8c1f
mov dword [edi + 8], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100
push 0
push eax
call fcn.00f26f10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.00ef8bb0
mov edx, dword [edi + 8]
mov esi, eax
dec edx
and esi, edx
jmp 0xef8e55
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x1f0]
mov al, byte [ecx]
mov dword [ebp - 8], edx
mov byte [ebp - 2], al
test al, al
je 0xef8c79
nop
mov edx, dword [ebp - 8]
imul edx, edx, 0xf4243
movzx eax, al
xor edx, eax
mov al, byte [ecx + 1]
inc ecx
mov dword [ebp - 8], edx
test al, al
jne 0xef8c60
mov ebx, dword [edi + 8]
mov esi, dword [ebp - 8]
mov edx, dword [edi]
dec ebx
and esi, ebx
cmp dword [edx + esi*4], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], edx
je 0xef8cf1
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov cl, byte [ebp - 2]
cmp cl, byte [eax]
jne 0xef8cb6
mov edx, dword [ebp + 0xc]
sub edx, eax
test cl, cl
je 0xef8dbf
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0xef8ca2
mov edx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0xef8cd6
movzx ecx, byte [edi + 4]
mov eax, ebx
not eax
and eax, dword [ebp - 8]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and al, cl
or al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp esi, eax
jae 0xef8ce7
mov ecx, dword [edi + 8]
sub ecx, eax
add esi, ecx
jmp 0xef8ce9
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xef8c91
cmp dword [ebp + 0x10], 0
je 0xef8c17
mov al, byte [edi + 4]
mov edx, dword [edi + 0xc]
movzx ecx, al
dec ecx
shr edx, cl
test edx, edx
je 0xef8e55
inc al
movzx ecx, al
mov esi, 1
shl esi, cl
mov byte [ebp - 2], al
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
lea eax, [esi*4]
push eax
mov dword [ebp - 0x10], esi
lea ebx, [esi - 1]
call edx
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0xef8c17
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.00f26f10
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [edi + 8], ecx
jbe 0xef8def
mov eax, dword [edi]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0xef8de2
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.00ef8bb0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
and edx, ebx
xor cl, cl
cmp dword [eax + edx*4], 0
je 0xef8dd6
test cl, cl
jne 0xef8daf
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov eax, ebx
not eax
and eax, dword [ebp - 0x1c]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and cl, al
or cl, 1
movzx eax, cl
cmp edx, eax
jae 0xef8dcb
sub esi, eax
add edx, esi
mov esi, dword [ebp - 0x10]
jmp 0xef8dcd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edx, eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx*4], 0
jne 0xef8d91
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 8]
jb 0xef8d65
mov ecx, dword [edi + 0x10]
mov edx, dword [edi]
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 2]
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], esi
mov esi, dword [ebp - 8]
mov dword [edi], ecx
and esi, ebx
add esp, 4
mov byte [edi + 4], dl
xor cl, cl
cmp dword [eax + esi*4], 0
je 0xef8e55
jmp 0xef8e20
test cl, cl
jne 0xef8e3b
mov ecx, dword [ebp - 0x18]
mov edx, ebx
not edx
and edx, dword [ebp - 8]
dec ecx
shr edx, cl
mov ecx, ebx
shr ecx, 2
and cl, dl
or cl, 1
movzx eax, cl
cmp esi, eax
jae 0xef8e4b
mov edx, dword [ebp - 0x10]
sub edx, eax
add esi, edx
jmp 0xef8e4d
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xef8e20
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
call ecx
mov edx, dword [edi]
mov dword [edx + esi*4], eax
mov eax, dword [edi]
lea eax, [eax + esi*4]
add esp, 4
cmp dword [eax], 0
je 0xef8c17
mov ecx, dword [eax]
push ebx
push 0
push ecx
call fcn.00f26f10
mov edx, dword [edi]
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [edi]
add esp, 0xc
inc dword [edi + 0xc]
mov eax, dword [edx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret