    def remove_signing(self):
        """
        Zero cert table and truncate binary
        """
        if self.ZERO_CERT is True and self.flItms['CertLOC'] != 0:
            with open(self.flItms['backdoorfile'], "r+b") as self.binary:
                self.gather_file_info_win()
                print "[*] Overwriting certificate table pointer"
                self.binary.seek(-self.flItms['CertSize'], os.SEEK_END)
                self.binary.truncate()
                self.binary.seek(self.flItms['CertTableLOC'], 0)
                self.binary.write("\x00\x00\x00\x00\x00\x00\x00\x00")
Zero cert table and truncate binary
pebin.py