Created
May 13, 2021 17:04
-
-
Save Saket-Upadhyay/0f960e21bd5ce36d8672867aded31489 to your computer and use it in GitHub Desktop.
Reversed Code for Win95 Product Key Check function from setupx.dll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Reverse Engineered by x64mayhem for educational purpose only. For use in related digital article. | |
undefined2 __stdcall16far PersonalProductKeyCheck(int param_1,undefined2 param_2) | |
{ | |
int iVar1; | |
undefined2 unaff_SS; | |
undefined2 uVar2; | |
undefined local_6 [3]; | |
undefined local_3; | |
uVar2 = 0x1140; | |
PARTIAL_COPY(3,param_1 + 6,param_2,local_6,unaff_SS); | |
local_3 = 0; | |
iVar1 = ATOI(local_6); | |
if ((((iVar1 == 333) || (iVar1 == 444)) || (iVar1 == 555)) || | |
(((iVar1 == 666 || (iVar1 == 777)) || ((iVar1 == 888 || (iVar1 == 999)))))) { | |
uVar2 = 0; | |
} | |
else { | |
uVar2 = MOD7check(param_1 + 10,param_2,uVar2); | |
} | |
return uVar2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment