IDA Xrefs From/To


Author: David Zimmer
Date: 12.10.25 - 9:26am



Sooo, IDA 9.2 has ditched the external qwingraph.exe and is now using an internal radial graph.

I used to have a qwingraph.exe replacement that had node click navigation to make IDA jump along with bulk renaming for call trees etc.

So I have been forced to implement my own graph file generator and now we are completely independent from the UI on this front.

I also took the opportunity to implement some more features seen below.



I am playing with some ideas on the listview display. We currently include some extra fields such as:
  • total xrefs + visible/hidden
  • string references
  • function size
The total xrefs will show you where other call trees come into common functions and that the nodes below that may just be runtime garbage.

The string refs will give you an idea where to scan for quick wins.

The node right click menu has options to graph xrefs Above/below so you can expand and explore other call trees.

A remove nodes above/below allows you to quickly trim a tree and eliminate noise.

Its is now integrated into IDA Jscript 3. I added a global function in userlib.js so you can just call graph("fxNameOrEA","from") and it will do everything for you!

It also has some smart defaults so it can be as simple as calling graph(). The logic defaults are below:

function graph(fx,mode) {
    var js;
	
	if(!mode) mode = 1 //if omitted default is from
	
	if(!fx){ //if omitted (or 0) defaults to current function
		fx = ida.FunctionStart(ida.FuncIndexFromVA(ida.ScreenEA()))
		if(fx < 1) return print(h(ida.ScreenEA()) + " not in a function");
	}
	
	if(mode == 1 || mode == "from"){
		js = ida.xRefsFromGraph(fx);
	}
	else if(mode == 2 || mode == "to"){
		js = ida.xRefsToGraph(fx);
	}
	else{
		js = ida.xRefsFullTreeGraph(fx);  //anything else = both
	}
	
	print(js) //json object {count,path}
	if(js.count < 1) throw new Error("Graph generation failed")
    app.showGraph(js.path);
}


Pretty handy!




Comments: (0)

 
Leave Comment:
Name:
Email: (not shown)
Message: (Required)
Math Question: 93 + 38 = ? followed by the letter: Y 



About Me
More Blogs
Main Site
Posts: (year)
2025 (14)
     Close IDA decompiler windows
     IDA Xrefs From/To
     Youtube AI Slop
     IDA Jscript 3 Beta
     IDA JScript Updates
     IdaCompare StringDiff
     Sensationalization
     Claude AI Personality Emergence
     iPhone to PC Dictation
     pediff and chatgpt
     Py Magic Numbers
     upside down pyramid
     IDA Compare Updates
     Bindiff Niceity
2024 (1)
     MAP Update
2023 (4)
     Yara Workbench Automation
     VS linker versions
     IDA decompiler comments
     DispCallFunc
2022 (5)
     VB6 Implements
     VB6 Stubs BS
     VB6 TypeInfo
     VB6 VTable Layout
     Yara isPCode rule
2021 (2)
     rtcTypeName
     VB6 Gosub
2020 (5)
     AutoIT versions
     IDA JScript 2
     Using VB6 Obj files from C
     Yara Corrupt Imports
     Yara Undefined values
2019 (6)
     Yara WorkBench
     SafeArrayGetVartype
     vb6 API and call backs
     PrintFile
     ImpAdCallNonVirt
     UConnect Disable Cell Modem
2017 (5)
     IDA python over IPC
     dns wildcard blocking
     64bit IDA Plugins
     anterior lines
     misc news/updates
2016 (4)
     KANAL Mod
     Decoders again
     CDO.Message Breakpoints
     SysAnalyzer Updates
2015 (5)
     SysAnalyzer and Site Updates
     crazy decoder
     ida js w/dbg
     flash patching 2
     JS Graphing
2014 (5)
     Delphi IDA Plugin
     scdbg IDA integration
     API Hash Database
     Winmerge plugin
     IDACompare Updates
2013 (9)
     Guest Post @ hexblog
     TCP Stream Reassembly
     SysAnalyzer Updates
     Apilogger Video
     Shellcode2Exe trainer
     scdbg updates
     IDA Javascript w/IDE
     Rop Analysis II
     scdbg vrs ROP
2012 (13)
     flash patching
     x64 Hooks
     micro hook
     jmp api+5 *2
     SysAnalyzer Updates
     InjDll runtime config
     C# Asm/Dsm Library
     Shellcode Hook Detection
     Updates II
     findDll
     Java Hacking
     Windows 8
     Win7 x64
2011 (19)
     Graphing ideas
     .Net Hacking
     Old iDefense Releases
     BootLoaders
     hll shellcode
     ActionScript Tips
     -patch fu
     scdbg ordinal lookup
     scdbg -api mode
     Peb Module Lists
     scdbg vrs Process Injection
     GetProcAddress Scanner
     scdbg fopen mode
     scdbg findsc mode
     scdbg MemMonitor
     demo shellcodes
     scdbg download
     api hashs redux
     Api hash gen
2010 (11)
     Retro XSS Chat Codes
     Exe as DLL
     Olly Plugins
     Debugging Explorer
     Attach to hidden process
     JS Refactoring
     Asm and Shellcode in CSharp
     Fancy Return Address
     PDF Stream Dumper
     Malcode Call API by Hash
     WinDbg Cheat Sheet
2009 (1)
     GPG Automation