Function at 0x408b70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [ebp + 0x10], 0
jne 0x408b8b
mov eax, dword [ebp + 0xc]
push eax
call fcn.00411ce0
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x408bb0
mov eax, dword [ebp - 8]
add eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 3
cmp dword [ebp - 8], ecx
jge 0x408cad
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
shr ecx, 2
and ecx, 0x3f
push ecx
call fcn.00408df0
add esp, 4
movsx edx, al
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
shl eax, 6
shr eax, 2
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, 0xff
shr ecx, 4
or eax, ecx
and eax, 0x3f
push eax
call fcn.00408df0
add esp, 4
movsx edx, al
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
shl eax, 4
shr eax, 2
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
shr ecx, 6
or eax, ecx
and eax, 0x3f
push eax
call fcn.00408df0
add esp, 4
movsx edx, al
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
shl eax, 2
shr eax, 2
and eax, 0x3f
push eax
call fcn.00408df0
add esp, 4
movsx ecx, al
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
shl edx, 8
mov eax, dword [ebp - 0x20]
or eax, edx
mov ecx, dword [ebp - 0x14]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x18]
shl edx, 0x18
or eax, edx
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 3
mov dword [ebp - 0x10], ecx
jmp 0x408ba7
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x10]
jge 0x408dd6
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
jmp 0x408cdb
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
jge 0x408cfa
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp + eax - 0x30], dl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x408cd2
mov ecx, dword [ebp - 0x30]
and ecx, 0xff
shr ecx, 2
and ecx, 0x3f
push ecx
call fcn.00408df0
add esp, 4
mov edx, dword [ebp - 4]
mov byte [edx], al
mov eax, dword [ebp - 0x30]
and eax, 0xff
shl eax, 6
shr eax, 2
mov ecx, dword [ebp - 0x30]
shr ecx, 8
and ecx, 0xff
shr ecx, 4
or eax, ecx
and eax, 0x3f
push eax
call fcn.00408df0
add esp, 4
mov edx, dword [ebp - 4]
mov byte [edx + 1], al
cmp dword [ebp - 0x28], 1
jle 0x408d81
mov eax, dword [ebp - 0x30]
shr eax, 8
and eax, 0xff
shl eax, 4
shr eax, 2
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
and ecx, 0xff
shr ecx, 6
or eax, ecx
and eax, 0x3f
push eax
call fcn.00408df0
add esp, 4
mov byte [ebp - 0x31], al
jmp 0x408d85
mov byte [ebp - 0x31], 0x3d
mov edx, dword [ebp - 4]
mov al, byte [ebp - 0x31]
mov byte [edx + 2], al
cmp dword [ebp - 0x28], 2
jle 0x408db7
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
and ecx, 0xff
shl ecx, 2
shr ecx, 2
and ecx, 0x3f
push ecx
call fcn.00408df0
add esp, 4
mov byte [ebp - 0x32], al
jmp 0x408dbb
mov byte [ebp - 0x32], 0x3d
mov edx, dword [ebp - 4]
mov al, byte [ebp - 0x32]
mov byte [edx + 3], al
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret