static-analysis-engineering / CodeHawk-Binary

CodeHawk Binary Analyzer for malware analysis and general reverse engineering
MIT License
22 stars 10 forks source link

Add ASTDeserializer method to read back return sequences #84

Closed waskyo closed 1 year ago

waskyo commented 1 year ago

This adds a method to ASTDeserializer which can build an ASTReturnSequences object. We use this so Binary Ninja can add the return sequences computed by CodeHawk to its lifting output so patching can succeed.

Along the way I also fixed a minor typo in the __str__ method that was making mypy complain.