| View previous topic :: View next topic |
| Author |
Message |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Fri Jan 01, 2016 2:29 pm Post subject: Unrandomizer not working on MSVCR120.rand |
|
|
On a game I am debugging, the random number generator is not affected by the unrandomizer feature of CE.
The game uses MSVCR120.dll to generate random numbers and Cheat Engine doesn't affect it at all (it prefers patching msvcrt.dll or other DLLs instead).
I am pointing this out because it's not some custom PRNG the game is using, but it's something windows has by default, so I think this should be registered as a possible PRNG CE should check.
Code of the function:
| Code: | MSVCR120.rand - E8 C866F6FF - call MSVCR120.getptd
MSVCR120.rand+5- 69 48 14 FD430300 - imul ecx,[eax+14],000343FD
MSVCR120.rand+C- 81 C1 C39E2600 - add ecx,00269EC3
MSVCR120.rand+12- 89 48 14 - mov [eax+14],ecx
MSVCR120.rand+15- C1 E9 10 - shr ecx,10
MSVCR120.rand+18- 81 E1 FF7F0000 - and ecx,00007FFF
MSVCR120.rand+1E- 8B C1 - mov eax,ecx
MSVCR120.rand+20- C3 - ret |
Please take care of this.
PS: Happy to register to this forum after so much time!
_________________
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Fri Jan 01, 2016 2:59 pm Post subject: |
|
|
one thing you could do is execute this aa script:
| Code: |
MSVCR120.rand:
jmp MSVCRT.rand
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
mgostIH Expert Cheater
Reputation: 3
Joined: 01 Jan 2016 Posts: 159
|
Posted: Fri Jan 01, 2016 4:56 pm Post subject: |
|
|
| Dark Byte wrote: | one thing you could do is execute this aa script:
| Code: |
MSVCR120.rand:
jmp MSVCRT.rand
|
|
Oh, I don't have any problem with unrandomizing it myself, I already did manually and with a c++ program, but I just thought this should be added to the unrandomizer: a lot of (newbie) CE users would not be able to unrandomize a game themselves.
_________________
|
|
| Back to top |
|
 |
|