import org.boris.pecoff4j.resources.IconImage;
public class IconExtractor
{
public static void extract(File pecoff, File outputDir) throws IOException {
PE pe = PEParser.parse(pecoff);
ResourceDirectory rd = pe.getImageData().getResourceTable();
if (rd == null)
return;
ResourceEntry[] entries = ResourceHelper.findResources(rd,
ResourceType.GROUP_ICON);
for (int i = 0; i < entries.length; i++) {