Function at 0x661fe2
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x6737fd
call fcn.0062921c
sub esp, 0x20
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
jne 0x662012
call fcn.00661f93
mov ecx, dword [ebp + 8]
push eax
call fcn.0040ab3b
mov eax, dword [ebp + 8]
jmp 0x6621c8
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.0040a3a5
sub esi, ebx
xor edx, edx
mov eax, esi
mov esi, dword [ebp + 0xc]
div edi
mov edi, eax
test edi, edi
je 0x6620ed
movzx eax, byte [esi]
lea ecx, [ebp - 0x2c]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0123456789ABCDEFabcdef]
push eax
push 1
call fcn.00409c63
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.00409c63
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.00409c63
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.00409c63
add esi, 3
sub edi, 1
jne 0x662065
test ebx, ebx
je 0x66219d
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 0x66212b
movzx eax, al
push eax
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0062bfc0
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.00409c63
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.00409c63
cmp dword [ebp - 0x10], 2
lea ecx, [ebp - 0x2c]
jne 0x66218a
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 0x66218c
push 0x3d
push esi
call fcn.00409c63
push 0x3d
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409c63
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.0040a5bc
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040abbf
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