Function at 0x402670
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
add eax, 2
xor edx, edx
mov ecx, 3
div ecx
shl eax, 2
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00402e00
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4026ab
xor eax, eax
jmp 0x402823
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x4027e2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4026e4
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4026eb
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x402710
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x402717
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x40273c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x402743
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x24]
shl eax, 0x10
mov ecx, dword [ebp - 0x28]
shl ecx, 8
add eax, dword [ebp - 0x2c]
add ecx, eax
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0x12
and edx, 0x3f
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_CM00]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_CM00]
mov byte [ecx], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 6
and ecx, 0x3f
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_CM00]
mov byte [edx], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0
and edx, 0x3f
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_CM00]
mov byte [eax], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4026b9
mov dword [ebp - 0x14], 0
jmp 0x4027f4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov ecx, 3
div ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx*4 + 0x40d0d4]
jge 0x402820
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
sub edx, 1
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov byte [eax + edx], 0x3d
jmp 0x4027eb
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret