In a large bowl, sift the flour with the sugar, cocoa powder, baking soda and salt. Add the melted butter mixture and beat with a handheld mixer at low speed until smooth. Add the egg and beat until incorporated, then add the buttermilk and vanilla and beat until smooth, scraping the bottom and side of the bowl. Pour the batter into the lined muffin tins, filling them about three-fourths full.