icoextract.pe_extractor

logger = <Logger icoextract (WARNING)>

Win32/Win64 Portable Executable (PE) icon extractor.

PEIconExtractor(filename=None, data=None)

Loads an Win32/Win64 Portable Executable from the given filename or data (raw buffer). If both filename and data are given, filename takes precedence.

If the executable has contains no icons, this will raise NoIconsAvailableError.

def list_group_icons( self) -> list[tuple[icoextract.types.ResourceID, list[tuple[icoextract.types.GroupIconDirEntry, int, int]]]]:

Returns all group icon entries as a list of (resource ID, group icon dir entry) tuples.