Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Unrandomizer not working on MSVCR120.rand

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Fri Jan 01, 2016 2:29 pm    Post subject: Unrandomizer not working on MSVCR120.rand Reply with quote

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!

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25831
Location: The netherlands

PostPosted: Fri Jan 01, 2016 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Fri Jan 01, 2016 4:56 pm    Post subject: Reply with quote

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.

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites