Function at 0x5fe17c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5fe387
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
test eax, eax
je 0x5fe1a8
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x5fe1c9
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
jmp 0x5fe1d7
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
inc ebx
mov edx, ebx
add edx, edx
add edx, edx
mov eax, dword [ebp - 4]
call fcn.0040a554
dec ebx
test ebx, ebx
jl 0x5fe357
inc ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
lea edx, [ebx + ebx*2]
mov eax, edx
add eax, 3
cmp eax, dword [ebp - 8]
jg 0x5fe278
mov eax, edx
movzx eax, byte [esi + eax]
movzx ecx, al
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 9], cl
shl eax, 4
and al, 0x30
mov ecx, edx
inc ecx
movzx ecx, byte [esi + ecx]
shr ecx, 4
or al, cl
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xa], al
mov eax, edx
inc eax
movzx eax, byte [esi + eax]
add eax, eax
add eax, eax
and al, 0x3c
mov ecx, edx
add ecx, 2
movzx ecx, byte [esi + ecx]
shr ecx, 6
or al, cl
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xb], al
add edx, 2
movzx eax, byte [esi + edx]
and al, 0x3f
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xc], al
jmp 0x5fe304
mov eax, edx
add eax, 2
cmp eax, dword [ebp - 8]
jg 0x5fe2d4
mov eax, edx
movzx eax, byte [esi + eax]
movzx ecx, al
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 9], cl
shl eax, 4
and al, 0x30
mov ecx, edx
inc ecx
movzx ecx, byte [esi + ecx]
shr ecx, 4
or al, cl
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xa], al
inc edx
movzx eax, byte [esi + edx]
add eax, eax
add eax, eax
and al, 0x3c
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xb], al
mov byte [ebp - 0xc], 0x3d
jmp 0x5fe304
mov eax, edx
movzx eax, byte [esi + eax]
movzx ecx, al
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 9], cl
shl eax, 4
and al, 0x30
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 0xa], al
mov byte [ebp - 0xb], 0x3d
mov byte [ebp - 0xc], 0x3d
mov eax, dword [ebp - 4]
call fcn.00409db4
mov edi, ebx
add edi, edi
add edi, edi
movzx edx, byte [ebp - 9]
mov word [eax + edi*2], dx
mov eax, dword [ebp - 4]
call fcn.00409db4
movzx edx, byte [ebp - 0xa]
mov word [eax + edi*2 + 2], dx
mov eax, dword [ebp - 4]
call fcn.00409db4
movzx edx, byte [ebp - 0xb]
mov word [eax + edi*2 + 4], dx
mov eax, dword [ebp - 4]
call fcn.00409db4
movzx edx, byte [ebp - 0xc]
mov word [eax + edi*2 + 6], dx
inc ebx
dec dword [ebp - 0x10]
jne 0x5fe1f4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.005fb480
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00409c14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fe38e
lea eax, [ebp - 0x14]
call fcn.00409834
ret