Function at 0x405ec2
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x41368c
lea ecx, [ebp - 8]
call fcn.0040487d
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov esi, dword [eax - 8]
push esi
call fcn.004055fd
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
lea eax, [esi - 3]
push 3
test eax, eax
pop ebx
jle 0x405fc8
add eax, 2
xor edx, edx
mov ecx, ebx
div ecx
mov dword [ebp - 0x14], eax
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
mov eax, edi
shr eax, 2
and eax, 0x3f
push eax
call fcn.0040613f
mov byte [ebp - 1], al
mov eax, edi
mov ecx, edi
shr eax, 0xc
and ecx, ebx
and eax, 0xf
shl ecx, 4
or eax, ecx
push eax
call fcn.0040613f
mov byte [ebp - 2], al
mov eax, edi
shr eax, 8
mov ecx, edi
and eax, 0xf
shr ecx, 0x16
shl eax, 2
and ecx, ebx
or eax, ecx
push eax
call fcn.0040613f
shr edi, 0x10
and edi, 0x3f
mov byte [ebp - 3], al
push edi
call fcn.0040613f
mov byte [ebp - 4], al
mov al, byte [ebp - 1]
add esp, 0x10
mov byte [ebp - 1], al
lea eax, [ebp - 1]
lea ecx, [ebp - 8]
push eax
push 1
pop edi
push edi
call fcn.00404aae
mov al, byte [ebp - 2]
lea ecx, [ebp - 8]
mov byte [ebp - 2], al
lea eax, [ebp - 2]
push eax
push edi
call fcn.00404aae
mov al, byte [ebp - 3]
lea ecx, [ebp - 8]
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
push edi
call fcn.00404aae
mov al, byte [ebp - 4]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404aae
add dword [ebp - 0xc], ebx
dec dword [ebp - 0x14]
jne 0x405f0e
cmp dword [ebp - 0x10], esi
jge 0x4060b3
sub esi, dword [ebp - 0x10]
mov ecx, esi
xor esi, esi
test ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], esi
jle 0x405ff8
mov esi, dword [ebp - 0xc]
mov eax, ecx
lea edi, [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov eax, esi
shr eax, 2
and eax, 0x3f
push eax
call fcn.0040613f
mov byte [ebp - 4], al
mov eax, esi
mov ecx, esi
shr eax, 0xc
and ecx, ebx
and eax, 0xf
shl ecx, 4
or eax, ecx
push eax
call fcn.0040613f
pop ecx
mov byte [ebp - 3], al
pop ecx
push 1
pop edi
cmp dword [ebp - 0x10], edi
jle 0x40604d
mov eax, esi
mov ecx, esi
shr eax, 8
and eax, 0xf
shr ecx, 0x16
shl eax, 2
and ecx, ebx
or eax, ecx
push eax
call fcn.0040613f
pop ecx
mov byte [ebp - 1], al
jmp 0x406051
mov byte [ebp - 1], 0x3d
cmp dword [ebp - 0x10], 2
jle 0x406068
shr esi, 0x10
and esi, 0x3f
push esi
call fcn.0040613f
pop ecx
mov bl, al
jmp 0x40606a
mov bl, 0x3d
mov al, byte [ebp - 4]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404aae
mov al, byte [ebp - 3]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404aae
mov al, byte [ebp - 1]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404aae
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
push edi
mov byte [ebp - 4], bl
call fcn.00404aae
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
jl 0x4060cd
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4060dc
mov eax, dword [0x413050]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.004049dd
lea ecx, [ebp - 8]
call fcn.00404851
lea ecx, [ebp + 0xc]
call fcn.00404851
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret