retdec
|
#include <pattern.h>
Classes | |
class | Match |
Public Member Functions | |
Pattern () | |
bool | operator== (const Pattern &val) const |
bool | operator!= (const Pattern &val) const |
Pattern query methods. | |
bool | isTypeOther () const |
bool | isTypeCrypto () const |
bool | isTypeMalware () const |
bool | isEndianUnknown () const |
bool | isEndianLittle () const |
bool | isEndianBig () const |
Pattern set methods. | |
void | setName (const std::string &name) |
void | setDescription (const std::string &description) |
void | setYaraRuleName (const std::string &yaraRuleName) |
void | setIsTypeOther () |
void | setIsTypeCrypto () |
void | setIsTypeMalware () |
void | setIsEndianUnknown () |
void | setIsEndianLittle () |
void | setIsEndianBig () |
Pattern get methods. | |
std::string | getName () const |
std::string | getDescription () const |
std::string | getYaraRuleName () const |
Static Public Member Functions | |
static Pattern | other (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | otherLittle (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | otherBig (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | crypto (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | cryptoLittle (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | cryptoBig (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | malware (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | malwareLittle (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
static Pattern | malwareBig (const std::string &name="", const std::string &description="", const std::string &yaraRuleName="") |
Public Attributes | |
std::vector< Match > | matches |
Private Types | |
enum class | eType { OTHER , CRYPTO , MALWARE } |
enum class | eEndian { UNKNOWN , LITTLE , BIG } |
Private Member Functions | |
Pattern (const std::string &name, const std::string &description, const std::string &yaraRuleName, eType type, eEndian endian) | |
Private Attributes | |
std::string | _name |
std::string | _description |
std::string | _yaraRuleName |
eType | _type = eType::OTHER |
eEndian | _endian = eEndian::UNKNOWN |
Represents pattern (e.g. crypto signature, malware) found in binary.
|
strongprivate |
|
strongprivate |
retdec::common::Pattern::Pattern | ( | ) |
|
private |
|
static |
|
static |
|
static |
std::string retdec::common::Pattern::getDescription | ( | ) | const |
std::string retdec::common::Pattern::getName | ( | ) | const |
std::string retdec::common::Pattern::getYaraRuleName | ( | ) | const |
bool retdec::common::Pattern::isEndianBig | ( | ) | const |
bool retdec::common::Pattern::isEndianLittle | ( | ) | const |
bool retdec::common::Pattern::isEndianUnknown | ( | ) | const |
bool retdec::common::Pattern::isTypeCrypto | ( | ) | const |
bool retdec::common::Pattern::isTypeMalware | ( | ) | const |
bool retdec::common::Pattern::isTypeOther | ( | ) | const |
|
static |
|
static |
|
static |
bool retdec::common::Pattern::operator!= | ( | const Pattern & | val | ) | const |
bool retdec::common::Pattern::operator== | ( | const Pattern & | val | ) | const |
|
static |
|
static |
|
static |
void retdec::common::Pattern::setDescription | ( | const std::string & | description | ) |
void retdec::common::Pattern::setIsEndianBig | ( | ) |
void retdec::common::Pattern::setIsEndianLittle | ( | ) |
void retdec::common::Pattern::setIsEndianUnknown | ( | ) |
void retdec::common::Pattern::setIsTypeCrypto | ( | ) |
void retdec::common::Pattern::setIsTypeMalware | ( | ) |
void retdec::common::Pattern::setIsTypeOther | ( | ) |
void retdec::common::Pattern::setName | ( | const std::string & | name | ) |
void retdec::common::Pattern::setYaraRuleName | ( | const std::string & | yaraRuleName | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
std::vector<Match> retdec::common::Pattern::matches |