retdec
|
#include <visual_basic_info.h>
Public Member Functions | |
Getters | |
const std::string & | getLanguageDLL () const |
const std::string & | getBackupLanguageDLL () const |
const std::string & | getProjectExeName () const |
const std::string & | getProjectDescription () const |
const std::string & | getProjectHelpFile () const |
const std::string & | getProjectName () const |
bool | getLanguageDLLPrimaryLCID (std::uint32_t &res) const |
bool | getLanguageDLLSecondaryLCID (std::uint32_t &res) const |
const std::string & | getProjectPath () const |
bool | getProjectPrimaryLCID (std::uint32_t &res) const |
bool | getProjectSecondaryLCID (std::uint32_t &res) const |
const std::vector< std::unique_ptr< VisualBasicObject > > & | getObjects () const |
const std::vector< std::unique_ptr< VisualBasicExtern > > & | getExterns () const |
const VisualBasicObject * | getObject (std::size_t position) const |
const VisualBasicExtern * | getExtern (std::size_t position) const |
std::size_t | getNumberOfObjects () const |
std::size_t | getNumberOfExterns () const |
const std::string & | getObjectTableGUID () const |
const std::string & | getTypeLibCLSID () const |
bool | getTypeLibLCID (std::uint32_t &res) const |
bool | getTypeLibMajorVersion (std::uint16_t &res) const |
bool | getTypeLibMinorVersion (std::uint16_t &res) const |
const std::string & | getCOMObjectName () const |
const std::string & | getCOMObjectDescription () const |
const std::string & | getCOMObjectCLSID () const |
const std::string & | getCOMObjectInterfaceCLSID () const |
const std::string & | getCOMObjectEventsCLSID () const |
const std::string & | getCOMObjectType () const |
const std::string & | getExternTableHashCrc32 () const |
const std::string & | getExternTableHashMd5 () const |
const std::string & | getExternTableHashSha256 () const |
const std::string & | getObjectTableHashCrc32 () const |
const std::string & | getObjectTableHashMd5 () const |
const std::string & | getObjectTableHashSha256 () const |
Setters | |
void | setLanguageDLL (const std::string &lDll) |
void | setBackupLanguageDLL (const std::string &blDll) |
void | setProjectExeName (const std::string &exeName) |
void | setProjectDescription (const std::string &desc) |
void | setProjectHelpFile (const std::string &helpFile) |
void | setProjectName (const std::string &name) |
void | setLanguageDLLPrimaryLCID (std::uint32_t lDllPrimLCID) |
void | setLanguageDLLSecondaryLCID (std::uint32_t lDllSecLCID) |
void | setProjectPath (const std::string &path) |
void | setProjectPrimaryLCID (std::uint32_t primLCID) |
void | setProjectSecondaryLCID (std::uint32_t secLCID) |
void | setTypeLibCLSID (const std::uint8_t data[16]) |
void | setTypeLibLCID (std::uint32_t tlbLCID) |
void | setPcode (bool set) |
void | setObjectTableGUID (const std::uint8_t data[16]) |
void | setTypeLibMajorVersion (std::uint16_t majVer) |
void | setTypeLibMinorVersion (std::uint16_t minVer) |
void | setCOMObjectName (const std::string &name) |
void | setCOMObjectDescription (const std::string &description) |
void | setCOMObjectCLSID (const std::uint8_t data[16]) |
void | setCOMObjectInterfaceCLSID (const std::uint8_t data[16]) |
void | setCOMObjectEventsCLSID (const std::uint8_t data[16]) |
void | setCOMObjectType (std::uint8_t type) |
Other methods | |
void | addObject (std::unique_ptr< VisualBasicObject > &&obj) |
void | addExtern (std::unique_ptr< VisualBasicExtern > &&ext) |
bool | hasProjectName () const |
bool | hasProjectDescription () const |
bool | hasProjectHelpFile () const |
bool | isPcode () const |
void | computeExternTableHashes () |
void | computeObjectTableHashes () |
Private Member Functions | |
std::string | guidToStr (const std::uint8_t data[16]) |
Class for visual basic information
void retdec::fileformat::VisualBasicInfo::addExtern | ( | std::unique_ptr< VisualBasicExtern > && | ext | ) |
Add visual basic extern
ext | Extern to add |
void retdec::fileformat::VisualBasicInfo::addObject | ( | std::unique_ptr< VisualBasicObject > && | obj | ) |
Add visual basic object
obj | Object to add |
void retdec::fileformat::VisualBasicInfo::computeExternTableHashes | ( | ) |
Compute external table hashes - CRC32, MD5, SHA256.
void retdec::fileformat::VisualBasicInfo::computeObjectTableHashes | ( | ) |
Compute object table hashes - CRC32, MD5, SHA256.
const std::string & retdec::fileformat::VisualBasicInfo::getBackupLanguageDLL | ( | ) | const |
Get backup language DLL
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectCLSID | ( | ) | const |
Get COM object CLSID
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectDescription | ( | ) | const |
Get COM object description
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectEventsCLSID | ( | ) | const |
Get COM object events CLSID
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectInterfaceCLSID | ( | ) | const |
Get COM object interface CLSID
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectName | ( | ) | const |
Get COM object name
const std::string & retdec::fileformat::VisualBasicInfo::getCOMObjectType | ( | ) | const |
Get COM object type
const VisualBasicExtern * retdec::fileformat::VisualBasicInfo::getExtern | ( | std::size_t | position | ) | const |
Get extern
position | Index of selected visual basic extern (indexed from 0) |
const std::vector< std::unique_ptr< VisualBasicExtern > > & retdec::fileformat::VisualBasicInfo::getExterns | ( | ) | const |
Get externs
const std::string & retdec::fileformat::VisualBasicInfo::getExternTableHashCrc32 | ( | ) | const |
Get extern table hash as CRC32
const std::string & retdec::fileformat::VisualBasicInfo::getExternTableHashMd5 | ( | ) | const |
Get extern table hash as MD5
const std::string & retdec::fileformat::VisualBasicInfo::getExternTableHashSha256 | ( | ) | const |
Get extern table hash as SHA256
const std::string & retdec::fileformat::VisualBasicInfo::getLanguageDLL | ( | ) | const |
Get language DLL
bool retdec::fileformat::VisualBasicInfo::getLanguageDLLPrimaryLCID | ( | std::uint32_t & | res | ) | const |
Get language DLL primary LCID
res | Variable to store the result to |
true
if language DLL primary LCID is valid, false
otherwise bool retdec::fileformat::VisualBasicInfo::getLanguageDLLSecondaryLCID | ( | std::uint32_t & | res | ) | const |
Get language DLL secondary LCID
res | Variable to store the result to |
true
if language DLL secondary LCID is valid, false
otherwise size_t retdec::fileformat::VisualBasicInfo::getNumberOfExterns | ( | ) | const |
Get number of externs
size_t retdec::fileformat::VisualBasicInfo::getNumberOfObjects | ( | ) | const |
Get number of objects
const VisualBasicObject * retdec::fileformat::VisualBasicInfo::getObject | ( | std::size_t | position | ) | const |
Get object
position | Index of selected visual basic object (indexed from 0) |
const std::vector< std::unique_ptr< VisualBasicObject > > & retdec::fileformat::VisualBasicInfo::getObjects | ( | ) | const |
Get objects
const std::string & retdec::fileformat::VisualBasicInfo::getObjectTableGUID | ( | ) | const |
Get object table GUID
const std::string & retdec::fileformat::VisualBasicInfo::getObjectTableHashCrc32 | ( | ) | const |
Get object table hash as CRC32
const std::string & retdec::fileformat::VisualBasicInfo::getObjectTableHashMd5 | ( | ) | const |
Get object table hash as MD5
const std::string & retdec::fileformat::VisualBasicInfo::getObjectTableHashSha256 | ( | ) | const |
Get object table hash as SHA256
const std::string & retdec::fileformat::VisualBasicInfo::getProjectDescription | ( | ) | const |
Get project description
const std::string & retdec::fileformat::VisualBasicInfo::getProjectExeName | ( | ) | const |
Get project exe name
const std::string & retdec::fileformat::VisualBasicInfo::getProjectHelpFile | ( | ) | const |
Get project help file
const std::string & retdec::fileformat::VisualBasicInfo::getProjectName | ( | ) | const |
Get project name
const std::string & retdec::fileformat::VisualBasicInfo::getProjectPath | ( | ) | const |
Get project path
bool retdec::fileformat::VisualBasicInfo::getProjectPrimaryLCID | ( | std::uint32_t & | res | ) | const |
Get project primary LCID
res | Variable to store the result to |
true
if project primary LCID is valid, false
otherwise bool retdec::fileformat::VisualBasicInfo::getProjectSecondaryLCID | ( | std::uint32_t & | res | ) | const |
Get project secondary LCID
res | Variable to store the result to |
true
if project secondary LCID is valid, false
otherwise const std::string & retdec::fileformat::VisualBasicInfo::getTypeLibCLSID | ( | ) | const |
Get typeLib CLSID
bool retdec::fileformat::VisualBasicInfo::getTypeLibLCID | ( | std::uint32_t & | res | ) | const |
Get typeLib LCID
res | Variable to store the result to |
true
if typeLib LCID is valid, false
otherwise bool retdec::fileformat::VisualBasicInfo::getTypeLibMajorVersion | ( | std::uint16_t & | res | ) | const |
Get typeLib major version
res | Variable to store result to |
true
if typeLib major version is valid, false
otherwise bool retdec::fileformat::VisualBasicInfo::getTypeLibMinorVersion | ( | std::uint16_t & | res | ) | const |
Get typeLib minor version
res | Variable to store result to |
true
if typeLib minor version is valid, false
otherwise
|
private |
Convert raw GUID data to string
data | Raw GUID data |
bool retdec::fileformat::VisualBasicInfo::hasProjectDescription | ( | ) | const |
Check if visual basic file has project description
true
if visual basic file has project description, false
otherwise bool retdec::fileformat::VisualBasicInfo::hasProjectHelpFile | ( | ) | const |
Check if visual basic file has project help file
true
if visual basic file has project help file, false
otherwise bool retdec::fileformat::VisualBasicInfo::hasProjectName | ( | ) | const |
Check if visual basic file has project name
true
if visual basic file has project name, false
otherwise bool retdec::fileformat::VisualBasicInfo::isPcode | ( | ) | const |
Check if visual basic file is a P-code file
true
if visual basic file is P-code, false
otherwise void retdec::fileformat::VisualBasicInfo::setBackupLanguageDLL | ( | const std::string & | blDLL | ) |
Set backup language DLL
blDLL | Backup language DLL to set |
void retdec::fileformat::VisualBasicInfo::setCOMObjectCLSID | ( | const std::uint8_t | data[16] | ) |
Set COM object CLSID
data | Raw CLSID data |
void retdec::fileformat::VisualBasicInfo::setCOMObjectDescription | ( | const std::string & | description | ) |
Set COM object description
description | COM object description to set |
void retdec::fileformat::VisualBasicInfo::setCOMObjectEventsCLSID | ( | const std::uint8_t | data[16] | ) |
Set COM object eventsCLSID
data | Raw CLSID data |
void retdec::fileformat::VisualBasicInfo::setCOMObjectInterfaceCLSID | ( | const std::uint8_t | data[16] | ) |
Set COM object interfaceCLSID
data | Raw CLSID data |
void retdec::fileformat::VisualBasicInfo::setCOMObjectName | ( | const std::string & | name | ) |
Set COM object name
name | COM object name to set |
void retdec::fileformat::VisualBasicInfo::setCOMObjectType | ( | std::uint8_t | type | ) |
Set COM object type
type | COM object type to set |
void retdec::fileformat::VisualBasicInfo::setLanguageDLL | ( | const std::string & | lDLL | ) |
Set language DLL
lDLL | Language DLL to set |
void retdec::fileformat::VisualBasicInfo::setLanguageDLLPrimaryLCID | ( | std::uint32_t | lDLLPrimLCID | ) |
Set language DLL primary LCID
lDLLPrimLCID | Language DLL primary LCID to set |
void retdec::fileformat::VisualBasicInfo::setLanguageDLLSecondaryLCID | ( | std::uint32_t | lDLLSecLCID | ) |
Set language DLL secondary LCID
lDLLSecLCID | Language DLL secondary LCID to set |
void retdec::fileformat::VisualBasicInfo::setObjectTableGUID | ( | const std::uint8_t | data[16] | ) |
Set object table GUID
data | Raw GUID data |
void retdec::fileformat::VisualBasicInfo::setPcode | ( | bool | set | ) |
Set whether visual basic file is a P-code file.
set | true if file is a P-code, false otherwise. |
void retdec::fileformat::VisualBasicInfo::setProjectDescription | ( | const std::string & | desc | ) |
Set project description
desc | Project description to set |
void retdec::fileformat::VisualBasicInfo::setProjectExeName | ( | const std::string & | exeName | ) |
Set project exe name
exeName | Project exe name to set |
void retdec::fileformat::VisualBasicInfo::setProjectHelpFile | ( | const std::string & | helpFile | ) |
Set project help file
helpFile | Project help file to set |
void retdec::fileformat::VisualBasicInfo::setProjectName | ( | const std::string & | name | ) |
Set project name
name | Project name to set |
void retdec::fileformat::VisualBasicInfo::setProjectPath | ( | const std::string & | path | ) |
Set project path
path | Project path to set |
void retdec::fileformat::VisualBasicInfo::setProjectPrimaryLCID | ( | std::uint32_t | primLCID | ) |
Set project primary LCID
primLCID | Project primary LCID to set |
void retdec::fileformat::VisualBasicInfo::setProjectSecondaryLCID | ( | std::uint32_t | secLCID | ) |
Set project secondary LCID
secLCID | Project secondary LCID to set |
void retdec::fileformat::VisualBasicInfo::setTypeLibCLSID | ( | const std::uint8_t | data[16] | ) |
Set typeLib CLSID
data | CLSID raw data |
void retdec::fileformat::VisualBasicInfo::setTypeLibLCID | ( | std::uint32_t | tlbLCID | ) |
Set typeLib LCID
tlbLCID | TypeLib LCID to set |
void retdec::fileformat::VisualBasicInfo::setTypeLibMajorVersion | ( | std::uint16_t | majVer | ) |
Set typeLib major version
majVer | Version to set |
void retdec::fileformat::VisualBasicInfo::setTypeLibMinorVersion | ( | std::uint16_t | minVer | ) |
Set typeLib minor version
minVer | Version to set |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |