I have dumped this .ico file from ResHacker from some particular PE file. I use IcoImagePlugin.IcoImageFile but getting:
python37\lib\site-packages\PIL\Image.py:800: in frombytes
raise ValueError("not enough image data")
when debugging it seems that it derives bpp as 8 instead of 1.
Icon4.zip