5

I'ld like to know how to bulk rename functions in IDA, based on some condition.

Example: Rename all functions to Foo_XYZ where the function accesses a certain static variable, for example : dword_12345.

This would help me a lot, because I know that address would be only accessed from functions that can be associated with some logic/functionality in the application.

Dominik Antal
  • 2,038
  • 22
  • 39

2 Answers2

9

The IDAScope plugin has similar functionality to rename functions based on the Windows API functions they are calling. You can find a standalone script here that does that http://hooked-on-mnemonics.blogspot.fr/2012/06/automated-generic-function-naming-in.html it should give you an idea how to implement what you are looking for.

ekse
  • 2,208
  • 13
  • 19
4

You can write an IDC script to do this:

IDA Online Help - IDC Language

Jason Geffner
  • 20,681
  • 1
  • 36
  • 75