Commit Graph

9 Commits

Author SHA1 Message Date
lucasg 302cdac522 Add cfg support for wow64 process (#134)
* Locate and tag CFG bitmap memory page (both x86 and x64) for wow64
  processes
* Add CFG entries parsing for 32-bit executables in peview
* Add unnamed union in PH_MAPPED_IMAGE in order to selectively read a
  IMAGE_NT_HEADER as 32 bit (could also have used a C-style cast)
* Rename CFG page "RVA" column to "VA" since we read Virtual Adresses
2017-05-04 16:37:44 +10:00
dmex b87d039916 peview: Improve module import(s) enumeration 2017-04-28 02:10:59 +10:00
dmex 9534c8b5ce phlib: Fix delay load structure type and checks 2017-04-27 17:41:08 +10:00
dmex 5284dfb6c1 peview: Fix format specifier, Fix incorect type name, Improve IMAGE_CFG_ENTRY type 2017-01-30 01:34:27 +11:00
dmex f0517b31c8 peview: Check binaries for valid CFG data (patch by lucasg), Fix incorrect type names 2017-01-30 00:47:22 +11:00
dmex e3bf0643e0 Fix incorrect phlib types, remove tabspace characters, tidy up #101 merge 2017-01-29 00:24:15 +11:00
lucasg c2efc5f62c [WIP] CFG property page for Peview (#101)
* [peview] Add cfg function list for CFG-aware PE.

* [peview] Add symbol name resolving for Cfg prop page

* [peview] Clean up Cfg entry parsing with proper data structures

* [peview] List CFG whitelist by names

* [peview] Change cfg lockdown bit to SuppressedCall

That how MS call it. (see RtlpGuardAllowSuppressedCall or RtlGuardCheckLongJumpTarget in ntdll)

* [peview] Add entry id column for CFG property page

* [peview] Fix bug when loading symbols for cfg list

The symbol provider was loaded with (ImageBase, SizeOfCode) infos, not
(ImageBase, SizeOfImage).

* [peview] Clarify code in CfgProp and fix typo in cfg item data struct

* [peview] Decref symbol strings after setting the function name

* [peview] Add PhGetMappedImageCfg and PhGetMappedImageCfgEntry in mapimg

Those helpers can parse and return CFG configuration and entries in a
mapped pe.

* [peview] Tidy symbol provider init in a separate function

The code for symbol provider loading is party ripped from mainwnd.c. It
could be a good idea to provide a PhLoadDbgHelpFromCommonLocations (like
Windows Kits) in symprv.

* [peview] Add cfg configuration in load config property sheet
2017-01-28 22:46:16 +11:00
Wen Jia Liu 21ef27f442 Add missing extern "C" blocks to phlib header files 2016-02-25 12:56:40 +11:00
Wen Jia Liu 9996edca71 Reorganize header files (more modularity); Simplify phlib initialization 2016-02-24 15:27:51 +11:00