ergrelet / unlicense

Dynamic unpacker and import fixer for Themida/WinLicense 2.x and 3.x.
GNU General Public License v3.0
1.03k stars 188 forks source link

Windows 7 and older OS Dumps #101

Closed OptiJuegos closed 1 year ago

OptiJuegos commented 1 year ago

Hi, with the new Recent version of Unlicense, i have some issues running some applications on older Microsoft operative system. Because now, i can only "unpack" an exe from windows 10. (Because of python 11)

This is an issue, now i can't run dumped exes from windows 10 on windows 7, because it requieres a dll called "combase.dll" to initialize the process.

The only solution i had before, its to dump the exe from Windows 7, that would make the file use ucrtbase.dll instead of combase.dll fixing the issue.

I tried running the app from compatibility mode and it didn't make a difference so idk how to fix it

Screenshot_1

greenozon commented 1 year ago

Have you tried to install python 3.10+ on old good Win7? there is a repo where guys are still creating compatible installers (as bastards from python community refused to do it)

https://github.com/adang1345/PythonWin7

OptiJuegos commented 1 year ago

Nop, i'm gonna try it

greenozon commented 1 year ago

Using it for last year, no issues so far

image

OptiJuegos commented 1 year ago

Ok i tried but i got a lot of issues. First of all, i can't get visual studio 2022 because w7 doesn't appear to support in anymore, maybe with an older version works but i installed it on W10, compile WinLicense and it didn't work either, i dropped the exe but it throwed an error. Maybe its a skill issue mine

After that, my idea was to mod the exe to put the W7 version of python38.dll in it, i tried without success, it creates a tmp directory and erases every time it closes, no idea where the DLL is located in the exe so no clue in replacing it.

You just have to replace this dll: python311.zip and it should work but i will keep trying.

And BTW the older version didn't work with the new exe that i wanna mod, soo i need the new one instead

OptiJuegos commented 1 year ago

Ok i found the solution.

Open CFF Explorer and exe, go to Import Directory, search "combase.dll", change the name of combase to "ole32.dll". Save the changes and now the exe should work on Windows 7.