idatips (@idatips) header
idatips (@idatips) profile picture

Tips and tricks for everyone's favorite disassembler. Account not run by Hex-Rays.

Joined September 2018
Got a tip or trick? Drop me a line!
6
1
2
11
I finally found a good use for Hex-Rays "Decompile as call", albeit a pretty niche one.
5
41
261
Did you try Shift-Alt-Up/Down? While not exactly the same, these hotkeys search for the closest def/use of the highlighted register. Exists since IDA 7.5, after our conversation :)
1
6
44
Is the Hex-Rays microcode API powerful? Yes. But the real magic is how receptive the core analysis of the decompiler is to our own extensions. The results are stunning. 7 Days to Lift: A Mission in Microcode: blog.ret2.io/2020/07/22/ida-…
1
104
3
319
This is a useful thread!
Oh no, @GalenRTFSL just told me his trick of naming Hexrays variables “useful_name:v1” so you could click-highlight “useful_name” and see all the usage across the function is broken in the latest release. Boooooo!
2
idatips retweeted
I'm happy to announce the first public release of IDACode! Execute and debug all your IDA scripts from VS Code :) You can find the extension on the VS Code marketplace and the IDA plugin in the repository along with some information: github.com/ioncodes/idacode
13
250
6
668
In case Hex-Rays output seems way too partial, try annotating one the variables with the 'volatile' keyword, then decompile again. Chances are the decompiler went overly aggressive and eliminated the memory reference altogether 🙃 See hex-rays.com/products/decomp… for the full details
4
15
49
Everyone has mashed escape to find that one function they forgot to bookmark, but did you know you can go forward too? Try it with Control + Enter! #idatips
3
17
idatips retweeted
-Reversing Tip 28/30- IDA auto-analysis missed a function arg because it was passed in an “unexpected” register? Use the “__usercall” call convention with “@<register_name>” to declare args & their location: #BinReversingTips #idaTips
31
1
106
idatips retweeted
-Reversing Tip 25/30- Get the best from both IDA’s decompiler & disassembler by overlaying the C code on the ASM in graph view (by clicking the “/” key) #BinReversingTips
2
86
3
393
idatips retweeted
IDA pro tip: For custom calling convention, many people know __usercall (args / retval). But did you know __spoils for preserved and volatile registers? hex-rays.com/products/ida/su…
1
49
4
198
idatips retweeted
#idatips Ever get a pointer to the middle of a struct? Just add the __shifted keyword to the variable's type definition!
2
32
3
163
#idatips how to disable arm macro instruction? Options>General…>Analysis>Kernel option3>Enable macro, uncheck it.
6
23
idatips retweeted
New IDA 7.4 and Decompilers released! Changelog: - IdaPython move to Python 3 - New Local Types editor - Improved GDB support (iOS 13) - Multiple improvements in decompiler engine - Global xrefs directly in pseudocode hex-rays.com/products/ida/7.… hex-rays.com/products/decomp… #REhints
33
49
Remember that you can trigger actions in IDA's UI using idaapi.process_ui_action(action_name) (get the name from the shortcuts window) hexblog.com/?p=921 #idapython #idatips @idatips
4
26
Tired of decimal supremacy? Depressed that you recognize -2147483648? Try changing the default radix in hexrays! - change DEFAULT_RADIX in your hexrays.cfg to 16 More info: hex-rays.com/products/decomp… Thanks to @angel_killah for this tip! #idatips
4
24
Married to an old .clr color theme? Can't work unless your colours are just right? - In <=IDA7.2, load a .clr and run idaapi.reg_write_int('PortedToCss', 0), then open a file in IDA7.3 to convert - Or run: hex-rays.com/products/ida/su… More info: hex-rays.com/products/ida/su… #idatips
1
3
1
13
One thing to note here: by default IDA assumes your theme is a light theme and places the resulting user.css in %IDAUSR%/themes/default. If you have a dark theme, you'll need to move it to %IDAUSR%/themes/dark/user.css
1
Make a mistake? IDA 7.3 has undo! - Screw something up, this should be second nature by now - Hit Control-Z - Wow I'd like to take this moment to thank @ilfak and co for ruining an Aprils fools joke I put nine months of hard labor into >:( #idatips
7
37
Part of the horde working on a BlueKeep exploit with IDA on GNU+Linux? Don't know how to organize your PDB's without _NT_SYMBOL_PATH? Set PDBSYM_DOWNLOAD_PATH in $IDAUSR/cfg/pdb.cfg to keep things organized! Thanks to @0xf4b for this tip! #idatips
12
37