pev: The Portable Executables (PE) file analysis toolkit
pev is a full-featured, open source, the multiplatform command-line toolkit to work with PE (Portable Executables) binaries.
Getting headers and sections
readpe is the right tool for parsing PE files without inferring anything regarding its fields and values. Using readpe you can see all the basic PE file information. For example, in order to see the Optional Header, you could run:
Looking at function directories
readpe can show you the PE data directories with -d option, like this:
If the executable has an import directory you may want to see a list of imported functions with -i / –imports option: