retdec
Public Attributes | Private Attributes | List of all members
retdec::fileinfo::FileInformation Class Reference

#include <file_information.h>

Collaboration diagram for retdec::fileinfo::FileInformation:
Collaboration graph
[legend]

Public Member Functions

Getters of own members
retdec::cpdetect::ReturnCode getStatus () const
 
std::string getPathToFile () const
 
std::string getCrc32 () const
 
std::string getMd5 () const
 
std::string getSha256 () const
 
std::string getSectionTableCrc32 () const
 
std::string getSectionTableMd5 () const
 
std::string getSectionTableSha256 () const
 
retdec::fileformat::Format getFileFormatEnum () const
 
std::string getFileFormat () const
 
std::string getFileClass () const
 
std::string getFileType () const
 
std::string getTargetArchitecture () const
 
std::string getEndianness () const
 
std::string getManifest () const
 
std::string getCompactManifest () const
 
std::size_t getNumberOfStoredDataDirectories () const
 
std::size_t getNumberOfStoredSegments () const
 
std::size_t getNumberOfStoredSections () const
 
std::size_t getNumberOfStoredSymbolTables () const
 
std::size_t getNumberOfStoredRelocationTables () const
 
std::size_t getNumberOfStoredDynamicSections () const
 
std::size_t getNumberOfLoadedSegments () const
 
std::size_t getNumberOfCryptoPatterns () const
 
std::size_t getNumberOfMalwarePatterns () const
 
std::size_t getNumberOfOtherPatterns () const
 
Getters of @a header
std::string getTimeStamp () const
 
std::string getFileStatus () const
 
std::string getFileVersion () const
 
std::string getFileHeaderVersion () const
 
std::string getOsAbi () const
 
std::string getOsAbiVersion () const
 
unsigned long long getFileFlagsSize () const
 
unsigned long long getFileFlags () const
 
std::string getFileFlagsStr () const
 
std::size_t getNumberOfFileFlagsDescriptors () const
 
void getFileFlagsDescriptors (std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
unsigned long long getDllFlagsSize () const
 
unsigned long long getDllFlags () const
 
std::string getDllFlagsStr () const
 
std::size_t getNumberOfDllFlagsDescriptors () const
 
void getDllFlagsDescriptors (std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
std::string getNumberOfBitsInByteStr () const
 
std::string getNumberOfBitsInWordStr () const
 
std::string getFileHeaderSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentTableOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentTableEntrySizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentTableSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getNumberOfDeclaredSegmentsStr () const
 
std::string getSectionTableOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionTableEntrySizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionTableSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getNumberOfDeclaredSectionsStr () const
 
std::string getCoffFileHeaderSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getOptionalHeaderSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getChecksumStr () const
 
std::string getStackReserveSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getStackCommitSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getHeapReserveSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getHeapCommitSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getNumberOfDeclaredDataDirectoriesStr () const
 
std::string getNumberOfDeclaredSymbolTablesStr () const
 
std::string getOverlayOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getOverlaySizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getOverlayEntropyStr (std::ios_base &(*format)(std::ios_base &)) const
 
Getters of @a richHeader
std::size_t getNumberOfStoredRecordsInRichHeader () const
 
std::string getRichHeaderSignature () const
 
std::string getRichHeaderOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getRichHeaderKeyStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getRichHeaderRecordProductIdStr (std::size_t position) const
 
std::string getRichHeaderRecordProductBuildStr (std::size_t position) const
 
std::string getRichHeaderRecordNumberOfUsesStr (std::size_t position) const
 
std::string getRichHeaderRecordProductNameStr (std::size_t position) const
 
std::string getRichHeaderRecordVisualStudioNameStr (std::size_t position) const
 
std::string getRichHeaderRawBytesStr () const
 
bool hasRichHeaderRecords () const
 
Getters of @a visualBasicInfo
bool isVisualBasicUsed () const
 
bool getVisualBasicIsPcode () const
 
std::string getVisualBasicLanguageDLL () const
 
std::string getVisualBasicBackupLanguageDLL () const
 
std::string getVisualBasicProjectExeName () const
 
std::string getVisualBasicProjectDescription () const
 
std::string getVisualBasicProjectHelpFile () const
 
std::string getVisualBasicProjectName () const
 
std::string getVisualBasicLanguageDLLPrimaryLCIDStr () const
 
std::string getVisualBasicLanguageDLLSecondaryLCIDStr () const
 
std::string getVisualBasicProjectPath () const
 
std::string getVisualBasicProjectPrimaryLCIDStr () const
 
std::string getVisualBasicProjectSecondaryLCIDStr () const
 
const retdec::fileformat::VisualBasicObjectgetVisualBasicObject (std::size_t position) const
 
const retdec::fileformat::VisualBasicExterngetVisualBasicExtern (std::size_t position) const
 
std::size_t getVisualBasicNumberOfObjects () const
 
std::size_t getVisualBasicNumberOfExterns () const
 
std::string getVisualBasicExternModuleName (std::size_t position) const
 
std::string getVisualBasicExternApiName (std::size_t position) const
 
std::string getVisualBasicObjectTableGUID () const
 
std::string getVisualBasicTypeLibCLSID () const
 
std::string getVisualBasicTypeLibMajorVersionStr () const
 
std::string getVisualBasicTypeLibMinorVersionStr () const
 
std::string getVisualBasicTypeLibLCIDStr () const
 
std::string getVisualBasicCOMObjectName () const
 
std::string getVisualBasicCOMObjectDescription () const
 
std::string getVisualBasicCOMObjectCLSID () const
 
std::string getVisualBasicCOMObjectInterfaceCLSID () const
 
std::string getVisualBasicCOMObjectEventsCLSID () const
 
std::string getVisualBasicCOMObjectType () const
 
std::string getVisualBasicExternTableHashCrc32 () const
 
std::string getVisualBasicExternTableHashMd5 () const
 
std::string getVisualBasicExternTableHashSha256 () const
 
std::string getVisualBasicObjectTableHashCrc32 () const
 
std::string getVisualBasicObjectTableHashMd5 () const
 
std::string getVisualBasicObjectTableHashSha256 () const
 
Getters of @a pdbInfo
std::string getPdbType () const
 
std::string getPdbPath () const
 
std::string getPdbGuid () const
 
std::string getPdbAgeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getPdbTimeStampStr (std::ios_base &(*format)(std::ios_base &)) const
 
Getters of @a importTable
std::size_t getNumberOfStoredImportLibraries () const
 
std::size_t getNumberOfStoredImports () const
 
std::string getImphashCrc32 () const
 
std::string getImphashMd5 () const
 
std::string getImphashSha256 () const
 
const retdec::fileformat::ImportgetImport (std::size_t position) const
 
std::string getImportName (std::size_t position) const
 
std::string getImportLibraryName (std::size_t position) const
 
std::string getImportUsageType (std::size_t position) const
 
std::string getImportAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getImportOrdinalNumberStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
bool hasImportTableRecords () const
 
Getters of the missing dependency info
std::size_t getNumberOfMissingDeps () const
 
std::string getMissingDepName (std::size_t position) const
 
std::string getDepsListFailedToLoad () const
 
void setDepsListFailedToLoad (const std::string &)
 
Getters of @a exportTable
std::size_t getNumberOfStoredExports () const
 
std::string getExphashCrc32 () const
 
std::string getExphashMd5 () const
 
std::string getExphashSha256 () const
 
std::string getExportName (std::size_t position) const
 
std::string getExportAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getExportOrdinalNumberStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
bool hasExportTableRecords () const
 
Getters of @a resourceTable
std::size_t getNumberOfStoredResources () const
 
std::size_t getNumberOfVersionInfoLanguages () const
 
std::size_t getNumberOfVersionInfoStrings () const
 
std::string getResourceCrc32 (std::size_t index) const
 
std::string getResourceMd5 (std::size_t index) const
 
std::string getResourceSha256 (std::size_t index) const
 
std::string getResourceIconhashCrc32 () const
 
std::string getResourceIconhashMd5 () const
 
std::string getResourceIconhashSha256 () const
 
std::string getResourceIconPerceptualAvgHash () const
 
std::string getResourceName (std::size_t index) const
 
std::string getResourceType (std::size_t index) const
 
std::string getResourceLanguage (std::size_t index) const
 
std::string getVersionInfoLanguageLcid (std::size_t index) const
 
std::string getVersionInfoLanguageCodePage (std::size_t index) const
 
std::string getVersionInfoStringName (std::size_t index) const
 
std::string getVersionInfoStringValue (std::size_t index) const
 
std::string getResourceNameIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getResourceTypeIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getResourceLanguageIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getResourceSublanguageIdStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getResourceOffsetStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getResourceSizeStr (std::size_t index, std::ios_base &(*format)(std::ios_base &)) const
 
bool hasResourceTableRecords () const
 
Getters of @a certificateTable
std::size_t getNumberOfStoredCertificates () const
 
std::size_t getCertificateTableSignerCertificateIndex () const
 
std::size_t getCertificateTableCounterSignerCertificateIndex () const
 
std::string getCertificateValidSince (std::size_t index) const
 
std::string getCertificateValidUntil (std::size_t index) const
 
std::string getCertificatePublicKey (std::size_t index) const
 
std::string getCertificatePublicKeyAlgorithm (std::size_t index) const
 
std::string getCertificateSignatureAlgorithm (std::size_t index) const
 
std::string getCertificateSerialNumber (std::size_t index) const
 
std::string getCertificateSha1Digest (std::size_t index) const
 
std::string getCertificateSha256Digest (std::size_t index) const
 
std::string getCertificateIssuerRawStr (std::size_t index) const
 
std::string getCertificateSubjectRawStr (std::size_t index) const
 
std::string getCertificateIssuerCountry (std::size_t index) const
 
std::string getCertificateIssuerOrganization (std::size_t index) const
 
std::string getCertificateIssuerOrganizationalUnit (std::size_t index) const
 
std::string getCertificateIssuerNameQualifier (std::size_t index) const
 
std::string getCertificateIssuerState (std::size_t index) const
 
std::string getCertificateIssuerCommonName (std::size_t index) const
 
std::string getCertificateIssuerSerialNumber (std::size_t index) const
 
std::string getCertificateIssuerLocality (std::size_t index) const
 
std::string getCertificateIssuerTitle (std::size_t index) const
 
std::string getCertificateIssuerSurname (std::size_t index) const
 
std::string getCertificateIssuerGivenName (std::size_t index) const
 
std::string getCertificateIssuerInitials (std::size_t index) const
 
std::string getCertificateIssuerPseudonym (std::size_t index) const
 
std::string getCertificateIssuerGenerationQualifier (std::size_t index) const
 
std::string getCertificateIssuerEmailAddress (std::size_t index) const
 
std::string getCertificateSubjectCountry (std::size_t index) const
 
std::string getCertificateSubjectOrganization (std::size_t index) const
 
std::string getCertificateSubjectOrganizationalUnit (std::size_t index) const
 
std::string getCertificateSubjectNameQualifier (std::size_t index) const
 
std::string getCertificateSubjectState (std::size_t index) const
 
std::string getCertificateSubjectCommonName (std::size_t index) const
 
std::string getCertificateSubjectSerialNumber (std::size_t index) const
 
std::string getCertificateSubjectLocality (std::size_t index) const
 
std::string getCertificateSubjectTitle (std::size_t index) const
 
std::string getCertificateSubjectSurname (std::size_t index) const
 
std::string getCertificateSubjectGivenName (std::size_t index) const
 
std::string getCertificateSubjectInitials (std::size_t index) const
 
std::string getCertificateSubjectPseudonym (std::size_t index) const
 
std::string getCertificateSubjectGenerationQualifier (std::size_t index) const
 
std::string getCertificateSubjectEmailAddress (std::size_t index) const
 
bool hasCertificateTableRecords () const
 
bool hasCertificateTableSignerCertificate () const
 
bool hasCertificateTableCounterSignerCertificate () const
 
Getters of @a TLS information
std::string getTlsRawDataStartAddrStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getTlsRawDataEndAddrStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getTlsIndexAddrStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getTlsCallBacksAddrStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getTlsZeroFillSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getTlsCharacteristicsStr () const
 
std::size_t getTlsNumberOfCallBacks () const
 
std::string getTlsCallBackAddrStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
bool isTlsUsed () const
 
Getters of @a directories
std::string getDataDirectoryType (std::size_t position) const
 
std::string getDataDirectoryAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDataDirectorySizeStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
Getters of @a segments
std::string getSegmentType (std::size_t position) const
 
std::string getSegmentCrc32 (std::size_t index) const
 
std::string getSegmentMd5 (std::size_t index) const
 
std::string getSegmentSha256 (std::size_t index) const
 
std::string getSegmentIndexStr (std::size_t position) const
 
std::string getSegmentOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentVirtualAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentPhysicalAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentSizeInFileStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentSizeInMemoryStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSegmentAlignmentStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
unsigned long long getSegmentFlagsSize (std::size_t position) const
 
unsigned long long getSegmentFlags (std::size_t position) const
 
std::string getSegmentFlagsStr (std::size_t position) const
 
std::size_t getNumberOfSegmentFlagsDescriptors (std::size_t position) const
 
void getSegmentFlagsDescriptors (std::size_t position, std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
Getters of @a sections
std::string getSectionName (std::size_t position) const
 
std::string getSectionType (std::size_t position) const
 
std::string getSectionCrc32 (std::size_t index) const
 
std::string getSectionMd5 (std::size_t index) const
 
std::string getSectionSha256 (std::size_t index) const
 
std::string getSectionIndexStr (std::size_t position) const
 
std::string getSectionOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionSizeInFileStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionEntrySizeStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionAddressStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionSizeInMemoryStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionRelocationsOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionNumberOfRelocationsStr (std::size_t position) const
 
std::string getSectionLineNumbersOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionNumberOfLineNumbersStr (std::size_t position) const
 
std::string getSectionMemoryAlignmentStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionLinkToOtherSectionStr (std::size_t position) const
 
std::string getSectionExtraInfoStr (std::size_t position) const
 
std::string getSectionLineOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionRelocationsLineOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSectionEntropy (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
unsigned long long getSectionFlagsSize (std::size_t position) const
 
unsigned long long getSectionFlags (std::size_t position) const
 
std::string getSectionFlagsStr (std::size_t position) const
 
std::size_t getNumberOfSectionFlagsDescriptors (std::size_t position) const
 
void getSectionFlagsDescriptors (std::size_t position, std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
Getters of @a symbolTables
std::size_t getNumberOfStoredSymbolsInTable (std::size_t position) const
 
std::string getNumberOfDeclaredSymbolsInTableStr (std::size_t position) const
 
std::string getSymbolTableName (std::size_t position) const
 
std::string getSymbolTableOffsetStr (std::size_t position, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSymbolName (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolType (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolBind (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolOther (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolLinkToSection (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolIndexStr (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolAddressStr (std::size_t tableIndex, std::size_t symbolIndex, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSymbolValueStr (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::string getSymbolSizeStr (std::size_t tableIndex, std::size_t symbolIndex) const
 
std::size_t getSymbolTableNumberOfStoredSpecialInformation (std::size_t position) const
 
std::size_t getSymbolTableNumberOfSpecialInformationValues (std::size_t tableIndex, std::size_t specInfoIndex) const
 
std::string getSymbolTableSpecialInformationDescription (std::size_t tableIndex, std::size_t specInfoIndex) const
 
std::string getSymbolTableSpecialInformationAbbreviation (std::size_t tableIndex, std::size_t specInfoIndex) const
 
std::string getSymbolTableSpecialInformationValue (std::size_t tableIndex, std::size_t specInfoIndex, std::size_t recordIndex) const
 
Getters of @a relocationTables
std::size_t getNumberOfStoredRelocationsInTable (std::size_t position) const
 
std::string getNumberOfStoredRelocationsInTableStr (std::size_t position) const
 
std::string getNumberOfDeclaredRelocationsInTableStr (std::size_t position) const
 
std::string getRelocationTableName (std::size_t position) const
 
std::string getRelocationTableAssociatedSymbolTableName (std::size_t position) const
 
std::string getRelocationTableAppliesSectionName (std::size_t position) const
 
std::string getRelocationTableAssociatedSymbolTableIndex (std::size_t position) const
 
std::string getRelocationTableAppliesSectionIndex (std::size_t position) const
 
std::string getRelocationSymbolName (std::size_t tableIndex, std::size_t relocationIndex) const
 
std::string getRelocationOffsetStr (std::size_t tableIndex, std::size_t relocationIndex, std::ios_base &(*format)(std::ios_base &)) const
 
std::string getRelocationSymbolValueStr (std::size_t tableIndex, std::size_t relocationIndex) const
 
std::string getRelocationTypeStr (std::size_t tableIndex, std::size_t relocationIndex) const
 
std::string getRelocationAddendStr (std::size_t tableIndex, std::size_t relocationIndex) const
 
std::string getRelocationCalculatedValueStr (std::size_t tableIndex, std::size_t relocationIndex) const
 
Getters of @a dynamicSections
std::size_t getNumberOfStoredDynamicEntriesInSection (std::size_t position) const
 
std::string getNumberOfDeclaredDynamicEntriesInSectionStr (std::size_t position) const
 
std::string getDynamicSectionName (std::size_t position) const
 
std::string getDynamicEntryType (std::size_t sectionIndex, std::size_t entryIndex) const
 
std::string getDynamicEntryDescription (std::size_t sectionIndex, std::size_t entryIndex) const
 
std::string getDynamicEntryValueStr (std::size_t sectionIndex, std::size_t entryIndex, std::ios_base &(*format)(std::ios_base &)) const
 
unsigned long long getDynamicEntryFlagsSize (std::size_t sectionIndex, std::size_t entryIndex) const
 
unsigned long long getDynamicEntryFlags (std::size_t sectionIndex, std::size_t entryIndex) const
 
std::string getDynamicEntryFlagsStr (std::size_t sectionIndex, std::size_t entryIndex) const
 
std::size_t getNumberOfDynamicEntryFlagsDescriptors (std::size_t sectionIndex, std::size_t entryIndex) const
 
void getDynamicEntryFlagsDescriptors (std::size_t sectionIndex, std::size_t entryIndex, std::vector< std::string > &desc, std::vector< std::string > &abb) const
 
Pattern getters
const PatterngetCryptoPattern (std::size_t position) const
 
const PatterngetMalwarePattern (std::size_t position) const
 
const PatterngetOtherPattern (std::size_t position) const
 
const std::vector< Pattern > & getCryptoPatterns () const
 
const std::vector< Pattern > & getMalwarePatterns () const
 
const std::vector< Pattern > & getOtherPatterns () const
 
Getters of @a strings
std::size_t getNumberOfDetectedStrings () const
 
const StringsgetStrings () const
 
bool hasStrings () const
 
Getter of @a signatureVerified
bool isSignaturePresent () const
 
bool isSignatureVerified () const
 
std::string isSignatureVerifiedStr (const std::string &t="true", const std::string &f="false") const
 
Getter of @a elfNotes and associtated structures
const std::vector< ElfNotes > & getElfNotes () const
 
const ElfCoregetElfCoreInfo () const
 
Getters of @a compilerOrPackerInfo
std::size_t getNumberOfDetectedCompilers () const
 
std::string getImageBaseStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getEpAddressStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getEpOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getEpBytes () const
 
std::string getEpSectionIndex () const
 
std::string getEpSectionName () const
 
Getters of @a loaderInfo
std::string getLoadedBaseAddressStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getNumberOfLoadedSegmentsStr (std::ios_base &(*format)(std::ios_base &)) const
 
const LoadedSegmentgetLoadedSegment (std::size_t index) const
 
const std::string & getLoaderStatusMessage () const
 
const retdec::fileformat::LoaderErrorInfogetLoaderErrorInfo () const
 
Getters of @a dotnetInfo
bool isDotnetUsed () const
 
const std::string & getDotnetRuntimeVersion () const
 
std::string getDotnetImportedClassName (std::size_t position) const
 
std::string getDotnetImportedClassNestedName (std::size_t position) const
 
std::string getDotnetImportedClassNameWithParentClassIndex (std::size_t position) const
 
std::string getDotnetImportedClassLibName (std::size_t position) const
 
std::string getDotnetImportedClassNameSpace (std::size_t position) const
 
std::string getDotnetTypeRefhashCrc32 () const
 
std::string getDotnetTypeRefhashMd5 () const
 
std::string getDotnetTypeRefhashSha256 () const
 
std::size_t getNumberOfStoredDotnetImportedClasses () const
 
std::string getDotnetMetadataHeaderAddressStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetMetadataStreamOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetMetadataStreamSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetStringStreamOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetStringStreamSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetBlobStreamOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetBlobStreamSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetGuidStreamOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetGuidStreamSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetUserStringStreamOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getDotnetUserStringStreamSizeStr (std::ios_base &(*format)(std::ios_base &)) const
 
const std::string & getDotnetModuleVersionId () const
 
const std::string & getDotnetTypeLibId () const
 
const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass > > & getDotnetDefinedClassList () const
 
const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass > > & getDotnetImportedClassList () const
 
bool hasDotnetMetadataStream () const
 
bool hasDotnetStringStream () const
 
bool hasDotnetBlobStream () const
 
bool hasDotnetGuidStream () const
 
bool hasDotnetUserStringStream () const
 
bool hasDotnetTypeLibId () const
 
bool hasDotnetTypeRefTableRecords () const
 
Getters of @a anomalies
std::size_t getNumberOfAnomalies () const
 
std::string getAnomalyIdentifier (std::size_t position) const
 
std::string getAnomalyDescription (std::size_t position) const
 
Setters
void setStatus (retdec::cpdetect::ReturnCode state)
 
void setPathToFile (const std::string &filepath)
 
void setCrc32 (const std::string &fileCrc32)
 
void setMd5 (const std::string &fileMd5)
 
void setSha256 (const std::string &fileSha256)
 
void setSectionTableCrc32 (const std::string &sCrc32)
 
void setSectionTableMd5 (const std::string &sMd5)
 
void setSectionTableSha256 (const std::string &sSha256)
 
void setFileFormatEnum (retdec::fileformat::Format format)
 
void setFileFormat (const std::string &fileformat)
 
void setFileClass (const std::string &fileclass)
 
void setFileType (const std::string &filetype)
 
void setTargetArchitecture (const std::string &architecture)
 
void setEndianness (const std::string &fileEndianness)
 
void setManifest (const std::string &fileManifest)
 
void setCompactManifest (const std::string &fileCompactManifest)
 
void setTimeStamp (const std::string &timestamp)
 
void setFileStatus (const std::string &fileStatus)
 
void setFileVersion (const std::string &version)
 
void setFileHeaderVersion (const std::string &version)
 
void setOsAbi (const std::string &osabi)
 
void setOsAbiVersion (const std::string &abiversion)
 
void setFileFlagsSize (unsigned long long size)
 
void setFileFlags (unsigned long long flagsArray)
 
void setDllFlagsSize (unsigned long long size)
 
void setDllFlags (unsigned long long flagsArray)
 
void setNumberOfBitsInByte (unsigned long long bitsInByte)
 
void setNumberOfBitsInWord (unsigned long long bitsInWord)
 
void setFileHeaderSize (unsigned long long size)
 
void setSegmentTableOffset (unsigned long long offset)
 
void setSegmentTableEntrySize (unsigned long long entrySize)
 
void setSegmentTableSize (unsigned long long tableSize)
 
void setNumberOfDeclaredSegments (unsigned long long noOfSegments)
 
void setSectionTableOffset (unsigned long long offset)
 
void setSectionTableEntrySize (unsigned long long entrySize)
 
void setSectionTableSize (unsigned long long tableSize)
 
void setNumberOfDeclaredSections (unsigned long long noOfSections)
 
void setCoffFileHeaderSize (unsigned long long headerSize)
 
void setOptionalHeaderSize (unsigned long long headerSize)
 
void setChecksum (unsigned long long fileChecksum)
 
void setStackReserveSize (unsigned long long size)
 
void setStackCommitSize (unsigned long long size)
 
void setHeapReserveSize (unsigned long long size)
 
void setHeapCommitSize (unsigned long long size)
 
void setNumberOfDeclaredDataDirectories (unsigned long long noOfDirectories)
 
void setNumberOfDeclaredSymbolTables (unsigned long long noOfTables)
 
void setOverlayOffset (unsigned long long offset)
 
void setOverlaySize (unsigned long long size)
 
void setOverlayEntropy (double entropy)
 
void setRichHeader (const retdec::fileformat::RichHeader *rHeader)
 
void setVisualBasicInfo (const retdec::fileformat::VisualBasicInfo *vbInfo)
 
void setVisualBasicUsed (bool set)
 
void setPdbType (const std::string &sType)
 
void setPdbPath (const std::string &sPath)
 
void setPdbGuid (const std::string &sGuid)
 
void setPdbAge (std::size_t sAge)
 
void setPdbTimeStamp (std::size_t sTimeStamp)
 
void setImportTable (const retdec::fileformat::ImportTable *sTable)
 
void setExportTable (const retdec::fileformat::ExportTable *sTable)
 
void setResourceTable (const retdec::fileformat::ResourceTable *sTable)
 
void setStrings (const std::vector< retdec::fileformat::String > *sStrings)
 
void setCertificateTable (const retdec::fileformat::CertificateTable *sTable)
 
void setTlsInfo (const retdec::fileformat::TlsInfo *info)
 
void setSignatureVerified (bool verified)
 
void setLoadedBaseAddress (unsigned long long baseAddress)
 
void setLoaderStatusMessage (const std::string &statusMessage)
 
void setLoaderErrorInfo (const retdec::fileformat::LoaderErrorInfo &ldrErrInfo)
 
void setDotnetUsed (bool set)
 
void setDotnetRuntimeVersion (std::uint64_t majorVersion, std::uint64_t minorVersion)
 
void setDotnetMetadataHeaderAddress (std::uint64_t address)
 
void setDotnetMetadataStreamInfo (std::uint64_t streamOffset, std::uint64_t streamSize)
 
void setDotnetStringStreamInfo (std::uint64_t streamOffset, std::uint64_t streamSize)
 
void setDotnetBlobStreamInfo (std::uint64_t streamOffset, std::uint64_t streamSize)
 
void setDotnetGuidStreamInfo (std::uint64_t streamOffset, std::uint64_t streamSize)
 
void setDotnetUserStringStreamInfo (std::uint64_t streamOffset, std::uint64_t streamSize)
 
void setDotnetModuleVersionId (const std::string &moduleVersionId)
 
void setDotnetTypeLibId (const std::string &typeLibId)
 
void setDotnetDefinedClassList (const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass >> &dotnetClassList)
 
void setDotnetImportedClassList (const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass >> &dotnetClassList)
 
void setDotnetTypeRefhashCrc32 (const std::string &crc32)
 
void setDotnetTypeRefhashMd5 (const std::string &md5)
 
void setDotnetTypeRefhashSha256 (const std::string &sha256)
 
void setAnomalies (const std::vector< std::pair< std::string, std::string >> &anom)
 
Other methods
void addFileFlagsDescriptor (std::string descriptor, std::string abbreviation)
 
void clearFileFlagsDescriptors ()
 
void addDllFlagsDescriptor (std::string descriptor, std::string abbreviation)
 
void clearDllFlagsDescriptors ()
 
void addDataDirectory (DataDirectory &dataDirectory)
 
void addSegment (FileSegment &fileSegment)
 
void addSection (FileSection &fileSection)
 
void addSymbolTable (SymbolTable &table)
 
void addRelocationTable (RelocationTable &table)
 
void addDynamicSection (DynamicSection &section)
 
void addElfNotes (ElfNotes &notes)
 
void addFileMapEntry (const FileMapEntry &entry)
 
void addAuxVectorEntry (const std::string &name, std::size_t value)
 
void addCryptoPattern (Pattern &pattern)
 
void removeRedundantCryptoRules ()
 
void sortCryptoPatternMatches ()
 
void addMalwarePattern (Pattern &pattern)
 
void sortMalwarePatternMatches ()
 
void addOtherPattern (Pattern &pattern)
 
void sortOtherPatternMatches ()
 
void addTool (retdec::cpdetect::DetectResult &tool)
 
void addLoadedSegment (const LoadedSegment &segment)
 

Public Attributes

retdec::cpdetect::ToolInformation toolInfo
 detected tools More...
 
std::vector< std::string > messages
 error, warning and other messages More...
 

Private Attributes

retdec::cpdetect::ReturnCode status = retdec::cpdetect::ReturnCode::OK
 
std::string filePath
 path to input file More...
 
std::string crc32
 CRC32 of input file. More...
 
std::string md5
 MD5 of input file. More...
 
std::string sha256
 SHA256 of input file. More...
 
std::string secCrc32
 CRC32 of section table. More...
 
std::string secMd5
 MD5 of section table. More...
 
std::string secSha256
 
retdec::fileformat::Format fileFormatEnum = retdec::fileformat::Format::UNKNOWN
 format of input file in enumeration representation More...
 
std::string fileFormat
 format of input file in string representation More...
 
std::string fileClass
 class of file More...
 
std::string fileType
 type of file (e.g. executable file) More...
 
std::string targetArchitecture
 target architecture More...
 
std::string endianness
 endianness More...
 
std::string manifest
 XML manifest. More...
 
std::string compactManifest
 compact version of XML manifest More...
 
FileHeader header
 file header More...
 
RichHeader richHeader
 rich header More...
 
VisualBasicInfo visualBasicInfo
 visual basic information More...
 
PdbInfo pdbInfo
 information about related PDB file More...
 
ImportTable importTable
 information about imports More...
 
ExportTable exportTable
 information about exports More...
 
ResourceTable resourceTable
 information about resources in input file More...
 
CertificateTable certificateTable
 information about certificates More...
 
TlsInfo tlsInfo
 information about thread-local storage More...
 
ElfCore elfCoreInfo
 information about ELF core files More...
 
LoaderInfo loaderInfo
 information about loaded image More...
 
std::vector< DataDirectorydirectories
 information about data directories More...
 
std::vector< FileSegmentsegments
 information about segments in file More...
 
std::vector< FileSectionsections
 information about sections in file More...
 
std::vector< SymbolTablesymbolTables
 symbol tables More...
 
std::vector< RelocationTablerelocationTables
 relocation tables More...
 
std::vector< DynamicSectiondynamicSections
 information about dynamic sections More...
 
std::vector< ElfNoteselfNotes
 information about ELF sections More...
 
std::vector< PatterncryptoPatterns
 detected crypto patterns More...
 
std::vector< PatternmalwarePatterns
 detected malware patterns More...
 
std::vector< PatternotherPatterns
 other detected patterns More...
 
Strings strings
 detected strings More...
 
std::optional< bool > signatureVerified
 indicates whether the signature is present and if it is verified More...
 
DotnetInfo dotnetInfo
 .NET information More...
 
std::string failedDepsList
 
std::vector< std::pair< std::string, std::string > > anomalies
 If non-empty, trhis contains the name of the dependency list that failed to load. More...
 

Detailed Description

Class representing information about file

Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for numeric types. Methods with index parameters does not perform control of indexes.

Member Function Documentation

◆ addAuxVectorEntry()

void retdec::fileinfo::FileInformation::addAuxVectorEntry ( const std::string &  name,
std::size_t  value 
)

◆ addCryptoPattern()

void retdec::fileinfo::FileInformation::addCryptoPattern ( Pattern pattern)

Add crypto pattern

Parameters
patternCrypto pattern

◆ addDataDirectory()

void retdec::fileinfo::FileInformation::addDataDirectory ( DataDirectory dataDirectory)

Add data directory

Parameters
dataDirectoryFile data directory

◆ addDllFlagsDescriptor()

void retdec::fileinfo::FileInformation::addDllFlagsDescriptor ( std::string  descriptor,
std::string  abbreviation 
)

Add DLL flag descriptor

Parameters
descriptorDescriptor (full description of flag)
abbreviationAbbreviation (short description of flag)

◆ addDynamicSection()

void retdec::fileinfo::FileInformation::addDynamicSection ( DynamicSection section)

Add dynamic section

Parameters
sectionDynamic section

◆ addElfNotes()

void retdec::fileinfo::FileInformation::addElfNotes ( ElfNotes notes)

Add ELF notes

Parameters
notesLoaded ELF notes

◆ addFileFlagsDescriptor()

void retdec::fileinfo::FileInformation::addFileFlagsDescriptor ( std::string  descriptor,
std::string  abbreviation 
)

Add file flag descriptor

Parameters
descriptorDescriptor (full description of flag)
abbreviationAbbreviation (short description of flag)

◆ addFileMapEntry()

void retdec::fileinfo::FileInformation::addFileMapEntry ( const FileMapEntry entry)

◆ addLoadedSegment()

void retdec::fileinfo::FileInformation::addLoadedSegment ( const LoadedSegment segment)

Adds loaded segment.

Parameters
segmentLoaded segment to add.

◆ addMalwarePattern()

void retdec::fileinfo::FileInformation::addMalwarePattern ( Pattern pattern)

Add malware pattern

Parameters
patternMalware pattern

◆ addOtherPattern()

void retdec::fileinfo::FileInformation::addOtherPattern ( Pattern pattern)

Add other pattern

Parameters
patternOther pattern

◆ addRelocationTable()

void retdec::fileinfo::FileInformation::addRelocationTable ( RelocationTable table)

Add relocation table

Parameters
tableRelocation table

◆ addSection()

void retdec::fileinfo::FileInformation::addSection ( FileSection fileSection)

Add section

Parameters
fileSectionFile section

◆ addSegment()

void retdec::fileinfo::FileInformation::addSegment ( FileSegment fileSegment)

Add segment

Parameters
fileSegmentSegment of file

◆ addSymbolTable()

void retdec::fileinfo::FileInformation::addSymbolTable ( SymbolTable table)

Add symbol table

Parameters
tableSymbol table

◆ addTool()

void retdec::fileinfo::FileInformation::addTool ( retdec::cpdetect::DetectResult tool)

Add information about detected tool to the list

Parameters
toolInformation about detected tool

◆ clearDllFlagsDescriptors()

void retdec::fileinfo::FileInformation::clearDllFlagsDescriptors ( )

Clear DLL flags descriptors

◆ clearFileFlagsDescriptors()

void retdec::fileinfo::FileInformation::clearFileFlagsDescriptors ( )

Clear file flags descriptors

◆ getAnomalyDescription()

std::string retdec::fileinfo::FileInformation::getAnomalyDescription ( std::size_t  position) const

Get description of anomaly

Parameters
positionIndex of selected anomaly (indexed from 0)
Returns
Description of selected anomaly

◆ getAnomalyIdentifier()

std::string retdec::fileinfo::FileInformation::getAnomalyIdentifier ( std::size_t  position) const

Get identifier of anomaly

Parameters
positionIndex of selected anomaly (indexed from 0)
Returns
Identifier of selected anomaly

◆ getCertificateIssuerCommonName()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerCommonName ( std::size_t  index) const

Get certificate issuer common name

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Common name of selected certificate issuer

◆ getCertificateIssuerCountry()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerCountry ( std::size_t  index) const

Get certificate issuer country

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Country of selected certificate issuer

◆ getCertificateIssuerEmailAddress()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerEmailAddress ( std::size_t  index) const

Get certificate issuer email address

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Email address of selected certificate issuer

◆ getCertificateIssuerGenerationQualifier()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerGenerationQualifier ( std::size_t  index) const

Get certificate issuer generation qualifier

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Generation qualifier of selected certificate issuer

◆ getCertificateIssuerGivenName()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerGivenName ( std::size_t  index) const

Get certificate issuer given name

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Given name of selected certificate issuer

◆ getCertificateIssuerInitials()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerInitials ( std::size_t  index) const

Get certificate issuer initials

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Initials of selected certificate issuer

◆ getCertificateIssuerLocality()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerLocality ( std::size_t  index) const

Get certificate issuer locality

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Locality of selected certificate issuer

◆ getCertificateIssuerNameQualifier()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerNameQualifier ( std::size_t  index) const

Get certificate issuer name qualifier

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Name qualifier of selected certificate issuer

◆ getCertificateIssuerOrganization()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerOrganization ( std::size_t  index) const

Get certificate issuer organization

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Organization of selected certificate issuer

◆ getCertificateIssuerOrganizationalUnit()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerOrganizationalUnit ( std::size_t  index) const

Get certificate issuer organizational unit

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Organizational unit of selected certificate issuer

◆ getCertificateIssuerPseudonym()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerPseudonym ( std::size_t  index) const

Get certificate issuer pseudonym

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Pseudonym of selected certificate issuer

◆ getCertificateIssuerRawStr()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerRawStr ( std::size_t  index) const

Get certificate issuer

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Issuer of selected certificate

◆ getCertificateIssuerSerialNumber()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerSerialNumber ( std::size_t  index) const

Get certificate issuer serial number

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Serial number of selected certificate issuer

◆ getCertificateIssuerState()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerState ( std::size_t  index) const

Get certificate issuer state

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
State of selected certificate issuer

◆ getCertificateIssuerSurname()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerSurname ( std::size_t  index) const

Get certificate issuer surname

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Surname of selected certificate issuer

◆ getCertificateIssuerTitle()

std::string retdec::fileinfo::FileInformation::getCertificateIssuerTitle ( std::size_t  index) const

Get certificate issuer title

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Title of selected certificate issuer

◆ getCertificatePublicKey()

std::string retdec::fileinfo::FileInformation::getCertificatePublicKey ( std::size_t  index) const

Get certificate public key

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Public key

◆ getCertificatePublicKeyAlgorithm()

std::string retdec::fileinfo::FileInformation::getCertificatePublicKeyAlgorithm ( std::size_t  index) const

Get certificate public key algorithm

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Public key algorithm

◆ getCertificateSerialNumber()

std::string retdec::fileinfo::FileInformation::getCertificateSerialNumber ( std::size_t  index) const

Get certificate serial number

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Serial number

◆ getCertificateSha1Digest()

std::string retdec::fileinfo::FileInformation::getCertificateSha1Digest ( std::size_t  index) const

Get certificate SHA1 digest

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
SHA1 digest

◆ getCertificateSha256Digest()

std::string retdec::fileinfo::FileInformation::getCertificateSha256Digest ( std::size_t  index) const

Get certificate SHA256 digest

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
SHA256 digest

◆ getCertificateSignatureAlgorithm()

std::string retdec::fileinfo::FileInformation::getCertificateSignatureAlgorithm ( std::size_t  index) const

Get certificate signature algorithm

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Signature algorithm

◆ getCertificateSubjectCommonName()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectCommonName ( std::size_t  index) const

Get certificate subject common name

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Common name of selected certificate subject

◆ getCertificateSubjectCountry()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectCountry ( std::size_t  index) const

Get certificate subject country

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Country of selected certificate subject

◆ getCertificateSubjectEmailAddress()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectEmailAddress ( std::size_t  index) const

Get certificate subject email address

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Email address of selected certificate subject

◆ getCertificateSubjectGenerationQualifier()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectGenerationQualifier ( std::size_t  index) const

Get certificate subject generation qualifier

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Generation qualifier of selected certificate subject

◆ getCertificateSubjectGivenName()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectGivenName ( std::size_t  index) const

Get certificate subject given name

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Given name of selected certificate subject

◆ getCertificateSubjectInitials()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectInitials ( std::size_t  index) const

Get certificate subject initials

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Initials of selected certificate subject

◆ getCertificateSubjectLocality()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectLocality ( std::size_t  index) const

Get certificate subject locality

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Locality of selected certificate subject

◆ getCertificateSubjectNameQualifier()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectNameQualifier ( std::size_t  index) const

Get certificate subject name qualifier

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Name qualifier of selected certificate subject

◆ getCertificateSubjectOrganization()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectOrganization ( std::size_t  index) const

Get certificate subject organization

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Organization of selected certificate subject

◆ getCertificateSubjectOrganizationalUnit()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectOrganizationalUnit ( std::size_t  index) const

Get certificate subject organizational unit

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Organizational unit of selected certificate subject

◆ getCertificateSubjectPseudonym()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectPseudonym ( std::size_t  index) const

Get certificate subject pseudonym

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Pseudonym of selected certificate subject

◆ getCertificateSubjectRawStr()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectRawStr ( std::size_t  index) const

Get certificate subject

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Subject of selected certificate

◆ getCertificateSubjectSerialNumber()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectSerialNumber ( std::size_t  index) const

Get certificate subject serial number

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Serial number of selected certificate subject

◆ getCertificateSubjectState()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectState ( std::size_t  index) const

Get certificate subject state

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
State of selected certificate subject

◆ getCertificateSubjectSurname()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectSurname ( std::size_t  index) const

Get certificate subject surname

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Surname of selected certificate subject

◆ getCertificateSubjectTitle()

std::string retdec::fileinfo::FileInformation::getCertificateSubjectTitle ( std::size_t  index) const

Get certificate subject title

Parameters
indexIndex of selected certificate (indexed from 0)
Returns
Title of selected certificate subject

◆ getCertificateTableCounterSignerCertificateIndex()

std::size_t retdec::fileinfo::FileInformation::getCertificateTableCounterSignerCertificateIndex ( ) const

Get date since when is certificate valid

Returns
Date since when is certificate valid

◆ getCertificateTableSignerCertificateIndex()

std::size_t retdec::fileinfo::FileInformation::getCertificateTableSignerCertificateIndex ( ) const

Get index of the certificate of the counter-signer. Returned value should not be used without prior checking of whether the table has counter-signer certificate.

Returns
Index of the counter-signer's certificate

◆ getCertificateValidSince()

std::string retdec::fileinfo::FileInformation::getCertificateValidSince ( std::size_t  index) const

Get date since when is certificate valid

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Date since when is certificate valid

◆ getCertificateValidUntil()

std::string retdec::fileinfo::FileInformation::getCertificateValidUntil ( std::size_t  index) const

Get date until when is certificate valid

Parameters
indexIndex of selected certificate from table (indexed from 0)
Returns
Date until when is certificate valid

◆ getChecksumStr()

std::string retdec::fileinfo::FileInformation::getChecksumStr ( ) const

Get checksum of file

Returns
Checksum of file

◆ getCoffFileHeaderSizeStr()

std::string retdec::fileinfo::FileInformation::getCoffFileHeaderSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of COFF file header

Returns
Size of COFF file header

◆ getCompactManifest()

std::string retdec::fileinfo::FileInformation::getCompactManifest ( ) const

Get compact version of manifest

Returns
Compact version of manifest

◆ getCrc32()

std::string retdec::fileinfo::FileInformation::getCrc32 ( ) const

Get CRC32 of input file

Returns
CRC32 of input file

◆ getCryptoPattern()

const Pattern * retdec::fileinfo::FileInformation::getCryptoPattern ( std::size_t  position) const

Get selected crypto pattern

Parameters
positionIndex of pattern in internal list of crypto patterns (0..x)
Returns
Selected crypto pattern or nullptr if index of pattern is invalid

◆ getCryptoPatterns()

const std::vector< Pattern > & retdec::fileinfo::FileInformation::getCryptoPatterns ( ) const

Get all detected crypto patterns

Returns
All detected crypto patterns

◆ getDataDirectoryAddressStr()

std::string retdec::fileinfo::FileInformation::getDataDirectoryAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get start address of data directory

Parameters
positionPosition of directory in internal list of directories (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Start address of data directory

◆ getDataDirectorySizeStr()

std::string retdec::fileinfo::FileInformation::getDataDirectorySizeStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get size of data directory

Parameters
positionPosition of directory in internal list of directories (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Size of data directory

◆ getDataDirectoryType()

std::string retdec::fileinfo::FileInformation::getDataDirectoryType ( std::size_t  position) const

Get type of data directory

Parameters
positionPosition of directory in internal list of directories (0..x)
Returns
Type of data directory

◆ getDepsListFailedToLoad()

std::string retdec::fileinfo::FileInformation::getDepsListFailedToLoad ( ) const

Get the name of the dependency file that failed to load

Returns
Name of the failed-to-load dependency listfile

◆ getDllFlags()

unsigned long long retdec::fileinfo::FileInformation::getDllFlags ( ) const

Get DLL flags

Returns
DLL flags as one number

◆ getDllFlagsDescriptors()

void retdec::fileinfo::FileInformation::getDllFlagsDescriptors ( std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get DLL flags descriptors and its abbreviations

Parameters
descVector for save descriptors
abbVector for save abbreviations of descriptors

It is guaranteed that the number of stored descriptors and abbreviations are the same

◆ getDllFlagsSize()

unsigned long long retdec::fileinfo::FileInformation::getDllFlagsSize ( ) const

Get DLL flags size

Returns
Number of DLL flags

◆ getDllFlagsStr()

std::string retdec::fileinfo::FileInformation::getDllFlagsStr ( ) const

Get DLL flags

Returns
DLL flags as string

◆ getDotnetBlobStreamOffsetStr()

std::string retdec::fileinfo::FileInformation::getDotnetBlobStreamOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET blob stream offset in string representation in specified format.

Parameters
formatFormat.
Returns
Blob stream offset in string representation.

◆ getDotnetBlobStreamSizeStr()

std::string retdec::fileinfo::FileInformation::getDotnetBlobStreamSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET blob stream size in string representation in specified format.

Parameters
formatFormat.
Returns
Blob stream size in string representation.

◆ getDotnetDefinedClassList()

const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass > > & retdec::fileinfo::FileInformation::getDotnetDefinedClassList ( ) const

Returns .NET defined class list.

Returns
Defined .NET classes.

◆ getDotnetGuidStreamOffsetStr()

std::string retdec::fileinfo::FileInformation::getDotnetGuidStreamOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET GUID stream offset in string representation in specified format.

Parameters
formatFormat.
Returns
GUID stream offset in string representation.

◆ getDotnetGuidStreamSizeStr()

std::string retdec::fileinfo::FileInformation::getDotnetGuidStreamSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET GUID stream size in string representation in specified format.

Parameters
formatFormat.
Returns
GUID stream size in string representation.

◆ getDotnetImportedClassLibName()

std::string retdec::fileinfo::FileInformation::getDotnetImportedClassLibName ( std::size_t  position) const

Get imported class library name

Parameters
positionIndex of selected imported class (indexed from 0)
Returns
Library name of selected imported class

◆ getDotnetImportedClassList()

const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass > > & retdec::fileinfo::FileInformation::getDotnetImportedClassList ( ) const

Returns .NET imported class list.

Returns
Imported .NET classes.

◆ getDotnetImportedClassName()

std::string retdec::fileinfo::FileInformation::getDotnetImportedClassName ( std::size_t  position) const

Get imported class name

Parameters
positionIndex of selected imported class (indexed from 0)
Returns
Name of selected imported class

◆ getDotnetImportedClassNameSpace()

std::string retdec::fileinfo::FileInformation::getDotnetImportedClassNameSpace ( std::size_t  position) const

Get imported class namespace

Parameters
positionIndex of selected imported class (indexed from 0)
Returns
Namespace of selected imported class

◆ getDotnetImportedClassNameWithParentClassIndex()

std::string retdec::fileinfo::FileInformation::getDotnetImportedClassNameWithParentClassIndex ( std::size_t  position) const

Get imported class name with parent class presentation index

Parameters
positionIndex of selected imported class (indexed from 0)
Returns
Name of selected imported class with parent class presentation index

◆ getDotnetImportedClassNestedName()

std::string retdec::fileinfo::FileInformation::getDotnetImportedClassNestedName ( std::size_t  position) const

Get imported class nested name

Parameters
positionIndex of selected imported class (indexed from 0)
Returns
Nested name of selected imported class

◆ getDotnetMetadataHeaderAddressStr()

std::string retdec::fileinfo::FileInformation::getDotnetMetadataHeaderAddressStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET metadata header address in string representation in specified format.

Parameters
formatFormat.
Returns
Metadata header address in string representation.

◆ getDotnetMetadataStreamOffsetStr()

std::string retdec::fileinfo::FileInformation::getDotnetMetadataStreamOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET metadata stream offset in string representation in specified format.

Parameters
formatFormat.
Returns
Metadata stream offset in string representation.

◆ getDotnetMetadataStreamSizeStr()

std::string retdec::fileinfo::FileInformation::getDotnetMetadataStreamSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET metadata stream size in string representation in specified format.

Parameters
formatFormat.
Returns
Metadata stream size in string representation.

◆ getDotnetModuleVersionId()

const std::string & retdec::fileinfo::FileInformation::getDotnetModuleVersionId ( ) const

Returns .NET module version ID.

Returns
Module version ID.

◆ getDotnetRuntimeVersion()

const std::string & retdec::fileinfo::FileInformation::getDotnetRuntimeVersion ( ) const

Returns .NET runtime version.

Returns
.NET runtime version.

◆ getDotnetStringStreamOffsetStr()

std::string retdec::fileinfo::FileInformation::getDotnetStringStreamOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET string stream offset in string representation in specified format.

Parameters
formatFormat.
Returns
String stream offset in string representation.

◆ getDotnetStringStreamSizeStr()

std::string retdec::fileinfo::FileInformation::getDotnetStringStreamSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET string stream size in string representation in specified format.

Parameters
formatFormat.
Returns
String stream size in string representation.

◆ getDotnetTypeLibId()

const std::string & retdec::fileinfo::FileInformation::getDotnetTypeLibId ( ) const

Returns .NET TypeLib ID.

Returns
TypeLib ID.

◆ getDotnetTypeRefhashCrc32()

std::string retdec::fileinfo::FileInformation::getDotnetTypeRefhashCrc32 ( ) const

Get dotnet typeref hash as CRC32

Returns
Typeref hash as CRC32

◆ getDotnetTypeRefhashMd5()

std::string retdec::fileinfo::FileInformation::getDotnetTypeRefhashMd5 ( ) const

Get dotnet typeref hash as MD5

Returns
Typeref hash as MD5

◆ getDotnetTypeRefhashSha256()

std::string retdec::fileinfo::FileInformation::getDotnetTypeRefhashSha256 ( ) const

Get dotnet typeref hash as SHA256

Returns
Typeref hash as SHA256

◆ getDotnetUserStringStreamOffsetStr()

std::string retdec::fileinfo::FileInformation::getDotnetUserStringStreamOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET user string stream offset in string representation in specified format.

Parameters
formatFormat.
Returns
GUID stream offset in string representation.

◆ getDotnetUserStringStreamSizeStr()

std::string retdec::fileinfo::FileInformation::getDotnetUserStringStreamSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Returns .NET user string stream size in string representation in specified format.

Parameters
formatFormat.
Returns
GUID stream size in string representation.

◆ getDynamicEntryDescription()

std::string retdec::fileinfo::FileInformation::getDynamicEntryDescription ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get description related to selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Description related to selected dynamic entry

◆ getDynamicEntryFlags()

unsigned long long retdec::fileinfo::FileInformation::getDynamicEntryFlags ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get flags of selected dynamic entry as number

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Flags of selected dynamic entry as number

◆ getDynamicEntryFlagsDescriptors()

void retdec::fileinfo::FileInformation::getDynamicEntryFlagsDescriptors ( std::size_t  sectionIndex,
std::size_t  entryIndex,
std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get flags descriptors of selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
descVector for save descriptors
abbVector for save abbreviations of descriptors

◆ getDynamicEntryFlagsSize()

unsigned long long retdec::fileinfo::FileInformation::getDynamicEntryFlagsSize ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get number of flags in selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Number of flags in selected dynamic entry

◆ getDynamicEntryFlagsStr()

std::string retdec::fileinfo::FileInformation::getDynamicEntryFlagsStr ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get flags of selected dynamic entry as string

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Flags of selected dynamic entry as string

◆ getDynamicEntryType()

std::string retdec::fileinfo::FileInformation::getDynamicEntryType ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get type of selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Type of selected dynamic entry

◆ getDynamicEntryValueStr()

std::string retdec::fileinfo::FileInformation::getDynamicEntryValueStr ( std::size_t  sectionIndex,
std::size_t  entryIndex,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get value of selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Value of selected dynamic entry

◆ getDynamicSectionName()

std::string retdec::fileinfo::FileInformation::getDynamicSectionName ( std::size_t  position) const

Get name of selected dynamic section

Parameters
positionPosition of dynamic section in internal list of dynamic sections (0..x)
Returns
Name of dynamic section

◆ getElfCoreInfo()

const ElfCore & retdec::fileinfo::FileInformation::getElfCoreInfo ( ) const

Get ELF core info

Returns
ELF core info

◆ getElfNotes()

const std::vector< ElfNotes > & retdec::fileinfo::FileInformation::getElfNotes ( ) const

Get ELF notes

Returns
vector with ELF notes

◆ getEndianness()

std::string retdec::fileinfo::FileInformation::getEndianness ( ) const

Get endianness

Returns
File endianness

◆ getEpAddressStr()

std::string retdec::fileinfo::FileInformation::getEpAddressStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get EP virtual address as string

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Virtual address of EP in string representation

◆ getEpBytes()

std::string retdec::fileinfo::FileInformation::getEpBytes ( ) const

Get bytes on EP

Returns
Bytes on entry point in hexadecimal representation

◆ getEpOffsetStr()

std::string retdec::fileinfo::FileInformation::getEpOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get EP offset as string

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Offset of EP in string representation

◆ getEpSectionIndex()

std::string retdec::fileinfo::FileInformation::getEpSectionIndex ( ) const

Get index of entry point section

Returns
Index of entry point section

◆ getEpSectionName()

std::string retdec::fileinfo::FileInformation::getEpSectionName ( ) const

Get name of entry point section

Returns
Name of entry point section

◆ getExphashCrc32()

std::string retdec::fileinfo::FileInformation::getExphashCrc32 ( ) const

Get exphash as CRC32

Returns
Exphash as CRC32

◆ getExphashMd5()

std::string retdec::fileinfo::FileInformation::getExphashMd5 ( ) const

Get exphash as MD5

Returns
Exphash as MD5

◆ getExphashSha256()

std::string retdec::fileinfo::FileInformation::getExphashSha256 ( ) const

Get exphash as SHA256

Returns
Exphash as SHA256

◆ getExportAddressStr()

std::string retdec::fileinfo::FileInformation::getExportAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get export address

Parameters
positionIndex of selected export (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Address of selected export

◆ getExportName()

std::string retdec::fileinfo::FileInformation::getExportName ( std::size_t  position) const

Get export name

Parameters
positionIndex of selected export (indexed from 0)
Returns
Name of selected export

◆ getExportOrdinalNumberStr()

std::string retdec::fileinfo::FileInformation::getExportOrdinalNumberStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get export ordinal number

Parameters
positionIndex of selected export (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Ordinal number of selected export

◆ getFileClass()

std::string retdec::fileinfo::FileInformation::getFileClass ( ) const

Get fileClass

Returns
Detected file class

◆ getFileFlags()

unsigned long long retdec::fileinfo::FileInformation::getFileFlags ( ) const

Get flags

Returns
File flags as number

◆ getFileFlagsDescriptors()

void retdec::fileinfo::FileInformation::getFileFlagsDescriptors ( std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get file flags descriptors and its abbreviations

Parameters
descVector for save descriptors
abbVector for save abbreviations of descriptors

It is guaranteed that the number of stored descriptors and abbreviations are the same

◆ getFileFlagsSize()

unsigned long long retdec::fileinfo::FileInformation::getFileFlagsSize ( ) const

Get flags size

Returns
File flags size

◆ getFileFlagsStr()

std::string retdec::fileinfo::FileInformation::getFileFlagsStr ( ) const

Get flags

Returns
File flags as string

◆ getFileFormat()

std::string retdec::fileinfo::FileInformation::getFileFormat ( ) const

Get fileFormat

Returns
Detected file format in his string representation

◆ getFileFormatEnum()

Format retdec::fileinfo::FileInformation::getFileFormatEnum ( ) const

Get fileFormatEnum

Returns
Detected file format in his enum representation

◆ getFileHeaderSizeStr()

std::string retdec::fileinfo::FileInformation::getFileHeaderSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of file header

Returns
Size of file header

◆ getFileHeaderVersion()

std::string retdec::fileinfo::FileInformation::getFileHeaderVersion ( ) const

Get file header version

Returns
File header version

◆ getFileStatus()

std::string retdec::fileinfo::FileInformation::getFileStatus ( ) const

Get file status

Returns
File status (e.g. ROM image)

◆ getFileType()

std::string retdec::fileinfo::FileInformation::getFileType ( ) const

Get fileType

Returns
Detected file type

◆ getFileVersion()

std::string retdec::fileinfo::FileInformation::getFileVersion ( ) const

Get file version

Returns
File version

◆ getHeapCommitSizeStr()

std::string retdec::fileinfo::FileInformation::getHeapCommitSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of the local heap space to commit

Returns
Size of the local heap space to commit

◆ getHeapReserveSizeStr()

std::string retdec::fileinfo::FileInformation::getHeapReserveSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of the local heap space to reserve

Returns
Size of the local heap space to reserve

◆ getImageBaseStr()

std::string retdec::fileinfo::FileInformation::getImageBaseStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get image base address as string

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Image base address in string representation

◆ getImphashCrc32()

std::string retdec::fileinfo::FileInformation::getImphashCrc32 ( ) const

Get imphash as CRC32

Returns
Imphash as CRC32

◆ getImphashMd5()

std::string retdec::fileinfo::FileInformation::getImphashMd5 ( ) const

Get imphash as MD5

Returns
Imphash as MD5

◆ getImphashSha256()

std::string retdec::fileinfo::FileInformation::getImphashSha256 ( ) const

Get imphash as SHA256

Returns
Imphash as SHA256

◆ getImport()

const retdec::fileformat::Import * retdec::fileinfo::FileInformation::getImport ( std::size_t  position) const

Get import

Parameters
positionIndex of selected import (indexed from 0)
Returns
Name of selected import

◆ getImportAddressStr()

std::string retdec::fileinfo::FileInformation::getImportAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get import address

Parameters
positionIndex of selected import (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Address of selected import

◆ getImportLibraryName()

std::string retdec::fileinfo::FileInformation::getImportLibraryName ( std::size_t  position) const

Get import library name

Parameters
positionIndex of selected import (indexed from 0)
Returns
Name of library of selected import

◆ getImportName()

std::string retdec::fileinfo::FileInformation::getImportName ( std::size_t  position) const

Get import name

Parameters
positionIndex of selected import (indexed from 0)
Returns
Name of selected import

◆ getImportOrdinalNumberStr()

std::string retdec::fileinfo::FileInformation::getImportOrdinalNumberStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get import ordinal number

Parameters
positionIndex of selected import (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)m
Returns
Ordinal number of selected import

◆ getImportUsageType()

std::string retdec::fileinfo::FileInformation::getImportUsageType ( std::size_t  position) const

Get import type

Parameters
positionIndex of selected import (indexed from 0)
Returns
Symbol type

◆ getLoadedBaseAddressStr()

std::string retdec::fileinfo::FileInformation::getLoadedBaseAddressStr ( std::ios_base &(*)(std::ios_base &)  format) const

Gets loaded image base address.

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Loaded address in string form.

◆ getLoadedSegment()

const LoadedSegment & retdec::fileinfo::FileInformation::getLoadedSegment ( std::size_t  index) const

Gets loaded segment in the loaded image.

Parameters
indexIndex of the segment.
Returns
Loaded segment.

◆ getLoaderErrorInfo()

const retdec::fileformat::LoaderErrorInfo & retdec::fileinfo::FileInformation::getLoaderErrorInfo ( ) const

Gets loader error message.

Returns
The error message of the loader.

◆ getLoaderStatusMessage()

const std::string & retdec::fileinfo::FileInformation::getLoaderStatusMessage ( ) const

Gets loader status message.

Returns
The status message of the loader.

◆ getMalwarePattern()

const Pattern * retdec::fileinfo::FileInformation::getMalwarePattern ( std::size_t  position) const

Get selected malware pattern

Parameters
positionIndex of pattern in internal list of malware patterns (0..x)
Returns
Selected malware pattern or nullptr if index of pattern is invalid

◆ getMalwarePatterns()

const std::vector< Pattern > & retdec::fileinfo::FileInformation::getMalwarePatterns ( ) const

Get all detected malware patterns

Returns
All detected malware patterns

◆ getManifest()

std::string retdec::fileinfo::FileInformation::getManifest ( ) const

Get manifest

Returns
File manifest

◆ getMd5()

std::string retdec::fileinfo::FileInformation::getMd5 ( ) const

Get MD5 of input file

Returns
MD5 of input file

◆ getMissingDepName()

std::string retdec::fileinfo::FileInformation::getMissingDepName ( std::size_t  position) const

Get missing dependency name

Parameters
positionIndex of selected dependency (indexed from 0)
Returns
Name of the missing dependency

◆ getNumberOfAnomalies()

std::size_t retdec::fileinfo::FileInformation::getNumberOfAnomalies ( ) const

Get number of anomalies

Returns
Number of anomalies

◆ getNumberOfBitsInByteStr()

std::string retdec::fileinfo::FileInformation::getNumberOfBitsInByteStr ( ) const

Get number of bits in one byte

Returns
Number of bits in one byte

◆ getNumberOfBitsInWordStr()

std::string retdec::fileinfo::FileInformation::getNumberOfBitsInWordStr ( ) const

Get number of bits in one word

Returns
Number of bits in one word

◆ getNumberOfCryptoPatterns()

std::size_t retdec::fileinfo::FileInformation::getNumberOfCryptoPatterns ( ) const

Get number of stored crypto patterns

Returns
Number of stored crypto patterns

◆ getNumberOfDeclaredDataDirectoriesStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredDataDirectoriesStr ( ) const

Get declared number of data directories in file

Returns
Declared number of data directories in file

◆ getNumberOfDeclaredDynamicEntriesInSectionStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredDynamicEntriesInSectionStr ( std::size_t  position) const

Get number of entries in selected dynamic section

Parameters
positionPosition of dynamic section in internal list of dynamic sections (0..x)
Returns
Number of entries in selected dynamic section

Returned value indicates the declared number of entries stored in file section. This number may not be as large as result of method getNumberOfStoredDynamicEntriesInSection().

◆ getNumberOfDeclaredRelocationsInTableStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredRelocationsInTableStr ( std::size_t  position) const

Get number of delcared relocation entries in selected relocation table

Parameters
positionPosition of table in internal list of relocation tables (0..x)
Returns
Number of relocation entries in selected relocation table

Returned value indicates the declared number of relocations stored in file table. This number may not be as large as result of method getNumberOfStoredRelocationsInTable().

◆ getNumberOfDeclaredSectionsStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredSectionsStr ( ) const

Get declared number of sections in file

Returns
Declared number of sections in file

◆ getNumberOfDeclaredSegmentsStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredSegmentsStr ( ) const

Get declared number of segments in file

Returns
Declared number of segments in file

◆ getNumberOfDeclaredSymbolsInTableStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredSymbolsInTableStr ( std::size_t  position) const

Get number of symbols stored in symbol table

Parameters
positionPosition of table in internal list of symbol tables (0..x)
Returns
Number of symbols in selected symbol table

Returned value indicates the declared number of symbols stored in file table. This number may not be as large as result of method getNumberOfStoredSymbolsInTable().

◆ getNumberOfDeclaredSymbolTablesStr()

std::string retdec::fileinfo::FileInformation::getNumberOfDeclaredSymbolTablesStr ( ) const

Get declared number of symbol tables in file

Returns
Declared number of symbol tables in file

◆ getNumberOfDetectedCompilers()

std::size_t retdec::fileinfo::FileInformation::getNumberOfDetectedCompilers ( ) const

Get number of detected compilers or packers

Returns
Number of detected compilers or packers

◆ getNumberOfDetectedStrings()

std::size_t retdec::fileinfo::FileInformation::getNumberOfDetectedStrings ( ) const

Get number of detected strings in input file

Returns
Number of detected strings in input file

◆ getNumberOfDllFlagsDescriptors()

std::size_t retdec::fileinfo::FileInformation::getNumberOfDllFlagsDescriptors ( ) const

Get number of DLL flags descriptors

Returns
Number of DLL flags descriptors

◆ getNumberOfDynamicEntryFlagsDescriptors()

std::size_t retdec::fileinfo::FileInformation::getNumberOfDynamicEntryFlagsDescriptors ( std::size_t  sectionIndex,
std::size_t  entryIndex 
) const

Get number of flags descriptors of selected dynamic entry

Parameters
sectionIndexPosition of dynamic section in internal list of dynamic sections (0..x)
entryIndexPosition of dynamic entry in selected dynamic section
Returns
Number of flags descriptors of selected dynamic entry

◆ getNumberOfFileFlagsDescriptors()

std::size_t retdec::fileinfo::FileInformation::getNumberOfFileFlagsDescriptors ( ) const

Get number of file flags descriptors

Returns
Number of file flags descriptors

◆ getNumberOfLoadedSegments()

std::size_t retdec::fileinfo::FileInformation::getNumberOfLoadedSegments ( ) const

Gets the number of loaded segments.

Returns
Number of loaded segments.

◆ getNumberOfLoadedSegmentsStr()

std::string retdec::fileinfo::FileInformation::getNumberOfLoadedSegmentsStr ( std::ios_base &(*)(std::ios_base &)  format) const

Gets number of loaded segments.

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Number of loaded segments in string form.

◆ getNumberOfMalwarePatterns()

std::size_t retdec::fileinfo::FileInformation::getNumberOfMalwarePatterns ( ) const

Get number of stored crypto patterns

Returns
Number of stored crypto patterns

◆ getNumberOfMissingDeps()

std::size_t retdec::fileinfo::FileInformation::getNumberOfMissingDeps ( ) const

Get number of missing dependencies

Returns
Number of missing dependencies

◆ getNumberOfOtherPatterns()

std::size_t retdec::fileinfo::FileInformation::getNumberOfOtherPatterns ( ) const

Get number of stored crypto patterns

Returns
Number of stored crypto patterns

◆ getNumberOfSectionFlagsDescriptors()

std::size_t retdec::fileinfo::FileInformation::getNumberOfSectionFlagsDescriptors ( std::size_t  position) const

Get number of section flags descriptors

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Number of section flags descriptors

◆ getNumberOfSegmentFlagsDescriptors()

std::size_t retdec::fileinfo::FileInformation::getNumberOfSegmentFlagsDescriptors ( std::size_t  position) const

Get number of segment flags descriptors

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Number of segment flags descriptors

◆ getNumberOfStoredCertificates()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredCertificates ( ) const

Get number of stored certificates

Returns
Number of stored certificates

◆ getNumberOfStoredDataDirectories()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredDataDirectories ( ) const

Get number of stored data directories

Returns
Number of stored data directories

◆ getNumberOfStoredDotnetImportedClasses()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredDotnetImportedClasses ( ) const

Get number of stored imported dotnet classes

Returns
Number of stored imported dotnet classes

◆ getNumberOfStoredDynamicEntriesInSection()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredDynamicEntriesInSection ( std::size_t  position) const

Get number of entries in selected dynamic section

Parameters
positionPosition of dynamic section in internal list of dynamic sections (0..x)
Returns
Number of entries in selected dynamic section

Returned value indicates the number of entries really stored in selected dynamic section. This number may not be as large as result of method getNumberOfDeclaredDynamicEntriesInSection().

◆ getNumberOfStoredDynamicSections()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredDynamicSections ( ) const

Get number of stored dynamic sections

Returns
Number of stored dynamic sections

◆ getNumberOfStoredExports()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredExports ( ) const

Get number of stored exports

Returns
Number of stored exports

◆ getNumberOfStoredImportLibraries()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredImportLibraries ( ) const

Get number of stored import libraries

Returns
Number of stored import libraries

◆ getNumberOfStoredImports()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredImports ( ) const

Get number of stored imports

Returns
Number of stored imports

◆ getNumberOfStoredRecordsInRichHeader()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredRecordsInRichHeader ( ) const

Get number of records in rich header

Returns
Number of records in rich header

◆ getNumberOfStoredRelocationsInTable()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredRelocationsInTable ( std::size_t  position) const

Get number of relocation entries in selected relocation table

Parameters
positionPosition of table in internal list of relocation tables (0..x)
Returns
Number of relocation entries in selected relocation table

Returned value indicates the number of relocations really stored in selected table. This number may not be as large as result of method getNumberOfDeclaredRelocationsInTable().

◆ getNumberOfStoredRelocationsInTableStr()

std::string retdec::fileinfo::FileInformation::getNumberOfStoredRelocationsInTableStr ( std::size_t  position) const

Get number of stored relocation entries in selected relocation table

Parameters
positionPosition of table in internal list of relocation tables (0..x)
Returns
Number of relocation entries in selected relocation table

◆ getNumberOfStoredRelocationTables()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredRelocationTables ( ) const

Get number of stored relocation tables

Returns
Number of stored relocation tables

◆ getNumberOfStoredResources()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredResources ( ) const

Get number of resources stored in resource table

Returns
Number of resources stored in resource table

◆ getNumberOfStoredSections()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredSections ( ) const

Get number of stored sections

Returns
Number of stored sections

◆ getNumberOfStoredSegments()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredSegments ( ) const

Get number of stored segments

Returns
Number of stored segments

◆ getNumberOfStoredSymbolsInTable()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredSymbolsInTable ( std::size_t  position) const

Get number of symbols stored in symbol table

Parameters
positionPosition of table in internal list of symbol tables (0..x)
Returns
Number of symbols in selected symbol table

Returned value indicates the number of symbols really stored in selected dynamic section (in selected instance of class SymbolTable). This number may not be as large as result of method getNumberOfDeclaredSymbolsInTable().

◆ getNumberOfStoredSymbolTables()

std::size_t retdec::fileinfo::FileInformation::getNumberOfStoredSymbolTables ( ) const

Get number of stored symbol tables

Returns
Number of stored symbol tables

◆ getNumberOfVersionInfoLanguages()

std::size_t retdec::fileinfo::FileInformation::getNumberOfVersionInfoLanguages ( ) const

Get number of supported version info languages

Returns
Number of supported version info languages

◆ getNumberOfVersionInfoStrings()

std::size_t retdec::fileinfo::FileInformation::getNumberOfVersionInfoStrings ( ) const

Get number of version info strings

Returns
Number of version info strings

◆ getOptionalHeaderSizeStr()

std::string retdec::fileinfo::FileInformation::getOptionalHeaderSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of optional file header

Returns
Size of optional file header

◆ getOsAbi()

std::string retdec::fileinfo::FileInformation::getOsAbi ( ) const

Get operating system or ABI extension

Returns
Operating system or ABI extension

◆ getOsAbiVersion()

std::string retdec::fileinfo::FileInformation::getOsAbiVersion ( ) const

Get OS or ABI version

Returns
OS or ABI version

◆ getOtherPattern()

const Pattern * retdec::fileinfo::FileInformation::getOtherPattern ( std::size_t  position) const

Get selected other pattern

Parameters
positionIndex of pattern in internal list of other patterns (0..x)
Returns
Selected other pattern or nullptr if index of pattern is invalid

◆ getOtherPatterns()

const std::vector< Pattern > & retdec::fileinfo::FileInformation::getOtherPatterns ( ) const

Get all detected other patterns

Returns
All detected other patterns

◆ getOverlayEntropyStr()

std::string retdec::fileinfo::FileInformation::getOverlayEntropyStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get overlay entropy

Returns
Overlay entropy

◆ getOverlayOffsetStr()

std::string retdec::fileinfo::FileInformation::getOverlayOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get overlay offset

Returns
Overlay offset

◆ getOverlaySizeStr()

std::string retdec::fileinfo::FileInformation::getOverlaySizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get overlay size

Returns
Overlay size

◆ getPathToFile()

std::string retdec::fileinfo::FileInformation::getPathToFile ( ) const

Get path to input file

Returns
Path to input file

◆ getPdbAgeStr()

std::string retdec::fileinfo::FileInformation::getPdbAgeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get age of related PDB file

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Age of related PDB file

◆ getPdbGuid()

std::string retdec::fileinfo::FileInformation::getPdbGuid ( ) const

Get GUID of related PDB file

Returns
GUID of related PDB file

◆ getPdbPath()

std::string retdec::fileinfo::FileInformation::getPdbPath ( ) const

Get original path to related PDB file

Returns
Original path to related PDB file

◆ getPdbTimeStampStr()

std::string retdec::fileinfo::FileInformation::getPdbTimeStampStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get timestamp of related PDB file

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Timestamp of related PDB file

◆ getPdbType()

std::string retdec::fileinfo::FileInformation::getPdbType ( ) const

Get type of related PDB file

Returns
Type of related PDB file

◆ getRelocationAddendStr()

std::string retdec::fileinfo::FileInformation::getRelocationAddendStr ( std::size_t  tableIndex,
std::size_t  relocationIndex 
) const

Get relocation addend

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
Returns
Relocation addend

◆ getRelocationCalculatedValueStr()

std::string retdec::fileinfo::FileInformation::getRelocationCalculatedValueStr ( std::size_t  tableIndex,
std::size_t  relocationIndex 
) const

Get relocation calculated value

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
Returns
Relocation calculated value

◆ getRelocationOffsetStr()

std::string retdec::fileinfo::FileInformation::getRelocationOffsetStr ( std::size_t  tableIndex,
std::size_t  relocationIndex,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get relocation offset

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Relocation offset

◆ getRelocationSymbolName()

std::string retdec::fileinfo::FileInformation::getRelocationSymbolName ( std::size_t  tableIndex,
std::size_t  relocationIndex 
) const

Get name of symbol associated with relocation

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
Returns
Name of symbol associated with relocation

◆ getRelocationSymbolValueStr()

std::string retdec::fileinfo::FileInformation::getRelocationSymbolValueStr ( std::size_t  tableIndex,
std::size_t  relocationIndex 
) const

Get value of symbol associated with relocation

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
Returns
Value of symbol associated with relocation

◆ getRelocationTableAppliesSectionIndex()

std::string retdec::fileinfo::FileInformation::getRelocationTableAppliesSectionIndex ( std::size_t  position) const

Get index of section to which the relocation applies

Parameters
positionPosition of relocation table in internal list of relocation tables (0..x)
Returns
Index (in the midst of file sections) of section to which the relocation applies

◆ getRelocationTableAppliesSectionName()

std::string retdec::fileinfo::FileInformation::getRelocationTableAppliesSectionName ( std::size_t  position) const

Get name of section to which the relocation applies

Parameters
positionPosition of relocation table in internal list of relocation tables (0..x)
Returns
Name of section to which the relocation applies

◆ getRelocationTableAssociatedSymbolTableIndex()

std::string retdec::fileinfo::FileInformation::getRelocationTableAssociatedSymbolTableIndex ( std::size_t  position) const

Get index of symbol table associated with selected relocation table

Parameters
positionPosition of relocation table in internal list of relocation tables (0..x)
Returns
Index (in the midst of file sections) of symbol table associated with selected relocation table

◆ getRelocationTableAssociatedSymbolTableName()

std::string retdec::fileinfo::FileInformation::getRelocationTableAssociatedSymbolTableName ( std::size_t  position) const

Get name of symbol table associated with selected relocation table

Parameters
positionPosition of relocation table in internal list of relocation tables (0..x)
Returns
Name of symbol table associated with selected relocation table

◆ getRelocationTableName()

std::string retdec::fileinfo::FileInformation::getRelocationTableName ( std::size_t  position) const

Get name of relocation table

Parameters
positionPosition of relocation table in internal list of relocation tables (0..x)
Returns
Name of selected relocation table

◆ getRelocationTypeStr()

std::string retdec::fileinfo::FileInformation::getRelocationTypeStr ( std::size_t  tableIndex,
std::size_t  relocationIndex 
) const

Get relocation type

Parameters
tableIndexPosition of table in internal list of relocation tables (0..x)
relocationIndexPosition of relocation in selected relocation table (0..x)
Returns
Relocation type

◆ getResourceCrc32()

std::string retdec::fileinfo::FileInformation::getResourceCrc32 ( std::size_t  index) const

Get CRC32 of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
CRC32 of selected resource

◆ getResourceIconhashCrc32()

std::string retdec::fileinfo::FileInformation::getResourceIconhashCrc32 ( ) const

Get iconhash as CRC32

Returns
ResourceIconhash as CRC32

◆ getResourceIconhashMd5()

std::string retdec::fileinfo::FileInformation::getResourceIconhashMd5 ( ) const

Get iconhash as MD5

Returns
ResourceIconhash as MD5

◆ getResourceIconhashSha256()

std::string retdec::fileinfo::FileInformation::getResourceIconhashSha256 ( ) const

Get iconhash as SHA256

Returns
ResourceIconhash as SHA256

◆ getResourceIconPerceptualAvgHash()

std::string retdec::fileinfo::FileInformation::getResourceIconPerceptualAvgHash ( ) const

Get icon perceptual hash as AvgHash

Returns
Icon perceptual hash as AvgHash

◆ getResourceLanguage()

std::string retdec::fileinfo::FileInformation::getResourceLanguage ( std::size_t  index) const

Get language of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
Language of selected resource

◆ getResourceLanguageIdStr()

std::string retdec::fileinfo::FileInformation::getResourceLanguageIdStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get language ID of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Language ID of selected resource

◆ getResourceMd5()

std::string retdec::fileinfo::FileInformation::getResourceMd5 ( std::size_t  index) const

Get MD5 of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
MD5 of selected resource

◆ getResourceName()

std::string retdec::fileinfo::FileInformation::getResourceName ( std::size_t  index) const

Get name of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
Name of selected resource

◆ getResourceNameIdStr()

std::string retdec::fileinfo::FileInformation::getResourceNameIdStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get name ID of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Name ID of selected resource

◆ getResourceOffsetStr()

std::string retdec::fileinfo::FileInformation::getResourceOffsetStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get offset of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Offset of selected resource

◆ getResourceSha256()

std::string retdec::fileinfo::FileInformation::getResourceSha256 ( std::size_t  index) const

Get SHA256 of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
SHA256 of selected resource

◆ getResourceSizeStr()

std::string retdec::fileinfo::FileInformation::getResourceSizeStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get size of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Size of selected resource

◆ getResourceSublanguageIdStr()

std::string retdec::fileinfo::FileInformation::getResourceSublanguageIdStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get sublanguage ID of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Sublanguage ID of selected resource

◆ getResourceType()

std::string retdec::fileinfo::FileInformation::getResourceType ( std::size_t  index) const

Get type of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
Returns
Type of selected resource

◆ getResourceTypeIdStr()

std::string retdec::fileinfo::FileInformation::getResourceTypeIdStr ( std::size_t  index,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get type ID of selected resource

Parameters
indexIndex of selected resource (indexed from 0)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Type ID of selected resource

◆ getRichHeaderKeyStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderKeyStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get key for decryption of header

Returns
Key for decryption of header

◆ getRichHeaderOffsetStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get offset of header in file

Returns
Offset of header in file

◆ getRichHeaderRawBytesStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRawBytesStr ( ) const

Get rich header raw bytes as string

Returns
Raw bytes of rich header as string

◆ getRichHeaderRecordNumberOfUsesStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRecordNumberOfUsesStr ( std::size_t  position) const

Get number of uses

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Number of uses

◆ getRichHeaderRecordProductBuildStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRecordProductBuildStr ( std::size_t  position) const

Get minor version

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Minor version of linker

◆ getRichHeaderRecordProductIdStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRecordProductIdStr ( std::size_t  position) const

Get major version

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Major version of linker

◆ getRichHeaderRecordProductNameStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRecordProductNameStr ( std::size_t  position) const

Retrieve the product name

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Product name as std::string

◆ getRichHeaderRecordVisualStudioNameStr()

std::string retdec::fileinfo::FileInformation::getRichHeaderRecordVisualStudioNameStr ( std::size_t  position) const

Retrieve the Visual Studio name

Parameters
positionIndex of selected record from header (indexed from 0)
Returns
Visual Studio name as std::string

◆ getRichHeaderSignature()

std::string retdec::fileinfo::FileInformation::getRichHeaderSignature ( ) const

Get decrypted header as string

Returns
Decrypted header as string

◆ getSectionAddressStr()

std::string retdec::fileinfo::FileInformation::getSectionAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section address in memory as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Section address in memory as string

◆ getSectionCrc32()

std::string retdec::fileinfo::FileInformation::getSectionCrc32 ( std::size_t  position) const

Get section CRC32

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
CRC32 of section

◆ getSectionEntropy()

std::string retdec::fileinfo::FileInformation::getSectionEntropy ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section entropy

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Entropy of section

◆ getSectionEntrySizeStr()

std::string retdec::fileinfo::FileInformation::getSectionEntrySizeStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get size of one entry in section as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Size of one entry in section as string

◆ getSectionExtraInfoStr()

std::string retdec::fileinfo::FileInformation::getSectionExtraInfoStr ( std::size_t  position) const

Get section extra info as string

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Section extra info in string representation

◆ getSectionFlags()

unsigned long long retdec::fileinfo::FileInformation::getSectionFlags ( std::size_t  position) const

Get section flags

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Section flags

◆ getSectionFlagsDescriptors()

void retdec::fileinfo::FileInformation::getSectionFlagsDescriptors ( std::size_t  position,
std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get section flags descriptors

Parameters
positionPosition of section in internal list of sections (0..x)
descVector for save descriptors
abbVector for save abbreviations of descriptors

◆ getSectionFlagsSize()

unsigned long long retdec::fileinfo::FileInformation::getSectionFlagsSize ( std::size_t  position) const

Get number of section flags

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Number of section flags

◆ getSectionFlagsStr()

std::string retdec::fileinfo::FileInformation::getSectionFlagsStr ( std::size_t  position) const

Get section flags as string

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Section flags in string representation

◆ getSectionIndexStr()

std::string retdec::fileinfo::FileInformation::getSectionIndexStr ( std::size_t  position) const

Get section index as string

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Section index in string representation

◆ getSectionLineNumbersOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionLineNumbersOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get offset of line-number entries for section

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Offset of line-number entries for section

◆ getSectionLineOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionLineOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get line offset of selected section

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Line offset of selected section

◆ getSectionLinkToOtherSectionStr()

std::string retdec::fileinfo::FileInformation::getSectionLinkToOtherSectionStr ( std::size_t  position) const

Get link to another section as string

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Link to another section in string representation

◆ getSectionMd5()

std::string retdec::fileinfo::FileInformation::getSectionMd5 ( std::size_t  position) const

Get section MD5

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
MD5 of section

◆ getSectionMemoryAlignmentStr()

std::string retdec::fileinfo::FileInformation::getSectionMemoryAlignmentStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section memory alignment as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Section memory alignment in string representation

◆ getSectionName()

std::string retdec::fileinfo::FileInformation::getSectionName ( std::size_t  position) const

Get section name

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Section name

◆ getSectionNumberOfLineNumbersStr()

std::string retdec::fileinfo::FileInformation::getSectionNumberOfLineNumbersStr ( std::size_t  position) const

Get number of line-number entries for section

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Number of line-number entries for section

◆ getSectionNumberOfRelocationsStr()

std::string retdec::fileinfo::FileInformation::getSectionNumberOfRelocationsStr ( std::size_t  position) const

Get number of relocation entries for section

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Number of relocation entries for section

◆ getSectionOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section offset as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Section offset in string representation

◆ getSectionRelocationsLineOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionRelocationsLineOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get line offset of relocation entries which are related to section

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Line offset of relocation entries which are related to section

◆ getSectionRelocationsOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionRelocationsOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get offset of relocation entries for section

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Offset of relocation entries for section

◆ getSectionSha256()

std::string retdec::fileinfo::FileInformation::getSectionSha256 ( std::size_t  position) const

Get section SHA256

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
SHA256 of section

◆ getSectionSizeInFileStr()

std::string retdec::fileinfo::FileInformation::getSectionSizeInFileStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section size in file as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Section size in string representation

◆ getSectionSizeInMemoryStr()

std::string retdec::fileinfo::FileInformation::getSectionSizeInMemoryStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get section size in memory as string

Parameters
positionPosition of section in internal list of sections (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Size of section in memory as string

◆ getSectionTableCrc32()

std::string retdec::fileinfo::FileInformation::getSectionTableCrc32 ( ) const

Get CRC32 of section table

Returns
CRC32 of section table

◆ getSectionTableEntrySizeStr()

std::string retdec::fileinfo::FileInformation::getSectionTableEntrySizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get section table one entry size

Returns
Size of one entry in section table

◆ getSectionTableMd5()

std::string retdec::fileinfo::FileInformation::getSectionTableMd5 ( ) const

Get MD5 of section table

Returns
MD5 of section table

◆ getSectionTableOffsetStr()

std::string retdec::fileinfo::FileInformation::getSectionTableOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get section table offset

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Section table offset in file

◆ getSectionTableSha256()

std::string retdec::fileinfo::FileInformation::getSectionTableSha256 ( ) const

Get SHA256 of section table

Returns
SHA256 of section table

◆ getSectionTableSizeStr()

std::string retdec::fileinfo::FileInformation::getSectionTableSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get section table size

Returns
Size of section table

◆ getSectionType()

std::string retdec::fileinfo::FileInformation::getSectionType ( std::size_t  position) const

Get section type

Parameters
positionPosition of section in internal list of sections (0..x)
Returns
Type of section

◆ getSegmentAlignmentStr()

std::string retdec::fileinfo::FileInformation::getSegmentAlignmentStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get segment alignment

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Segment alignment

◆ getSegmentCrc32()

std::string retdec::fileinfo::FileInformation::getSegmentCrc32 ( std::size_t  position) const

Get segment CRC32

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
CRC32 of segment

◆ getSegmentFlags()

unsigned long long retdec::fileinfo::FileInformation::getSegmentFlags ( std::size_t  position) const

Get segment flags

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Segment flags as number

◆ getSegmentFlagsDescriptors()

void retdec::fileinfo::FileInformation::getSegmentFlagsDescriptors ( std::size_t  position,
std::vector< std::string > &  desc,
std::vector< std::string > &  abb 
) const

Get segment flags descriptors

Parameters
positionPosition of segment in internal list of segments (0..x)
descVector for save descriptors
abbVector for save abbreviations of descriptors

◆ getSegmentFlagsSize()

unsigned long long retdec::fileinfo::FileInformation::getSegmentFlagsSize ( std::size_t  position) const

Get size of segment flags

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Size of segment flags

◆ getSegmentFlagsStr()

std::string retdec::fileinfo::FileInformation::getSegmentFlagsStr ( std::size_t  position) const

Get segment flags

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Segment flags as string

◆ getSegmentIndexStr()

std::string retdec::fileinfo::FileInformation::getSegmentIndexStr ( std::size_t  position) const

Get segment index

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Segment index

◆ getSegmentMd5()

std::string retdec::fileinfo::FileInformation::getSegmentMd5 ( std::size_t  position) const

Get segment MD5

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
MD5 of segment

◆ getSegmentOffsetStr()

std::string retdec::fileinfo::FileInformation::getSegmentOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get offset of segment in file

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Offset of segment in file

◆ getSegmentPhysicalAddressStr()

std::string retdec::fileinfo::FileInformation::getSegmentPhysicalAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get segment physical address

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Segment physical address

◆ getSegmentSha256()

std::string retdec::fileinfo::FileInformation::getSegmentSha256 ( std::size_t  position) const

Get segment SHA256

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
SHA256 of segment

◆ getSegmentSizeInFileStr()

std::string retdec::fileinfo::FileInformation::getSegmentSizeInFileStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get size of segment in file

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Size of segment in file

◆ getSegmentSizeInMemoryStr()

std::string retdec::fileinfo::FileInformation::getSegmentSizeInMemoryStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get size of segment in memory

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Size of segment in memory

◆ getSegmentTableEntrySizeStr()

std::string retdec::fileinfo::FileInformation::getSegmentTableEntrySizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get segment table one entry size

Returns
Size of one entry in segment table

◆ getSegmentTableOffsetStr()

std::string retdec::fileinfo::FileInformation::getSegmentTableOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get segment table offset

Parameters
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Segment table offset in file

◆ getSegmentTableSizeStr()

std::string retdec::fileinfo::FileInformation::getSegmentTableSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get segment table size

Returns
Size of segment table

◆ getSegmentType()

std::string retdec::fileinfo::FileInformation::getSegmentType ( std::size_t  position) const

Get type of segment

Parameters
positionPosition of segment in internal list of segments (0..x)
Returns
Type of segment

◆ getSegmentVirtualAddressStr()

std::string retdec::fileinfo::FileInformation::getSegmentVirtualAddressStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get segment virtual address

Parameters
positionPosition of segment in internal list of segments (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Segment virtual address

◆ getSha256()

std::string retdec::fileinfo::FileInformation::getSha256 ( ) const

Get SHA256 of input file

Returns
SHA256 of input file

◆ getStackCommitSizeStr()

std::string retdec::fileinfo::FileInformation::getStackCommitSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of the stack to commit

Returns
Size of the stack to commit

◆ getStackReserveSizeStr()

std::string retdec::fileinfo::FileInformation::getStackReserveSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of the stack to reserve

Returns
Size of the stack to reserve

◆ getStatus()

ReturnCode retdec::fileinfo::FileInformation::getStatus ( ) const

Get status

Returns
Status of instance

◆ getStrings()

const Strings & retdec::fileinfo::FileInformation::getStrings ( ) const

Get detected strings

Returns
Pointer to detected strings

◆ getSymbolAddressStr()

std::string retdec::fileinfo::FileInformation::getSymbolAddressStr ( std::size_t  tableIndex,
std::size_t  symbolIndex,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get symbol address

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
formatFormat of resulting string (e.g. std::dec, std::hex)
Returns
Symbol address

◆ getSymbolBind()

std::string retdec::fileinfo::FileInformation::getSymbolBind ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol bind

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol bind

◆ getSymbolIndexStr()

std::string retdec::fileinfo::FileInformation::getSymbolIndexStr ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol index

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol index

◆ getSymbolLinkToSection()

std::string retdec::fileinfo::FileInformation::getSymbolLinkToSection ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol link

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol link

◆ getSymbolName()

std::string retdec::fileinfo::FileInformation::getSymbolName ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol name

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol name

◆ getSymbolOther()

std::string retdec::fileinfo::FileInformation::getSymbolOther ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get other information about symbol

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Other information about symbol

◆ getSymbolSizeStr()

std::string retdec::fileinfo::FileInformation::getSymbolSizeStr ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get size associated with symbol

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Size associated with symbol

◆ getSymbolTableName()

std::string retdec::fileinfo::FileInformation::getSymbolTableName ( std::size_t  position) const

Get name of symbol table

Parameters
positionPosition of table in internal list of symbol tables (0..x)
Returns
Name of selected symbol table

◆ getSymbolTableNumberOfSpecialInformationValues()

std::size_t retdec::fileinfo::FileInformation::getSymbolTableNumberOfSpecialInformationValues ( std::size_t  tableIndex,
std::size_t  specInfoIndex 
) const

Get number of values in selected special information

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
specInfoIndexPosition of special information in selected symbol table (0..x)
Returns
Number of values in selected special information

◆ getSymbolTableNumberOfStoredSpecialInformation()

std::size_t retdec::fileinfo::FileInformation::getSymbolTableNumberOfStoredSpecialInformation ( std::size_t  position) const

Get number of stored special information in symbol table

Parameters
positionPosition of table in internal list of symbol tables (0..x)
Returns
Number of special information in selected symbol table

◆ getSymbolTableOffsetStr()

std::string retdec::fileinfo::FileInformation::getSymbolTableOffsetStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get offset of symbol table

Parameters
positionPosition of table in internal list of symbol tables (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
Offset of selected symbol table

◆ getSymbolTableSpecialInformationAbbreviation()

std::string retdec::fileinfo::FileInformation::getSymbolTableSpecialInformationAbbreviation ( std::size_t  tableIndex,
std::size_t  specInfoIndex 
) const

Get short description of selected special information

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
specInfoIndexPosition of special information in selected symbol table (0..x)
Returns
Short description of selected special information

◆ getSymbolTableSpecialInformationDescription()

std::string retdec::fileinfo::FileInformation::getSymbolTableSpecialInformationDescription ( std::size_t  tableIndex,
std::size_t  specInfoIndex 
) const

Get description of selected special information

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
specInfoIndexPosition of special information in selected symbol table (0..x)
Returns
Description of selected special information

◆ getSymbolTableSpecialInformationValue()

std::string retdec::fileinfo::FileInformation::getSymbolTableSpecialInformationValue ( std::size_t  tableIndex,
std::size_t  specInfoIndex,
std::size_t  recordIndex 
) const

Get value of one record from special information

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
specInfoIndexPosition of special information in selected symbol table (0..x)
recordIndexPosition of record in selected special information (0..x)
Returns
Value of selected record

◆ getSymbolType()

std::string retdec::fileinfo::FileInformation::getSymbolType ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol type

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol type

◆ getSymbolValueStr()

std::string retdec::fileinfo::FileInformation::getSymbolValueStr ( std::size_t  tableIndex,
std::size_t  symbolIndex 
) const

Get symbol value

Parameters
tableIndexPosition of table in internal list of symbol tables (0..x)
symbolIndexPosition of symbol in selected symbol table (0..x)
Returns
Symbol value

◆ getTargetArchitecture()

std::string retdec::fileinfo::FileInformation::getTargetArchitecture ( ) const

Get targetArchitecture

Returns
Detected target architecture

◆ getTimeStamp()

std::string retdec::fileinfo::FileInformation::getTimeStamp ( ) const

Get time stamp

Returns
Time stamp

◆ getTlsCallBackAddrStr()

std::string retdec::fileinfo::FileInformation::getTlsCallBackAddrStr ( std::size_t  position,
std::ios_base &(*)(std::ios_base &)  format 
) const

Get TLS callback

Parameters
positionPosition of directory in internal list of directories (0..x)
formatFormat of result (e.g. std::dec, std::hex)
Returns
TLS callback

◆ getTlsCallBacksAddrStr()

std::string retdec::fileinfo::FileInformation::getTlsCallBacksAddrStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get address of callbacks of TLS

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Address of callbacks of TLS

◆ getTlsCharacteristicsStr()

std::string retdec::fileinfo::FileInformation::getTlsCharacteristicsStr ( ) const

Get characteristics of TLS

Returns
Characteristics of TLS

◆ getTlsIndexAddrStr()

std::string retdec::fileinfo::FileInformation::getTlsIndexAddrStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get address of index of TLS

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Address of index of TLS

◆ getTlsNumberOfCallBacks()

std::size_t retdec::fileinfo::FileInformation::getTlsNumberOfCallBacks ( ) const

Get number of callbacks of TLS

Returns
Number of callbacks of TLS

◆ getTlsRawDataEndAddrStr()

std::string retdec::fileinfo::FileInformation::getTlsRawDataEndAddrStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get end address of raw data of TLS

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
End address of raw data of TLS

◆ getTlsRawDataStartAddrStr()

std::string retdec::fileinfo::FileInformation::getTlsRawDataStartAddrStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get start address of raw data of TLS

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Start address of raw data of TLS

◆ getTlsZeroFillSizeStr()

std::string retdec::fileinfo::FileInformation::getTlsZeroFillSizeStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get size of zero fill of TLS

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Size of zero fill of TLS

◆ getVersionInfoLanguageCodePage()

std::string retdec::fileinfo::FileInformation::getVersionInfoLanguageCodePage ( std::size_t  index) const

Get code page of selected version info language

Parameters
indexIndex of selected version info language (indexed from 0)
Returns
Code page of selected version info language

◆ getVersionInfoLanguageLcid()

std::string retdec::fileinfo::FileInformation::getVersionInfoLanguageLcid ( std::size_t  index) const

Get LCID of selected version info language

Parameters
indexIndex of selected version info language (indexed from 0)
Returns
LCID of selected version info language

◆ getVersionInfoStringName()

std::string retdec::fileinfo::FileInformation::getVersionInfoStringName ( std::size_t  index) const

Get name of selected version info string

Parameters
indexIndex of selected version info string (indexed from 0)
Returns
Name of selected version info string

◆ getVersionInfoStringValue()

std::string retdec::fileinfo::FileInformation::getVersionInfoStringValue ( std::size_t  index) const

Get value of selected version info string

Parameters
indexIndex of selected version info string (indexed from 0)
Returns
Value of selected version info string

◆ getVisualBasicBackupLanguageDLL()

std::string retdec::fileinfo::FileInformation::getVisualBasicBackupLanguageDLL ( ) const

Get visual basic backup language DLL

Returns
Visual basic backup language DLL

◆ getVisualBasicCOMObjectCLSID()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectCLSID ( ) const

Get visual basic COM object CLSID

Returns
Visual basic COM object CLSID

◆ getVisualBasicCOMObjectDescription()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectDescription ( ) const

Get visual basic COM object description

Returns
Visual basic COM object description

◆ getVisualBasicCOMObjectEventsCLSID()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectEventsCLSID ( ) const

Get visual basic COM object events CLSID

Returns
Visual basic COM object events CLSID

◆ getVisualBasicCOMObjectInterfaceCLSID()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectInterfaceCLSID ( ) const

Get visual basic COM object interface CLSID

Returns
Visual basic COM object interface CLSID

◆ getVisualBasicCOMObjectName()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectName ( ) const

Get visual basic COM object name

Returns
Visual basic COM object name

◆ getVisualBasicCOMObjectType()

std::string retdec::fileinfo::FileInformation::getVisualBasicCOMObjectType ( ) const

Get visual basic COM object type

Returns
Visual basic COM object type

◆ getVisualBasicExtern()

const retdec::fileformat::VisualBasicExtern * retdec::fileinfo::FileInformation::getVisualBasicExtern ( std::size_t  position) const

Get visual basic extern

Parameters
positionIndex of selected extern (indexed from 0)
Returns
Visual basic extern

◆ getVisualBasicExternApiName()

std::string retdec::fileinfo::FileInformation::getVisualBasicExternApiName ( std::size_t  position) const

Get visual basic extern api name

Parameters
positionIndex of selected extern (indexed from 0)
Returns
Visual basic extern api name

◆ getVisualBasicExternModuleName()

std::string retdec::fileinfo::FileInformation::getVisualBasicExternModuleName ( std::size_t  position) const

Get visual basic extern module name

Parameters
positionIndex of selected extern (indexed from 0)
Returns
Visual basic extern module name

◆ getVisualBasicExternTableHashCrc32()

std::string retdec::fileinfo::FileInformation::getVisualBasicExternTableHashCrc32 ( ) const

Get visual basic extern table hash as Crc32

Returns
Visual basic extern table hash

◆ getVisualBasicExternTableHashMd5()

std::string retdec::fileinfo::FileInformation::getVisualBasicExternTableHashMd5 ( ) const

Get visual basic extern table hash as Md5

Returns
Visual basic extern table hash

◆ getVisualBasicExternTableHashSha256()

std::string retdec::fileinfo::FileInformation::getVisualBasicExternTableHashSha256 ( ) const

Get visual basic extern table hash as Sha256

Returns
Visual basic extern table hash

◆ getVisualBasicIsPcode()

bool retdec::fileinfo::FileInformation::getVisualBasicIsPcode ( ) const

Check whether visual basic uses P-Code.

Returns
true if it does, otherwise false/

◆ getVisualBasicLanguageDLL()

std::string retdec::fileinfo::FileInformation::getVisualBasicLanguageDLL ( ) const

Get visual basic language DLL

Returns
Visual basic language DLL

◆ getVisualBasicLanguageDLLPrimaryLCIDStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicLanguageDLLPrimaryLCIDStr ( ) const

Get visual basic language DLL primary LCID

Returns
Visual basic language DLL primary LCID

◆ getVisualBasicLanguageDLLSecondaryLCIDStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicLanguageDLLSecondaryLCIDStr ( ) const

Get visual basic language DLL secondary LCID

Returns
Visual basic language DLL secondary LCID

◆ getVisualBasicNumberOfExterns()

std::size_t retdec::fileinfo::FileInformation::getVisualBasicNumberOfExterns ( ) const

Get visual basic number of externs

Returns
Visual basic number of externs

◆ getVisualBasicNumberOfObjects()

std::size_t retdec::fileinfo::FileInformation::getVisualBasicNumberOfObjects ( ) const

Get visual basic number of objects

Returns
Visual basic number of objects

◆ getVisualBasicObject()

const retdec::fileformat::VisualBasicObject * retdec::fileinfo::FileInformation::getVisualBasicObject ( std::size_t  position) const

Get visual basic object

Parameters
positionIndex of selected object (indexed from 0)
Returns
Visual basic object

◆ getVisualBasicObjectTableGUID()

std::string retdec::fileinfo::FileInformation::getVisualBasicObjectTableGUID ( ) const

Get visual basic object table GUID

Returns
Object table GUID as string

◆ getVisualBasicObjectTableHashCrc32()

std::string retdec::fileinfo::FileInformation::getVisualBasicObjectTableHashCrc32 ( ) const

Get visual basic object table hash as Crc32

Returns
Visual basic object table hash

◆ getVisualBasicObjectTableHashMd5()

std::string retdec::fileinfo::FileInformation::getVisualBasicObjectTableHashMd5 ( ) const

Get visual basic object table hash as Md5

Returns
Visual basic object table hash

◆ getVisualBasicObjectTableHashSha256()

std::string retdec::fileinfo::FileInformation::getVisualBasicObjectTableHashSha256 ( ) const

Get visual basic object table hash as Sha256

Returns
Visual basic object table hash

◆ getVisualBasicProjectDescription()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectDescription ( ) const

Get visual basic project description

Returns
Visual basic project description

◆ getVisualBasicProjectExeName()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectExeName ( ) const

Get visual basic project exe name

Returns
Visual basic project exe name

◆ getVisualBasicProjectHelpFile()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectHelpFile ( ) const

Get visual basic project help file

Returns
Visual basic project help file

◆ getVisualBasicProjectName()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectName ( ) const

Get visual basic project name

Returns
Visual basic project name

◆ getVisualBasicProjectPath()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectPath ( ) const

Get visual basic project path

Returns
Visual basic project path

◆ getVisualBasicProjectPrimaryLCIDStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectPrimaryLCIDStr ( ) const

Get visual basic project primary LCID

Returns
Visual basic project primary LCID

◆ getVisualBasicProjectSecondaryLCIDStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicProjectSecondaryLCIDStr ( ) const

Get visual basic project secondary LCID

Returns
Visual basic project secondary LCID

◆ getVisualBasicTypeLibCLSID()

std::string retdec::fileinfo::FileInformation::getVisualBasicTypeLibCLSID ( ) const

Get visual basic typeLib CLSID

Returns
typeLib CLSID as string

◆ getVisualBasicTypeLibLCIDStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicTypeLibLCIDStr ( ) const

Get visual basic typeLib LCID

Returns
Visual basic typeLib LCID

◆ getVisualBasicTypeLibMajorVersionStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicTypeLibMajorVersionStr ( ) const

Get visual basic typeLib major version

Returns
TypeLib major version

◆ getVisualBasicTypeLibMinorVersionStr()

std::string retdec::fileinfo::FileInformation::getVisualBasicTypeLibMinorVersionStr ( ) const

Get visual basic typeLib minor version

Returns
TypeLib minor version

◆ hasCertificateTableCounterSignerCertificate()

bool retdec::fileinfo::FileInformation::hasCertificateTableCounterSignerCertificate ( ) const

Find out if there is counter-signer certificate

Returns
true if there is counter-signer certificate, false otherwise

◆ hasCertificateTableRecords()

bool retdec::fileinfo::FileInformation::hasCertificateTableRecords ( ) const

Find out if there are any records in certificate table

Returns
true if certificate table is not empty, false otherwise

◆ hasCertificateTableSignerCertificate()

bool retdec::fileinfo::FileInformation::hasCertificateTableSignerCertificate ( ) const

Find out if there is signer certificate

Returns
true if there is signer certificate, false otherwise

◆ hasDotnetBlobStream()

bool retdec::fileinfo::FileInformation::hasDotnetBlobStream ( ) const

Checks whether .NET information contain blob stream.

Returns
true if contains, otherwise false.

◆ hasDotnetGuidStream()

bool retdec::fileinfo::FileInformation::hasDotnetGuidStream ( ) const

Checks whether .NET information contain GUID stream.

Returns
true if contains, otherwise false.

◆ hasDotnetMetadataStream()

bool retdec::fileinfo::FileInformation::hasDotnetMetadataStream ( ) const

Checks whether .NET information contain metadata stream.

Returns
true if contains, otherwise false.

◆ hasDotnetStringStream()

bool retdec::fileinfo::FileInformation::hasDotnetStringStream ( ) const

Checks whether .NET information contain string stream.

Returns
true if contains, otherwise false.

◆ hasDotnetTypeLibId()

bool retdec::fileinfo::FileInformation::hasDotnetTypeLibId ( ) const

Checks whether .NET information contain TypeLib ID.

Returns
true if contains, otherwise false.

◆ hasDotnetTypeRefTableRecords()

bool retdec::fileinfo::FileInformation::hasDotnetTypeRefTableRecords ( ) const

Find out if there are any records in typeref table

Returns
true if typeref is not empty, false otherwise

◆ hasDotnetUserStringStream()

bool retdec::fileinfo::FileInformation::hasDotnetUserStringStream ( ) const

Checks whether .NET information contain user string stream.

Returns
true if contains, otherwise false.

◆ hasExportTableRecords()

bool retdec::fileinfo::FileInformation::hasExportTableRecords ( ) const

Find out if there are any records in export table

Returns
true if export table is not empty, false otherwise

◆ hasImportTableRecords()

bool retdec::fileinfo::FileInformation::hasImportTableRecords ( ) const

Find out if there are any records in import table

Returns
true if import table is not empty, false otherwise

◆ hasResourceTableRecords()

bool retdec::fileinfo::FileInformation::hasResourceTableRecords ( ) const

Find out if there are any records in resource table

Returns
true if resource table is not empty, false otherwise

◆ hasRichHeaderRecords()

bool retdec::fileinfo::FileInformation::hasRichHeaderRecords ( ) const

Find out if there are any records in rich header

Returns
true if rich header is not empty, false otherwise

◆ hasStrings()

bool retdec::fileinfo::FileInformation::hasStrings ( ) const

Check if some strings in input file was detected

Returns
true if at least one string was detected, false otherwise

◆ isDotnetUsed()

bool retdec::fileinfo::FileInformation::isDotnetUsed ( ) const

Checks whether .NET information are used.

Returns
true if it is used, otherwise false/

◆ isSignaturePresent()

bool retdec::fileinfo::FileInformation::isSignaturePresent ( ) const

Get whether the signature is present in the file

Returns
true if present, otherwise false.

◆ isSignatureVerified()

bool retdec::fileinfo::FileInformation::isSignatureVerified ( ) const

Get whether the signature is verified

Returns
true if present, otherwise false.

◆ isSignatureVerifiedStr()

std::string retdec::fileinfo::FileInformation::isSignatureVerifiedStr ( const std::string &  t = "true",
const std::string &  f = "false" 
) const

Get whether the signature is verified in string representation

Parameters
tString to return if verified.
fString to return if not verified.
Returns
t if verified, otherwise f.

◆ isTlsUsed()

bool retdec::fileinfo::FileInformation::isTlsUsed ( ) const

Check whether TLS is used

Returns
true if TLS is used, false otherwise

◆ isVisualBasicUsed()

bool retdec::fileinfo::FileInformation::isVisualBasicUsed ( ) const

Check whether visual basic informations are used.

Returns
true if it is used, otherwise false/

◆ removeRedundantCryptoRules()

void retdec::fileinfo::FileInformation::removeRedundantCryptoRules ( )

Remove redundant detected crypto patterns

◆ setAnomalies()

void retdec::fileinfo::FileInformation::setAnomalies ( const std::vector< std::pair< std::string, std::string >> &  anom)

Sets anomalies

Parameters
anomAnomalies

◆ setCertificateTable()

void retdec::fileinfo::FileInformation::setCertificateTable ( const retdec::fileformat::CertificateTable sTable)

Set certificate table

Parameters
sTableInformation about certificate table

◆ setChecksum()

void retdec::fileinfo::FileInformation::setChecksum ( unsigned long long  fileChecksum)

Set file checksum

Parameters
fileChecksumFile checksum

◆ setCoffFileHeaderSize()

void retdec::fileinfo::FileInformation::setCoffFileHeaderSize ( unsigned long long  headerSize)

Set size of COFF file header

Parameters
headerSizeSize of COFF file header

◆ setCompactManifest()

void retdec::fileinfo::FileInformation::setCompactManifest ( const std::string &  fileCompactManifest)

Set compact version of manifest

Parameters
fileCompactManifestCompact version of manifest

◆ setCrc32()

void retdec::fileinfo::FileInformation::setCrc32 ( const std::string &  fileCrc32)

Get CRC32 of input file

Parameters
fileCrc32CRC32 of input file

◆ setDepsListFailedToLoad()

void retdec::fileinfo::FileInformation::setDepsListFailedToLoad ( const std::string &  depsList)

Sets the name of the dependency file that failed to load

Returns
Nothing

◆ setDllFlags()

void retdec::fileinfo::FileInformation::setDllFlags ( unsigned long long  flagsArray)

Set DLL flags

Parameters
flagsArrayBit flags as one number

◆ setDllFlagsSize()

void retdec::fileinfo::FileInformation::setDllFlagsSize ( unsigned long long  size)

Set size of DLL flags

Parameters
sizeSize od DLL flags

◆ setDotnetBlobStreamInfo()

void retdec::fileinfo::FileInformation::setDotnetBlobStreamInfo ( std::uint64_t  streamOffset,
std::uint64_t  streamSize 
)

Sets .NET blob stream information.

Parameters
streamOffsetStream offset.
streamSizeStream size.

◆ setDotnetDefinedClassList()

void retdec::fileinfo::FileInformation::setDotnetDefinedClassList ( const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass >> &  dotnetClassList)

Sets .NET defined class list.

Parameters
dotnetClassListDefined .NET classes.

◆ setDotnetGuidStreamInfo()

void retdec::fileinfo::FileInformation::setDotnetGuidStreamInfo ( std::uint64_t  streamOffset,
std::uint64_t  streamSize 
)

Sets .NET GUID stream information.

Parameters
streamOffsetStream offset.
streamSizeStream size.

◆ setDotnetImportedClassList()

void retdec::fileinfo::FileInformation::setDotnetImportedClassList ( const std::vector< std::shared_ptr< retdec::fileformat::DotnetClass >> &  dotnetClassList)

Sets .NET imported class list.

Parameters
dotnetClassListImported .NET classes.

◆ setDotnetMetadataHeaderAddress()

void retdec::fileinfo::FileInformation::setDotnetMetadataHeaderAddress ( std::uint64_t  address)

Sets .NET metadata header address.

Parameters
address.NET metadata header address.

◆ setDotnetMetadataStreamInfo()

void retdec::fileinfo::FileInformation::setDotnetMetadataStreamInfo ( std::uint64_t  streamOffset,
std::uint64_t  streamSize 
)

Sets .NET metadata stream information.

Parameters
streamOffsetStream offset.
streamSizeStream size.

◆ setDotnetModuleVersionId()

void retdec::fileinfo::FileInformation::setDotnetModuleVersionId ( const std::string &  moduleVersionId)

Sets .NET module version ID.

Parameters
moduleVersionIdModule version ID.

◆ setDotnetRuntimeVersion()

void retdec::fileinfo::FileInformation::setDotnetRuntimeVersion ( std::uint64_t  majorVersion,
std::uint64_t  minorVersion 
)

Sets .NET runtime version.

Parameters
majorVersion.NET major runtime version.
minorVersion.NET minor runtime version.

◆ setDotnetStringStreamInfo()

void retdec::fileinfo::FileInformation::setDotnetStringStreamInfo ( std::uint64_t  streamOffset,
std::uint64_t  streamSize 
)

Sets .NET string stream information.

Parameters
streamOffsetStream offset.
streamSizeStream size.

◆ setDotnetTypeLibId()

void retdec::fileinfo::FileInformation::setDotnetTypeLibId ( const std::string &  typeLibId)

Sets .NET typelib ID.

Parameters
typeLibIdTypeLib ID.

◆ setDotnetTypeRefhashCrc32()

void retdec::fileinfo::FileInformation::setDotnetTypeRefhashCrc32 ( const std::string &  crc32)

Sets .NET typeref hash as CRC32.

Parameters
crc32Hash as CRC32.

◆ setDotnetTypeRefhashMd5()

void retdec::fileinfo::FileInformation::setDotnetTypeRefhashMd5 ( const std::string &  md5)

Sets .NET typeref hash as MD5.

Parameters
md5Hash as MD5.

◆ setDotnetTypeRefhashSha256()

void retdec::fileinfo::FileInformation::setDotnetTypeRefhashSha256 ( const std::string &  sha256)

Sets .NET typeref hash as SHA256.

Parameters
sha256Hash as SHA256.

◆ setDotnetUsed()

void retdec::fileinfo::FileInformation::setDotnetUsed ( bool  set)

Sets whether .NET information are used.

Parameters
settrue if used, otherwise false.

◆ setDotnetUserStringStreamInfo()

void retdec::fileinfo::FileInformation::setDotnetUserStringStreamInfo ( std::uint64_t  streamOffset,
std::uint64_t  streamSize 
)

Sets .NET user string stream information.

Parameters
streamOffsetStream offset.
streamSizeStream size.

◆ setEndianness()

void retdec::fileinfo::FileInformation::setEndianness ( const std::string &  fileEndianness)

Set endianness

Parameters
fileEndiannessFile endianness

◆ setExportTable()

void retdec::fileinfo::FileInformation::setExportTable ( const retdec::fileformat::ExportTable sTable)

Set export table

Parameters
sTableInformation about export table

◆ setFileClass()

void retdec::fileinfo::FileInformation::setFileClass ( const std::string &  fileclass)

Set file class

Parameters
fileclassFile class

◆ setFileFlags()

void retdec::fileinfo::FileInformation::setFileFlags ( unsigned long long  flagsArray)

Set file flags

Parameters
flagsArrayBit flags as one number

◆ setFileFlagsSize()

void retdec::fileinfo::FileInformation::setFileFlagsSize ( unsigned long long  size)

Set flags size

Parameters
sizeNumber of file flags

◆ setFileFormat()

void retdec::fileinfo::FileInformation::setFileFormat ( const std::string &  fileformat)

Set file format

Parameters
fileformatFile format in string representation

◆ setFileFormatEnum()

void retdec::fileinfo::FileInformation::setFileFormatEnum ( retdec::fileformat::Format  format)

Set file format

Parameters
formatFile format in enumeration representation

◆ setFileHeaderSize()

void retdec::fileinfo::FileInformation::setFileHeaderSize ( unsigned long long  size)

Set size of file header

Parameters
sizeSize of file header

◆ setFileHeaderVersion()

void retdec::fileinfo::FileInformation::setFileHeaderVersion ( const std::string &  version)

Set file header version

Parameters
versionVersion of file header

◆ setFileStatus()

void retdec::fileinfo::FileInformation::setFileStatus ( const std::string &  fileStatus)

Set file status

Parameters
fileStatusFile status

◆ setFileType()

void retdec::fileinfo::FileInformation::setFileType ( const std::string &  filetype)

Set file type

Parameters
filetypeFile type

◆ setFileVersion()

void retdec::fileinfo::FileInformation::setFileVersion ( const std::string &  version)

Set file version

Parameters
versionVersion of file

◆ setHeapCommitSize()

void retdec::fileinfo::FileInformation::setHeapCommitSize ( unsigned long long  size)

Set size of the local heap space to commit

Parameters
sizeSize of the local heap space to commit

◆ setHeapReserveSize()

void retdec::fileinfo::FileInformation::setHeapReserveSize ( unsigned long long  size)

Set size of the local heap space to reserve

Parameters
sizeSize of the local heap space to reserve

◆ setImportTable()

void retdec::fileinfo::FileInformation::setImportTable ( const retdec::fileformat::ImportTable sTable)

Set import table

Parameters
sTableInformation about import table

◆ setLoadedBaseAddress()

void retdec::fileinfo::FileInformation::setLoadedBaseAddress ( unsigned long long  baseAddress)

Sets loaded image base address.

Parameters
baseAddressBase address of image.

◆ setLoaderErrorInfo()

void retdec::fileinfo::FileInformation::setLoaderErrorInfo ( const retdec::fileformat::LoaderErrorInfo ldrErrInfo)

Sets loader error message.

Parameters
ldrErrInfoThe loader error message.

◆ setLoaderStatusMessage()

void retdec::fileinfo::FileInformation::setLoaderStatusMessage ( const std::string &  statusMessage)

Sets loader status message.

Parameters
statusMessageThe status message of the loader.

◆ setManifest()

void retdec::fileinfo::FileInformation::setManifest ( const std::string &  fileManifest)

Set manifest

Parameters
fileManifestFile manifest

◆ setMd5()

void retdec::fileinfo::FileInformation::setMd5 ( const std::string &  fileMd5)

Set MD5 of input file

Parameters
fileMd5MD5 of input file

◆ setNumberOfBitsInByte()

void retdec::fileinfo::FileInformation::setNumberOfBitsInByte ( unsigned long long  bitsInByte)

Set number of bits in one byte

Parameters
bitsInByteNumber of bits in one byte

◆ setNumberOfBitsInWord()

void retdec::fileinfo::FileInformation::setNumberOfBitsInWord ( unsigned long long  bitsInWord)

Set number of bits in one word

Parameters
bitsInWordNumber of bits in one word

◆ setNumberOfDeclaredDataDirectories()

void retdec::fileinfo::FileInformation::setNumberOfDeclaredDataDirectories ( unsigned long long  noOfDirectories)

Set declared number of data directories in file

Parameters
noOfDirectoriesDeclared number of data directories in file

◆ setNumberOfDeclaredSections()

void retdec::fileinfo::FileInformation::setNumberOfDeclaredSections ( unsigned long long  noOfSections)

Set declared number of sections in file

Parameters
noOfSectionsDeclared number of sections in file

◆ setNumberOfDeclaredSegments()

void retdec::fileinfo::FileInformation::setNumberOfDeclaredSegments ( unsigned long long  noOfSegments)

Set declared number of segments in file

Parameters
noOfSegmentsDeclared number of segments in file

◆ setNumberOfDeclaredSymbolTables()

void retdec::fileinfo::FileInformation::setNumberOfDeclaredSymbolTables ( unsigned long long  noOfTables)

Set declared number of symbol tables in file

Parameters
noOfTablesDeclared number of symbol tables in file

◆ setOptionalHeaderSize()

void retdec::fileinfo::FileInformation::setOptionalHeaderSize ( unsigned long long  headerSize)

Set size of optional file header

Parameters
headerSizeSize of optional file header

◆ setOsAbi()

void retdec::fileinfo::FileInformation::setOsAbi ( const std::string &  osabi)

Set operating system or ABI extension

Parameters
osabiOS or ABI extension

◆ setOsAbiVersion()

void retdec::fileinfo::FileInformation::setOsAbiVersion ( const std::string &  abiversion)

Set OS or ABI version

Parameters
abiversionVersion of OS or ABI

◆ setOverlayEntropy()

void retdec::fileinfo::FileInformation::setOverlayEntropy ( double  entropy)

Set overlay entropy

Parameters
entropyEntropy of overlay

◆ setOverlayOffset()

void retdec::fileinfo::FileInformation::setOverlayOffset ( unsigned long long  offset)

Set overlay offset

Parameters
offsetOverlay offset

◆ setOverlaySize()

void retdec::fileinfo::FileInformation::setOverlaySize ( unsigned long long  size)

Set overlay size

Parameters
sizeSize of overlay

◆ setPathToFile()

void retdec::fileinfo::FileInformation::setPathToFile ( const std::string &  filepath)

Set binary file name

Parameters
filepathPath to input file

◆ setPdbAge()

void retdec::fileinfo::FileInformation::setPdbAge ( std::size_t  sAge)

Set age of related PDB file

Parameters
sAgeAge of related PDB file

◆ setPdbGuid()

void retdec::fileinfo::FileInformation::setPdbGuid ( const std::string &  sGuid)

Set GUID of related PDB file

Parameters
sGuidGUID of related PDB file

◆ setPdbPath()

void retdec::fileinfo::FileInformation::setPdbPath ( const std::string &  sPath)

Set original path to related PDB file

Parameters
sPathOriginal path to related PDB file

◆ setPdbTimeStamp()

void retdec::fileinfo::FileInformation::setPdbTimeStamp ( std::size_t  sTimeStamp)

Set timestamp of related PDB file

Parameters
sTimeStampTimestamp of related PDB file

◆ setPdbType()

void retdec::fileinfo::FileInformation::setPdbType ( const std::string &  sType)

Set type of related PDB file

Parameters
sTypeType of related PDB file

◆ setResourceTable()

void retdec::fileinfo::FileInformation::setResourceTable ( const retdec::fileformat::ResourceTable sTable)

Set resource table

Parameters
sTableInformation about resource table

◆ setRichHeader()

void retdec::fileinfo::FileInformation::setRichHeader ( const retdec::fileformat::RichHeader rHeader)

Set rich header

Parameters
rHeaderInformation about rich header

◆ setSectionTableCrc32()

void retdec::fileinfo::FileInformation::setSectionTableCrc32 ( const std::string &  sCrc32)

Set CRC32 of section table

Parameters
sCrc32CRC32 of section table

◆ setSectionTableEntrySize()

void retdec::fileinfo::FileInformation::setSectionTableEntrySize ( unsigned long long  entrySize)

Set size of one entry in section table

Parameters
entrySizeSize of one entry in section table

◆ setSectionTableMd5()

void retdec::fileinfo::FileInformation::setSectionTableMd5 ( const std::string &  sMd5)

Set MD5 of section table

Parameters
sMd5MD5 of section table

◆ setSectionTableOffset()

void retdec::fileinfo::FileInformation::setSectionTableOffset ( unsigned long long  offset)

Set section table offset

Parameters
offsetSection table offset

◆ setSectionTableSha256()

void retdec::fileinfo::FileInformation::setSectionTableSha256 ( const std::string &  sSha256)

Set SHA256 of section table

Parameters
sSha256SHA256 of section table

◆ setSectionTableSize()

void retdec::fileinfo::FileInformation::setSectionTableSize ( unsigned long long  tableSize)

Set section table size

Parameters
tableSizeSize of section table

◆ setSegmentTableEntrySize()

void retdec::fileinfo::FileInformation::setSegmentTableEntrySize ( unsigned long long  entrySize)

Set size of one entry in segment table

Parameters
entrySizeSize of one entry in segment table

◆ setSegmentTableOffset()

void retdec::fileinfo::FileInformation::setSegmentTableOffset ( unsigned long long  offset)

Set segment table offset

Parameters
offsetSegment table offset

◆ setSegmentTableSize()

void retdec::fileinfo::FileInformation::setSegmentTableSize ( unsigned long long  tableSize)

Set segment table size

Parameters
tableSizeSize of segment table

◆ setSha256()

void retdec::fileinfo::FileInformation::setSha256 ( const std::string &  fileSha256)

Set SHA256 of input file

Parameters
fileSha256SHA256 of input file

◆ setSignatureVerified()

void retdec::fileinfo::FileInformation::setSignatureVerified ( bool  verified)

Set whether the signature is verified

Parameters
verifiedtrue if verified, otherwise false.

◆ setStackCommitSize()

void retdec::fileinfo::FileInformation::setStackCommitSize ( unsigned long long  size)

Set size of the stack to commit

Parameters
sizeSize of the stack to commit

◆ setStackReserveSize()

void retdec::fileinfo::FileInformation::setStackReserveSize ( unsigned long long  size)

Set size of the stack to reserve

Parameters
sizeSize of the stack to reserve

◆ setStatus()

void retdec::fileinfo::FileInformation::setStatus ( retdec::cpdetect::ReturnCode  state)

Set instance status

Parameters
stateNew status of this instance

◆ setStrings()

void retdec::fileinfo::FileInformation::setStrings ( const std::vector< retdec::fileformat::String > *  sStrings)

Set pointer to detected strings

Parameters
sStringsPointer to detected strings

◆ setTargetArchitecture()

void retdec::fileinfo::FileInformation::setTargetArchitecture ( const std::string &  architecture)

Set file target architecture

Parameters
architectureFile target architecture

◆ setTimeStamp()

void retdec::fileinfo::FileInformation::setTimeStamp ( const std::string &  timestamp)

Set time stamp

Parameters
timestampTime stamp

◆ setTlsInfo()

void retdec::fileinfo::FileInformation::setTlsInfo ( const retdec::fileformat::TlsInfo info)

Set TLS information

Parameters
infoInformation TLS

◆ setVisualBasicInfo()

void retdec::fileinfo::FileInformation::setVisualBasicInfo ( const retdec::fileformat::VisualBasicInfo vbInfo)

Set visual basic information

Parameters
vbInfoInformation about visual basic

◆ setVisualBasicUsed()

void retdec::fileinfo::FileInformation::setVisualBasicUsed ( bool  set)

Sets whether visual basic informations are used.

Parameters
settrue if used, otherwise false.

◆ sortCryptoPatternMatches()

void retdec::fileinfo::FileInformation::sortCryptoPatternMatches ( )

Sort detected crypto pattern matches based on their offset

◆ sortMalwarePatternMatches()

void retdec::fileinfo::FileInformation::sortMalwarePatternMatches ( )

Sort detected malware pattern matches based on their offset

◆ sortOtherPatternMatches()

void retdec::fileinfo::FileInformation::sortOtherPatternMatches ( )

Sort detected other pattern matches based on their offset

Member Data Documentation

◆ anomalies

std::vector<std::pair<std::string,std::string> > retdec::fileinfo::FileInformation::anomalies
private

If non-empty, trhis contains the name of the dependency list that failed to load.

detected anomalies

◆ certificateTable

CertificateTable retdec::fileinfo::FileInformation::certificateTable
private

information about certificates

◆ compactManifest

std::string retdec::fileinfo::FileInformation::compactManifest
private

compact version of XML manifest

◆ crc32

std::string retdec::fileinfo::FileInformation::crc32
private

CRC32 of input file.

◆ cryptoPatterns

std::vector<Pattern> retdec::fileinfo::FileInformation::cryptoPatterns
private

detected crypto patterns

◆ directories

std::vector<DataDirectory> retdec::fileinfo::FileInformation::directories
private

information about data directories

◆ dotnetInfo

DotnetInfo retdec::fileinfo::FileInformation::dotnetInfo
private

.NET information

◆ dynamicSections

std::vector<DynamicSection> retdec::fileinfo::FileInformation::dynamicSections
private

information about dynamic sections

◆ elfCoreInfo

ElfCore retdec::fileinfo::FileInformation::elfCoreInfo
private

information about ELF core files

◆ elfNotes

std::vector<ElfNotes> retdec::fileinfo::FileInformation::elfNotes
private

information about ELF sections

◆ endianness

std::string retdec::fileinfo::FileInformation::endianness
private

endianness

◆ exportTable

ExportTable retdec::fileinfo::FileInformation::exportTable
private

information about exports

◆ failedDepsList

std::string retdec::fileinfo::FileInformation::failedDepsList
private

◆ fileClass

std::string retdec::fileinfo::FileInformation::fileClass
private

class of file

◆ fileFormat

std::string retdec::fileinfo::FileInformation::fileFormat
private

format of input file in string representation

◆ fileFormatEnum

retdec::fileformat::Format retdec::fileinfo::FileInformation::fileFormatEnum = retdec::fileformat::Format::UNKNOWN
private

format of input file in enumeration representation

◆ filePath

std::string retdec::fileinfo::FileInformation::filePath
private

path to input file

◆ fileType

std::string retdec::fileinfo::FileInformation::fileType
private

type of file (e.g. executable file)

◆ header

FileHeader retdec::fileinfo::FileInformation::header
private

file header

◆ importTable

ImportTable retdec::fileinfo::FileInformation::importTable
private

information about imports

◆ loaderInfo

LoaderInfo retdec::fileinfo::FileInformation::loaderInfo
private

information about loaded image

◆ malwarePatterns

std::vector<Pattern> retdec::fileinfo::FileInformation::malwarePatterns
private

detected malware patterns

◆ manifest

std::string retdec::fileinfo::FileInformation::manifest
private

XML manifest.

◆ md5

std::string retdec::fileinfo::FileInformation::md5
private

MD5 of input file.

◆ messages

std::vector<std::string> retdec::fileinfo::FileInformation::messages

error, warning and other messages

◆ otherPatterns

std::vector<Pattern> retdec::fileinfo::FileInformation::otherPatterns
private

other detected patterns

◆ pdbInfo

PdbInfo retdec::fileinfo::FileInformation::pdbInfo
private

information about related PDB file

◆ relocationTables

std::vector<RelocationTable> retdec::fileinfo::FileInformation::relocationTables
private

relocation tables

◆ resourceTable

ResourceTable retdec::fileinfo::FileInformation::resourceTable
private

information about resources in input file

◆ richHeader

RichHeader retdec::fileinfo::FileInformation::richHeader
private

rich header

◆ secCrc32

std::string retdec::fileinfo::FileInformation::secCrc32
private

CRC32 of section table.

◆ secMd5

std::string retdec::fileinfo::FileInformation::secMd5
private

MD5 of section table.

◆ secSha256

std::string retdec::fileinfo::FileInformation::secSha256
private

SHA256 of section table

◆ sections

std::vector<FileSection> retdec::fileinfo::FileInformation::sections
private

information about sections in file

◆ segments

std::vector<FileSegment> retdec::fileinfo::FileInformation::segments
private

information about segments in file

◆ sha256

std::string retdec::fileinfo::FileInformation::sha256
private

SHA256 of input file.

◆ signatureVerified

std::optional<bool> retdec::fileinfo::FileInformation::signatureVerified
private

indicates whether the signature is present and if it is verified

◆ status

retdec::cpdetect::ReturnCode retdec::fileinfo::FileInformation::status = retdec::cpdetect::ReturnCode::OK
private

◆ strings

Strings retdec::fileinfo::FileInformation::strings
private

detected strings

◆ symbolTables

std::vector<SymbolTable> retdec::fileinfo::FileInformation::symbolTables
private

symbol tables

◆ targetArchitecture

std::string retdec::fileinfo::FileInformation::targetArchitecture
private

target architecture

◆ tlsInfo

TlsInfo retdec::fileinfo::FileInformation::tlsInfo
private

information about thread-local storage

◆ toolInfo

retdec::cpdetect::ToolInformation retdec::fileinfo::FileInformation::toolInfo

detected tools

◆ visualBasicInfo

VisualBasicInfo retdec::fileinfo::FileInformation::visualBasicInfo
private

visual basic information


The documentation for this class was generated from the following files: