PortEx is a Java library for static malware analysis of Portable Executable files. Its focus is on PE malformation robustness, and anomaly detection.PortEx is written in Java and Scala, and targeted at Java applications.
usage:
java -jar PortexAnalyzer.jar -v
java -jar PortexAnalyzer.jar -h
java -jar PortexAnalyzer.jar --repair <file>
java -jar PortexAnalyzer.jar --dump <all|resources|overlay|sections|ico> <imagefile>
java -jar PortexAnalyzer.jar --diff <filelist or folder>
java -jar PortexAnalyzer.jar --pdiff <file1> <file2> <imagefile>
java -jar PortexAnalyzer.jar [-a] [-o <outfile>] [-p <imagefile> [-bps <bytes>] [--visoverlay <textfile>]] [-i <folder>] <PEfile>
-h,--help show help
-v,--version show version
-a,--all show all info (slow and unstable!)
-o,--output write report to output file
-p,--picture write image representation of the PE to output file
-bps bytes per square in the image
--visoverlay text file input with square pixels to mark on the visualization
--repair repair the PE file, use this if your file is not recognized as PE
--dump dump resources, overlay, sections, icons
--diff compare several files and show common characteristics (alpha feature)
--pdiff create a diff visualization
-i,--ico extract icons from the resource section as .ico file
Sample:
Here is the image that created from the above command: