Thank you so much for writing this up, both as a crack but also for someone interested in furthering my Python knowledge, reading the source-code for this has been a good learning experience.
Unfortunately the patcher doesn't seem to be working for me for Sublime Text 4 Stable Build 4126. I'm copying the .exe from my Program Files into the patcher folder and patching directly from there to avoid permissions issues, but trying to enter a license gives me this error:
Here's my console output:
**PATH**\sublime-text-4-patcher (main -> origin)
λ python sublime_text_4_patcher.py
----------------------------------------------------------------
Sublime Text v4107-4126 Windows x64 Patcher by rainbowpigeon
----------------------------------------------------------------
Enter file path to sublime_text.exe: sublime_text.exe
[=] Processing ref for sig 48 8D 05 ? ? ? ? 48 8D 95 ? ? ? ? 48 89 02 48 8D 05 ? ? ? ? 48 89 42 08 48 8D 4D ? E8 ? ? ? ? B9...
[=] Found lea: \x48\x8d\x05\xe4\x48\x75\x00\x48\x8d\x95\x58\x02\x00\x00\x48\x89\x02\x48\x8d\x05\xd7\x48\x75\x00\x48\x89\x42\x08\x48\x8d\x4d\xb0\xe8\x28\x03\x00\x00\xb9
[=] Found relative address: 0x7548e4
[=] Determined actual offset: 0x759432
[+] Sublime Text Version 4126 detected
[=] Processing ref for sig 4C 8D 4D ? E8 ? ? ? ? ? 8B ? ? ? ? ? 85 C0...
[=] Found call: \x4c\x8d\x4d\x54\xe8\x0b\xe2\xff\xff\x49\x8b\x8e\x68\x02\x00\x00\x85\xc0
[=] Found relative address: 0xffffe20b
[=] Determined actual offset: 0xa7214
[+] Applying all patches...
[=] Offset 0x711a : patching \xe8\xe1\x36\x20\x00 with \x90\x90\x90\x90\x90
[=] Offset 0x7133 : patching \xe8\xc8\x36\x20\x00 with \x90\x90\x90\x90\x90
[=] Offset 0xa7214 : patching \x55\x41\x57\x41 with \x48\x31\xc0\xc3
[=] Offset 0xa8d53 : patching \x55\x56\x57\x48\x83\xec\x30 with \x48\x31\xc0\x48\xff\xc0\xc3
[=] Offset 0xa6e0f : patching \x55\x56\x57\x48 with \x48\x31\xc0\xc3
[=] Offset 0x400 : patching \x41 with \xc3
[+] All patches applied!
[+] Backing up original file at sublime_text.exe.bak
[+] Patched file written at sublime_text.exe
Enjoy! :)
----------------------------------------------------------------
Report any issues at github.com/rainbowpigeon/sublime-text-4-patcher/issues!
----------------------------------------------------------------
I've cloned this repo directly and I'm running Python 3. Any help you could offer would be greatly appreciated thanks!