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.

2 Answers 2


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.


You can write an IDC script to do this:

IDA Online Help - IDC Language

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.