01 - Heat oven to 350°F and line a 12-cup muffin tin with paper liners.
02 - Whisk together flour, cocoa powder, baking powder, baking soda, and salt in a medium bowl.
03 - Beat unsalted butter and granulated sugar in a large bowl until light and fluffy. Add eggs one at a time, mixing well after each addition. Stir in vanilla and peppermint extracts.
04 - Alternately add the dry ingredient mixture and liquids (milk and sour cream) to the butter mixture in three parts, starting and ending with the dry ingredients. Mix until just combined.
05 - Distribute batter evenly among liners in the prepared pan.
06 - Drag a toothpick through each cupcake to produce a marbled peppermint swirl effect.
07 - Bake for 18 to 20 minutes, testing doneness with a toothpick inserted in the center. Remove from oven and cool completely on a wire rack.
08 - Beat butter until creamy. Gradually add powdered sugar, milk, and peppermint extract. Continue beating until fluffy.
09 - Add a few drops of red gel food coloring to the frosting and gently swirl with a spatula to create a marbled effect without overmixing.
10 - Pipe or spread frosting onto cooled cupcakes and sprinkle with crushed peppermint candies.