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 


Freezing Values via Assembly.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
RaC
Grandmaster Cheater
Reputation: 0

Joined: 29 May 2006
Posts: 938

PostPosted: Sun Oct 29, 2006 2:40 am    Post subject: Freezing Values via Assembly. Reply with quote

Well, I looked up in the CE source and couldn't find an answer, nor google gave too much support.
So my question is - How do you freeze a value using assembly?

_________________
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Oct 29, 2006 3:49 am    Post subject: Reply with quote

replace the code that changed that value with nops.

or a more complex rotuine that only filters out that address from changing

_________________
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
RaC
Grandmaster Cheater
Reputation: 0

Joined: 29 May 2006
Posts: 938

PostPosted: Sun Oct 29, 2006 7:43 am    Post subject: Reply with quote

Noping it is quite troublesome because the value I'm trying to freeze belongs to pointer.
Every time the process runs the pointer is pointed into a different address making it impossible for me to use it as CTAutoAssembler script. (the need to locate the address every time..)

_________________
Back to top
View user's profile Send private message
bahblah
Grandmaster Cheater
Reputation: 0

Joined: 27 Sep 2005
Posts: 633

PostPosted: Wed Nov 01, 2006 10:38 pm    Post subject: Reply with quote

alloc(Threadproc, 1024)
alloc(DoFreeze, 4)
label(EndThread)
label(Loopy)

DoFreeze:
dd 1

Threadproc:
pushad
Loopy:
cmp dword [DoFreeze], 0
je EndThread
mov eax, [pointer]
mov [eax+offset], valuetofreezeat
push FreezeInterval
call Sleep
jmp Loopy
EndThread:
popad
retn 4


After auto-assembling it, use CE's "Create Thread" feature to create a thread with a starting address of Threadproc


And nopping should work unless it's self-modifying code Shocked The code instructions that write to the pointer value should be static.
Back to top
View user's profile Send private message
Glest
Master Cheater
Reputation: 0

Joined: 12 Jul 2006
Posts: 334
Location: The Netherlands

PostPosted: Thu Nov 02, 2006 2:47 am    Post subject: Reply with quote

yeah, that's correct. A nop should still work with pointers. Except if the code handles more stuff than just one. Then you indeed need to have a working pointer to compare the adress in the AA. But you'd also need working pointer if you want to freeze it the standard way.
_________________
Keyboard Piano
www.keyboard-piano.com

Reprograming in C++
Computer Piano
*Not done yet*
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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