Function at 0x4a7354
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4a7451
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
movzx ecx, byte [ebx + ecx]
shr ecx, 2
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx], cl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov al, byte [edx + eax]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x5a1220]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov al, byte [edx + eax + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 2]
shr edx, 6
add eax, edx
mov al, byte [eax + 0x5a1220]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 2], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + ecx + 2]
and cl, 0x3f
and ecx, 0xff
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx + 3], cl
add dword [ebp - 0x1c], 4
add dword [ebp - 0x18], 3
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4a7397
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4a7467
dec edx
je 0x4a74c3
jmp 0x4a7543
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
movzx ecx, byte [ebx + ecx]
shr ecx, 2
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx], cl
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + ecx]
and cl, 3
and ecx, 0xff
shl ecx, 4
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx + 1], cl
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx + 2], 0x3d
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx + 3], 0x3d
jmp 0x4a7543
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
movzx ecx, byte [ebx + ecx]
shr ecx, 2
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx], cl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov al, byte [edx + eax]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx + edx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x5a1220]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + ecx + 1]
and cl, 0xf
and ecx, 0xff
shl ecx, 2
mov cl, byte [ecx + 0x5a1220]
mov byte [eax + edx + 2], cl
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx + 3], 0x3d
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret