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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
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 0x6042a6
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx + 2]
shr edx, 6
add eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 2], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx + 2]
and al, 0x3f
and eax, 0xff
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 3], al
add dword [ebp - 0x1c], 4
add dword [ebp - 0x18], 3
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x6041ee
mov eax, dword [ebp - 0xc]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x6042bc
dec edx
je 0x604313
jmp 0x604391
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
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 byte [eax + edx + 2], 0x3d
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov byte [eax + edx + 3], 0x3d
jmp 0x604391
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
movzx eax, byte [eax + edx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [edx + ecx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [edx + ecx + 1], al
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov al, byte [eax + edx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
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 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]
mov esp, ebp
pop ebp
ret