01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - Whisk together the flour, cocoa powder, baking powder, baking soda, and salt in a medium bowl.
03 - In a large bowl, cream the unsalted butter and granulated sugar until light and fluffy. Add eggs one at a time, mixing well after each addition. Stir in vanilla and peppermint extracts.
04 - Add the dry ingredients to the creamed mixture in three parts, alternating with milk and sour cream, starting and ending with the dry ingredients. Mix until just combined.
05 - Divide the batter evenly among the cupcake liners.
06 - Drag a toothpick through each filled liner to create a marbled peppermint swirl pattern.
07 - Bake for 18 to 20 minutes, or until a toothpick inserted into the center comes out clean. Cool on a wire rack.
08 - Beat softened butter until creamy. Gradually add powdered sugar, milk, and peppermint extract. Continue beating until light and fluffy.
09 - Optionally add a few drops of red gel food coloring and gently swirl with a spatula without overmixing to create a festive appearance.
10 - Pipe the frosting onto cooled cupcakes and sprinkle with crushed peppermint candies.