TransWikia.com

Restoring original stack variable in IDA Pro?

Reverse Engineering Asked by Žiga Šumenjak on July 1, 2021

I would like to convert an instruction like:
lea ecx, [esp+150h+var_13E+2]
to:
lea ecx, [esp+14h]
I know it’s possible to do this with the key K. But I’m writing an IDAPython plugin that needs an automatic conversion of instructions like the one above.

Edit:
Are there any idaapi functions to do this?

One Answer

idaapi.op_seg(idc.get_screen_ea(), -1)
idaapi.op_stkvar(idc.get_screen_ea(), -1)

Answered by Žiga Šumenjak on July 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP