LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <vector>
#include <string>
#include "LIEF/PE/enums.hpp"
#include "LIEF/visibility.h"
#include "LIEF/errors.hpp"
Include dependency graph for PE/utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LIEF
 LIEF namespace.
 
namespace  LIEF::PE
 Namespace related to the LIEF's PE module.
 

Enumerations

enum class  LIEF::PE::IMPHASH_MODE { LIEF::PE::DEFAULT = 0 , LIEF::PE::LIEF = DEFAULT , LIEF::PE::PEFILE , LIEF::PE::VT = PEFILE }
 Enum to define the behavior of LIEF::PE::get_imphash. More...
 

Functions

bool LIEF::PE::is_pe (BinaryStream &stream)
 
bool LIEF::PE::is_pe (const std::string &file)
 check if the file is a PE file
 
bool LIEF::PE::is_pe (const std::vector< uint8_t > &raw)
 check if the raw data is a PE file
 
result< PE_TYPELIEF::PE::get_type (const std::string &file)
 if the input file is a PE one, return PE32 or PE32+
 
result< PE_TYPELIEF::PE::get_type (const std::vector< uint8_t > &raw)
 Return PE32 or PE32+
 
result< PE_TYPELIEF::PE::get_type_from_stream (BinaryStream &stream)
 
std::string LIEF::PE::get_imphash (const Binary &binary, IMPHASH_MODE mode=IMPHASH_MODE::DEFAULT)
 Compute the hash of imported functions.
 
result< ImportLIEF::PE::resolve_ordinals (const Import &import, bool strict=false, bool use_std=false)
 Take a PE::Import as entry and try to resolve imports by ordinal.
 
ALGORITHMS LIEF::PE::algo_from_oid (const std::string &oid)