01 - Preheat the oven to 350°F and 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 - Beat the butter and sugar in a large bowl until light and fluffy, then incorporate eggs one at a time, mixing well after each addition. Stir in vanilla and peppermint extracts.
04 - Add the dry ingredients to the butter mixture in three parts, alternating with milk and sour cream; begin and end with dry ingredients. Mix until just combined.
05 - Divide the batter evenly among the prepared cupcake liners.
06 - Use a toothpick to drag through each cupcake batter portion to create a marbled swirl pattern.
07 - Bake for 18 to 20 minutes or until a toothpick inserted into the center comes out clean. Allow to cool completely on a wire rack.
08 - Beat the butter until creamy, gradually add powdered sugar, milk, and peppermint extract, and continue beating until fluffy.
09 - Add a few drops of red gel food coloring to the frosting and gently swirl to create a peppermint effect without overmixing.
10 - Pipe the frosting onto cooled cupcakes and sprinkle with crushed peppermint candies.