Skip to main content

This script analyzes MZ-PE (MS-DOS) executable.

Project description

ProgramExecutableAnalyzer Logo

Program Executable Analyzer

Description

This script analyzes MZ-PE (MS-DOS) executable file.

This tool is useful for malware analysis or debug/understand compiled dependencies.

  1. Verify signature and print informations about signature and trust
  2. Analyze DLLs and imported functions name
  3. Analyze exported functions name
  4. Get executable filename at the compiled time
  5. Get encodings and languages used for compilation
  6. Print informations about rich headers
  7. Get timestamps saved in executable
  8. Print informations about sections and characteristics (permissions, ect...)
  9. Print the entry point position and section
  10. Get architecture, system version, resources (Version file, Manifest)
  11. Get company name, product name, product version, copyright
  12. Sections names, sizes, addresses and characteristics
  13. Analyze MS-DOS and NT headers
  14. When matplotlib is installed, generate charts to compare sections on the disk and in the memory
  15. When matplotlib and EntropyAnalysis are installed, generate charts for entropy analysis (with sections)
  16. Extract overlay

TODO: analyze results to detect language and score the risk.

Requirements

  • python3
  • Python 3 Standard library

Optional

  • matplotlib
  • EntropyAnalysis

Matplotlib and EntropyAnalysis are not installed by ProgramExecutableAnalyzer because this package can be installed on server without GUI.

You can install optinal required packages with the following command: python3 -m pip install matplotlib EntropyAnalysis

Installation

pip install ProgramExecutableAnalyzer

Usages

python3 ProgramExecutableAnalyzer.py -h
python3 ProgramExecutableAnalyzer.py executable.exe
python3 ProgramExecutableAnalyzer.py -c executable.exe  # No color
python3 ProgramExecutableAnalyzer.py -v executable.exe  # Verbose mode

Screenshots

PE Headers Analysis PE Headers Analysis PE Imports Analysis PE Signature Informations PE Entropy Analysis PE Compare Section Size Charts

Links

Licence

Licensed under the GPL, version 3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

programexecutableanalyzer-1.1.2.tar.gz (38.7 kB view details)

Uploaded Source

File details

Details for the file programexecutableanalyzer-1.1.2.tar.gz.

File metadata

File hashes

Hashes for programexecutableanalyzer-1.1.2.tar.gz
Algorithm Hash digest
SHA256 1fcbc50c5a971291e686879cf50ab4baad79d76c8da80b08597afb43aa3f72b3
MD5 91a0f5c83806b40c6a13adc41bf80f7a
BLAKE2b-256 d1d9db0f4e701f732bb3aada290d13eff548fabbe8c477ab80f77255bb03f803

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page