Function at 0xe4bd00
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 0xe4bd67
cmp dword [ebp + 0x10], eax
je 0xe4bd37
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 0xe4bd3f
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.00e7b980
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.00e4bcd0
mov edx, dword [edi + 8]
mov esi, eax
dec edx
and esi, edx
jmp 0xe4bf75
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 0xe4bd99
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 0xe4bd80
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 0xe4be11
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov cl, byte [ebp - 2]
cmp cl, byte [eax]
jne 0xe4bdd6
mov edx, dword [ebp + 0xc]
sub edx, eax
test cl, cl
je 0xe4bedf
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0xe4bdc2
mov edx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0xe4bdf6
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 0xe4be07
mov ecx, dword [edi + 8]
sub ecx, eax
add esi, ecx
jmp 0xe4be09
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xe4bdb1
cmp dword [ebp + 0x10], 0
je 0xe4bd37
mov al, byte [edi + 4]
mov edx, dword [edi + 0xc]
movzx ecx, al
dec ecx
shr edx, cl
test edx, edx
je 0xe4bf75
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 0xe4bd37
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.00e7b980
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [edi + 8], ecx
jbe 0xe4bf0f
mov eax, dword [edi]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0xe4bf02
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.00e4bcd0
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 0xe4bef6
test cl, cl
jne 0xe4becf
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 0xe4beeb
sub esi, eax
add edx, esi
mov esi, dword [ebp - 0x10]
jmp 0xe4beed
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 0xe4beb1
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 0xe4be85
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 0xe4bf75
jmp 0xe4bf40
test cl, cl
jne 0xe4bf5b
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 0xe4bf6b
mov edx, dword [ebp - 0x10]
sub edx, eax
add esi, edx
jmp 0xe4bf6d
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0xe4bf40
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 0xe4bd37
mov ecx, dword [eax]
push ebx
push 0
push ecx
call fcn.00e7b980
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