Function at 0x40663c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x41568c
lea ecx, [ebp - 8]
call fcn.0040485f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov esi, dword [eax - 8]
push esi
call fcn.004055df
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
lea eax, [esi - 3]
push 3
test eax, eax
pop ebx
jle 0x406742
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.004068b9
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.004068b9
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.004068b9
shr edi, 0x10
and edi, 0x3f
mov byte [ebp - 3], al
push edi
call fcn.004068b9
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.00404a90
mov al, byte [ebp - 2]
lea ecx, [ebp - 8]
mov byte [ebp - 2], al
lea eax, [ebp - 2]
push eax
push edi
call fcn.00404a90
mov al, byte [ebp - 3]
lea ecx, [ebp - 8]
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
push edi
call fcn.00404a90
mov al, byte [ebp - 4]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404a90
add dword [ebp - 0xc], ebx
dec dword [ebp - 0x14]
jne 0x406688
cmp dword [ebp - 0x10], esi
jge 0x40682d
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 0x406772
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.004068b9
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.004068b9
pop ecx
mov byte [ebp - 3], al
pop ecx
push 1
pop edi
cmp dword [ebp - 0x10], edi
jle 0x4067c7
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.004068b9
pop ecx
mov byte [ebp - 1], al
jmp 0x4067cb
mov byte [ebp - 1], 0x3d
cmp dword [ebp - 0x10], 2
jle 0x4067e2
shr esi, 0x10
and esi, 0x3f
push esi
call fcn.004068b9
pop ecx
mov bl, al
jmp 0x4067e4
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.00404a90
mov al, byte [ebp - 3]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404a90
mov al, byte [ebp - 1]
lea ecx, [ebp - 8]
mov byte [ebp - 4], al
lea eax, [ebp - 4]
push eax
push edi
call fcn.00404a90
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
push eax
push edi
mov byte [ebp - 4], bl
call fcn.00404a90
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
jl 0x406847
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x406856
mov eax, dword [0x415050]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.004049bf
lea ecx, [ebp - 8]
call fcn.00404833
lea ecx, [ebp + 0xc]
call fcn.00404833
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret