Preheat the oven to 350ºF and line a muffin tin with cupcake liners.
Place the chocolate into a microwave-safe bowl and heat in the microwave until smooth and melted. You don't want to burn the chocolate, so I recommend stirring the chocolate every 15 seconds. Allow chocolate to cool slightly.
In a bowl, whisk the flour, cornstarch, baking powder, and salt together; set aside.
In another bowl, combine the sour cream and milk; set aside.
In the bowl of a stand mixer fitted with the paddle attachment, beat the butter and sugar together until smooth and creamy, about 3 minutes. Add the eggs, one at a time, scraping down the sides and bottom of the bowl as needed. Add the vanilla and melted chocolate, beating until completely incorporated.
Add half of the flour mixture, beating until just combined. Mix in half of the sour cream mixture. Repeat with the remaining flour mixture and sour cream mixture. Batter will be thick.
Scoop batter into the paper liners, about 2/3 full. Pour 1/2 teaspoon of the raspberry swirl sauce into the center of each cupcake batter and use a knife or toothpick to swirl figure-eights into the batter.
Bake cupcakes for 22-27 minutes, or until a toothpick inserted in the center comes out clean. Allow cupcakes to cool in the pan for 15 minutes before transferring to a wire rack to cool completely.