- Ilfak's presentation at Recon 2018
- Microcode in pictures
- Hex-Rays Microcode API vs. Obfuscating Compiler
- Scripts vds10, vds11, vds12 and vds13 from Hex-Rays SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* retrieve the current function information - we need this to extract the stack frame */ | |
func_t *current_function = get_func(current_addr); | |
/* retrieve the stack frame for this function - IDA encapsulates it as struc_t */ | |
struc_t *frame = get_frame(current_function); | |
/* now each variable is a member of the structure - Chris Eagle book shows how to iterate over this */ | |
for (int i = 0; i < frame->memqty; i++) | |
{ | |
/* so each variable is a member - we can retrieve its netnode id via the .id field - in case of structures/stack variables | |
* this is an address starting by 0xFF but it's still a netnode like everything else in IDA | |
*/ |