bugicoutils - Bugs: bug #64499, Can't extract correctly icons from...

 
 

bug #64499: Can't extract correctly icons from Windows 1.x/2.x binaries

Submitter:  superbonaci <superbonaci>
Submitted:  Mon 31 Jul 2023 06:44:08 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 31 Jul 2023 06:47:30 PM UTC, comment #1: 

The attachment includes 2 exe and 1 ico, all files have been officially released by Microsoft.

superbonaci <superbonaci>
Mon 31 Jul 2023 06:44:08 PM UTC, original submission:  

Current version:

$ wrestool --version
wrestool (icoutils) 0.32.3
Copyright (C) 1998 Oskar Liljeblad
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Oskar Liljeblad.


wrestool displays this information:

$ wrestool -l CARDFILE.EXE
--type=3 --name=1 [type=icon offset=0x7fa0 size=1040]
--type=4 --name=1 [type=menu offset=0x83b0 size=336]
--type=5 --name=6 [type=dialog offset=0x8500 size=144]
--type=5 --name=1 [type=dialog offset=0x8590 size=144]
--type=5 --name=2 [type=dialog offset=0x8620 size=128]
--type=5 --name=3 [type=dialog offset=0x86a0 size=112]
--type=5 --name=5 [type=dialog offset=0x8710 size=96]
--type=5 --name=11 [type=dialog offset=0x8770 size=304]
--type=5 --name=7 [type=dialog offset=0x88a0 size=112]
--type=5 --name=8 [type=dialog offset=0x8910 size=112]
--type=5 --name=9 [type=dialog offset=0x8980 size=240]
--type=5 --name=10 [type=dialog offset=0x8a70 size=128]
--type=6 --name=1 [type=string offset=0x8af0 size=176]
--type=6 --name=2 [type=string offset=0x8ba0 size=496]
--type=6 --name=3 [type=string offset=0x8d90 size=224]
--type=9 --name=1 [type=accelerator offset=0x8e70 size=64]
-verbatim

trying to extract:
+verbatim+
wrestool -x --type=3 --name=1 --output=out CARDFILE.EXE
wrestool: CARDFILE.EXE: don't know how to extract resource, try `--raw'


forcing it:

$ wrestool -x --type=3 --name=1 --raw --output=extracted CARDFILE.EXE


generates the file "out/CARDFILE.EXE_3_1", which is 1040 bytes, when the ICO has 1038. The 2 additional bytes are at the end of the extracted file and don't belong to the icon. The first 1038 bytes do match exactly the icon and are fine.

superbonaci <superbonaci>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #55001:  exe-and-ico-samples.zip added by superbonaci (25KiB - application/zip - 2 exe and 1 ico)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2023-07-31 superbonaci Attached File- Added exe-and-ico-samples.zip, #55001

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code