2 sticks (16 tablespoons) unsalted butter, plus more for greasing the foil
1 1/2 cups all-purpose flour
1/3 cup unsweetened cocoa powder
1/2 teaspoon fine salt
4 ounces semisweet or bittersweet chocolate, chopped
2 cups sugar
4 large eggs, slightly beaten