Function at 0x6a1606
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x6b244e
call fcn.00651da4
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x6a1636
call fcn.006a15b7
mov ecx, dword [ebp + 8]
push eax
call fcn.0040fa4b
mov eax, dword [ebp + 8]
jmp 0x6a17ec
push ebx
push edi
push 3
mov eax, esi
mov dword [ebp - 0x18], 0xf
xor edx, edx
mov dword [ebp - 0x1c], ecx
pop edi
div edi
mov byte [ebp - 0x2c], cl
mov ebx, edx
mov dword [ebp - 0x10], ebx
xor edx, edx
mov dword [ebp - 4], ecx
lea eax, [esi + 2]
div edi
mov eax, esi
lea ecx, [ebp - 0x2c]
sub eax, edx
xor edx, edx
add eax, 2
div edi
shl eax, 2
push eax
call fcn.0040f2b5
sub esi, ebx
xor edx, edx
mov eax, esi
mov esi, dword [ebp + 0xc]
div edi
mov edi, eax
test edi, edi
je 0x6a1711
movzx eax, byte [esi]
lea ecx, [ebp - 0x2c]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.0040eb73
mov cl, byte [esi]
mov al, byte [esi + 1]
and cl, 3
shr al, 4
shl cl, 4
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.0040eb73
mov cl, byte [esi + 1]
mov al, byte [esi + 2]
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, cl
lea ecx, [ebp - 0x2c]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.0040eb73
movzx eax, byte [esi + 2]
lea ecx, [ebp - 0x2c]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.0040eb73
add esi, 3
sub edi, 1
jne 0x6a1689
test ebx, ebx
je 0x6a17c1
xor al, al
mov word [ebp + 0x10], 0
mov byte [ebp + 0xf], al
xor bh, bh
mov byte [ebp + 0x12], al
xor bl, bl
mov eax, dword [ebp - 0x10]
test al, al
je 0x6a174f
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0066a680
mov al, byte [ebp + 0x12]
add esp, 0xc
mov bl, byte [ebp + 0x11]
mov bh, byte [ebp + 0x10]
mov byte [ebp + 0xf], al
movzx eax, bh
lea ecx, [ebp - 0x2c]
shr eax, 2
xor esi, esi
inc esi
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push esi
call fcn.0040eb73
and bh, 3
lea ecx, [ebp - 0x2c]
mov al, bl
shl bh, 4
shr al, 4
add bh, al
movzx eax, bh
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push esi
call fcn.0040eb73
cmp dword [ebp - 0x10], 2
lea ecx, [ebp - 0x2c]
jne 0x6a17ae
mov al, byte [ebp + 0xf]
and bl, 0xf
shr al, 6
shl bl, 2
add bl, al
movzx eax, bl
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
jmp 0x6a17b0
push 0x3d
push esi
call fcn.0040eb73
push 0x3d
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040eb73
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
xor ebx, ebx
mov ecx, esi
push eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
call fcn.0040f4cc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040facf
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc