retdec
Classes | Namespaces | Macros
signature.h File Reference

Declaration of class for matching signatures in executable files or buffers. More...

#include <cstdint>
#include <initializer_list>
#include <vector>
#include "retdec/loader/loader.h"
#include "retdec/utils/dynamic_buffer.h"

Go to the source code of this file.

Classes

class  retdec::unpacker::Signature
 
class  retdec::unpacker::Signature::MatchSettings
 
class  retdec::unpacker::Signature::Byte
 

Namespaces

 retdec
 
 retdec::unpacker
 

Macros

#define ANY   Signature::Byte(Signature::Byte::Type::WILDCARD, 0x0, 0xFF)
 
#define CAP   Signature::Byte(Signature::Byte::Type::CAPTURE, 0x0, 0xFF)
 
#define ANYB(exp, mask)   Signature::Byte(Signature::Byte::Type::WILDCARD, exp, mask)
 
#define CAPB(exp, mask)   Signature::Byte(Signature::Byte::Type::CAPTURE, exp, mask)
 

Detailed Description

Declaration of class for matching signatures in executable files or buffers.

Macro Definition Documentation

◆ ANY

#define ANY   Signature::Byte(Signature::Byte::Type::WILDCARD, 0x0, 0xFF)

Creates wildcard byte.

◆ ANYB

#define ANYB (   exp,
  mask 
)    Signature::Byte(Signature::Byte::Type::WILDCARD, exp, mask)

Creates per-bit wildcard byte with specified expected value and wildcard mask.

◆ CAP

#define CAP   Signature::Byte(Signature::Byte::Type::CAPTURE, 0x0, 0xFF)

Creates wildcard capture byte.

◆ CAPB

#define CAPB (   exp,
  mask 
)    Signature::Byte(Signature::Byte::Type::CAPTURE, exp, mask)

Creates per-bit wildcard capture byte with specified expected value and wildcard mask.