In the bowl of a stand mixer fitted with the paddle attachment, beat butter at medium speed until smooth and creamy, about 2 minutes. Add cocoa, beating until combined. Beat in sour cream until smooth. Gradually add confectioners’ sugar, beating until smooth and creamy. Use immediately.