Function at 0x4e9914
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.00406cb0
mov eax, esi
call fcn.004073ac
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.0040429c
cmp byte [ebp - 1], 0
jne 0x4e998c
mov eax, esi
call fcn.004073ac
movzx edx, word [ebp - 0xc]
dec edx
and dx, 0x3f
add dx, 0x21
mov word [eax], dx
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4e99a6
sub al, 2
jb 0x4e99ad
jmp 0x4e99b2
mov ebx, 2
jmp 0x4e99b2
mov ebx, 1
mov eax, esi
call fcn.004073ac
mov word [eax + ebx*2 - 2], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4e9aa8
test edi, edi
jle 0x4e9a17
mov eax, esi
call fcn.004073ac
lea eax, [eax + ebx*2 - 2]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, word [edx + ecx*2]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or ax, word [edx + ebx*2 - 2]
pop edx
mov word [edx], ax
sub edi, 6
inc ebx
mov eax, esi
call fcn.004073ac
mov word [eax + ebx*2 - 2], 0
jmp 0x4e9a9c
test edi, edi
jge 0x4e9a61
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004073ac
lea eax, [eax + ebx*2 - 2]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and ax, word [edx + ecx*2]
mov ecx, edi
shl ax, cl
mov edx, dword [esi]
or ax, word [edx + ebx*2 - 2]
pop edx
mov word [edx], ax
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4e9a9c
mov eax, esi
call fcn.004073ac
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, word [edx + ecx*2]
and dx, 0x3f
mov ecx, dword [esi]
movzx ecx, word [ecx + ebx*2 - 2]
or dx, cx
mov word [eax + ebx*2 - 2], dx
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.004073ac
mov word [eax + ebx*2 - 2], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4e99cc
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4e9ab9
sub al, 2
jb 0x4e9af4
jmp 0x4e9b3f
cmp edi, 2
jne 0x4e9abf
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4e9b3f
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004073ac
mov edx, dword [esi]
movzx edx, word [edx + edi*2 - 2]
mov ecx, dword [0x51795c]
movzx edx, word [ecx + edx*2]
mov word [eax + edi*2 - 2], dx
inc edi
dec dword [ebp - 0x14]
jne 0x4e9acf
jmp 0x4e9b3f
cmp edi, 2
jne 0x4e9afa
dec ebx
test ebx, ebx
jle 0x4e9b3a
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004073ac
mov edx, dword [esi]
movzx edx, word [edx + edi*2 - 2]
mov ecx, dword [0x517960]
movzx edx, word [ecx + edx*2]
mov word [eax + edi*2 - 2], dx
inc edi
dec dword [ebp - 0x14]
jne 0x4e9b06
jmp 0x4e9b3a
inc ebx
mov eax, esi
call fcn.004073ac
mov word [eax + ebx*2 - 2], 0x3d
test bl, 3
jne 0x4e9b2b
mov eax, esi
mov edx, ebx
call fcn.00406cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4