In a medium saucepan, heat cream and butter over medium-low heat until butter is melted. Add sugar; cook, whisking frequently, until sugar mostly dissolves, 6 to 8 minutes. Add cocoa, corn syrup, cinnamon, salt, and red pepper (if using); cook, whisking constantly, until smooth and