Coat 6 cups of muffin tin with cooking spray; fit each with a prosciutto slice. Divide half the cheese and basil among cups. Crack an egg into each and nestle remaining mozzarella and basil around eggs. Bake at 375 degrees until set, about 15 minutes; let rest for 5 minutes. Season with pepper. Run knife around cups to unmold.