📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

Blogs >> sp's Blog

Created: Friday, November 25 2005 16:04.03 CST Modified: Friday, November 25 2005 16:04.03 CST
This is an imported entry. View original. Printer Friendly ...
InstructionCounter plugin for IDA Pro
Author: sp # Views: 1655

The InstructionCounter plugin for IDA Pro is actually the first plugin Ive ever succesfully finished. The main reason for this is probably that its not exactly a very complicated plugin but basically a copy / paste of the template code from Steve Micallefs awesome IDA plugin tutorial with just a few extra lines added.

The plugin counts all instructions used in a file, orders them by their frequency of occurrence and prints all that information to a text file of your choice.

Heres what the output looks like:

Opcode distribution of file: D:Coding
es
ewPage_15.idb
Total opcodes: 6390

0001. 001337    20.92%      LDA
0002. 001022    15.99%      STA
0003. 000589     9.22%      JSR
0004. 000260     4.07%      RTS
0005. 000205     3.21%      AND
0006. 000198     3.10%      LDX
0007. 000186     2.91%      CMP
0008. 000178     2.79%      ADC
0009. 000177     2.77%      BNE
0010. 000171     2.68%      BEQ
...

The ZIP file contains the complete Visual C++ source code and the compiled plugin for IDA 4.8 and IDA 4.9.

There are two minor problems Im having which are mentioned in the source file. Unfortunately none of the people I bug about my IDA problems have been online in the last few days.

Furthermore I was convinced that a plugin like that already exists but I didnt find anything at the IDA Palace when I needed it a few days ago. If theres really already a plugin like that let me know.


If you wish to comment on this blog entry, please do so on the original site it was imported from.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit