Function at 0x686a12
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x69cafe
call fcn.006375a8
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x686a42
call fcn.006869c3
mov ecx, dword [ebp + 8]
push eax
call fcn.0040da7b
mov eax, dword [ebp + 8]
jmp 0x686bf8
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.0040d2e5
sub esi, ebx
xor edx, edx
mov eax, esi
mov esi, dword [ebp + 0xc]
div edi
mov edi, eax
test edi, edi
je 0x686b1d
movzx eax, byte [esi]
lea ecx, [ebp - 0x2c]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.0040cba3
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.0040cba3
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.0040cba3
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.0040cba3
add esi, 3
sub edi, 1
jne 0x686a95
test ebx, ebx
je 0x686bcd
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 0x686b5b
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0064fe80
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.0040cba3
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.0040cba3
cmp dword [ebp - 0x10], 2
lea ecx, [ebp - 0x2c]
jne 0x686bba
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 0x686bbc
push 0x3d
push esi
call fcn.0040cba3
push 0x3d
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040cba3
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.0040d4fc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040daff
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