1

I know it's a silly question 😂😂

I'm using IDA and I want to know if there is a plugin to identify all called APIs inside a function instead of entering each function manually?

3 Answers 3

1

To have an overview of called API in a function you can use Graph feature without pluging :

  • select function
  • click on menu View > Graphs > Users xrefs chart...
  • in Starting Direction check only Cross references from
  • in Ignore group, check all except Externals

enter image description here

enter image description here

1
  • woow amazing ! ...... Thanks a lot
    – Raafat
    Mar 13, 2021 at 12:08
2

I am not sure about a plugin. But, this answer gives an IDC script for similar purpose.

I also wrote a script to get called function graph a long time ago. You can leverage this and tweak this according to your needs (idapython).

def generate_graph():
        callees = {}
        # loop through all functions
        for ea in idautils.Functions():
            function = idc.get_func_name(ea)
            callees[function] = set()
            for h in idautils.FuncItems(ea):
                for xref in idautils.XrefsFrom(h, 0):
                    callees[function].add(idc.get_func_name(xref.to))
        return callees
1
  • Thanks for replying, I will try it
    – Raafat
    Mar 9, 2021 at 1:25
-1

Another way would be to dump the import table at runtime using ollydbg and load it into your ida using a script. I used to copy the data (address and function name) from ollydbg's import table and parse it into ida using a script I wrote. I can't quite find the script anymore though..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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