e ashamed that+从句
be ashamed of (doing) sth.
是因为动词词组的变化,使had done变成了having done.
另,此句中另一语法点是因果复合句变成了其中一个做伴随的成分,句首省略了Being...