NaC-L / Mergen

Deobfuscation via optimization with usage of LLVM IR and parsing assembly.
GNU General Public License v3.0
332 stars 31 forks source link

Replace RemovePseudoStackPass with PromotePseudoStackToStackPass #20

Closed NaC-L closed 2 months ago

NaC-L commented 3 months ago

I just realized RemovePseudoStackPass does exactly what PromotePseudoStackToStackPass should do. Should just rename the pass. However this pass doesnt promote concretized sp when sp is passed (or a variable allocated in stack) to a function, because we dont convert it to a ptr. Temporary fix to that is function signatures ( which registers, a ptr or an int etc.)

NaC-L commented 3 months ago

Also an extra pass that would decrement/"deallocate" the extra space would produce a better output