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 


changing assembler code with a trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
wookii
How do I cheat?
Reputation: 0

Joined: 23 Nov 2007
Posts: 2

PostPosted: Fri Nov 23, 2007 9:31 am    Post subject: changing assembler code with a trainer Reply with quote

hi, might be an easy one

but i was wondering if it is possible to change a assembler code using a trainer or what ever. NOPing the address does not help me out. Also i dont want to open ce all the time to edit it manually in ce memory viewer.


for example a want to change:

240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb0]

to:


240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb8]


im also interested how to genereate soem autoloader witch autoloads when my process starts, changes some values and quits itself afterwards.


eazzy
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Nov 23, 2007 9:59 am    Post subject: Reply with quote

Well first of all the bytes here are already for: fld [esi+00000bb8]
240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb0]


240192B2 - d9 86 b8 0b 00 00 - fld [esi+00000bb8]

But your answer is yes you can do what you are asking.


Code:

[ENABLE]
label(back)

????????: // Code cave address
fld [esi+00000bb8]
jmp back

240192B2:
jmp ????????
nop
back:

[DISABLE]
240192B2:
fld [esi+00000bb0]


Also you could do:

Code:

[ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00




TMK:
ON.
Code:

POKE 240192B2 d9 86 b8 0b 00 00

OFF.
Code:

POKE 240192B2 d9 86 b0 0b 00 00
Back to top
View user's profile Send private message
wookii
How do I cheat?
Reputation: 0

Joined: 23 Nov 2007
Posts: 2

PostPosted: Fri Nov 23, 2007 11:35 am    Post subject: Reply with quote

MANY Thanks Labyrnth,


I,v done it Very Happy Very Happy Very Happy

i used:

Code:
[ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00



best
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Nov 23, 2007 12:13 pm    Post subject: Reply with quote

wookii wrote:
MANY Thanks Labyrnth,


I,v done it Very Happy Very Happy Very Happy

i used:

Code:
[ENABLE]
240192B2:
db d9 86 b8 0b 00 00
[DISABLE]
240192B2:
db d9 86 b0 0b 00 00



best


Your script is overkill, better:
Code:
[ENABLE]
240192B4:
db b8
[DISABLE]
240192B4:
db b0
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Nov 23, 2007 6:51 pm    Post subject: Reply with quote

They are working with the address they found, so as to not confuse the situation even more the way i did it is very simple.
The outcome is exactly the same.

Allot of people don't know how to count address's.

Now instead of trying to show out, you could have explained why you used a different address then he posted.
But since you didn't i will explain it for you.



240192B2 d9 86 b0 0b 00 00

Each byte has it's own address so the byte you want to change is "b0"
@ address 240192B4
In the memory view you will see
240192B2
240192B8
^ You can see there is a big gap between these 2 address's, Below explains it.
------------------------
240192B2 d9
240192B3 86
240192B4 b0 <------------- Targeted address & byte
240192B5 0b
240192B6 00
240192B7 00


So by doing below you only write to the address of the byte you want to change.
-------------------------------------------------------------------------------------
240192B4:
db b0
Back to top
View user's profile Send private message
Noval0k
Newbie cheater
Reputation: 0

Joined: 23 Nov 2007
Posts: 17

PostPosted: Fri Nov 23, 2007 6:58 pm    Post subject: Reply with quote

i am trying to do the same and i didnt quite get how you told him to do it.

i have
Code:
0043810B - 29 9f c0 00 00 00 - sub [edi+000000c0],ebx


and i want to change to

Code:
0043810B - 39 9f c0 00 00 00 - cmp [edi+000000c0],ebx


i have tried alot of stuff but cant get it to work in my trainer.
Any help would be apprecaited.
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Nov 23, 2007 7:12 pm    Post subject: Reply with quote

Well im not sure why you want to change sub to cmp, But i will show you.
Code:
0043810B - 29 9f c0 00 00 00 - sub [edi+000000c0],ebx
Code:
0043810B - 39 9f c0 00 00 00 - cmp [edi+000000c0],ebx

Your address is 0043810B
0043810B 29

But, since your writing to the first byte of the address, you do this

The code needed:
Code:

[ENABLE]
0043810B:
db 39
[DISABLE]
0043810B:
db 29


Last edited by Labyrnth on Fri Nov 23, 2007 7:24 pm; edited 2 times in total
Back to top
View user's profile Send private message
Noval0k
Newbie cheater
Reputation: 0

Joined: 23 Nov 2007
Posts: 17

PostPosted: Fri Nov 23, 2007 7:14 pm    Post subject: Reply with quote

i know this is really noobish of me. But i dont quite know how to use the code you gave me. I have only messed with the CE trainer maker, And i want to change it becase the result of the code is god mode Razz
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Nov 23, 2007 7:19 pm    Post subject: Reply with quote

Open memory view by clicking the button.
Hit ctrl+A and then paste it in the blank box.
Then click File> assign to current cheat table
Back to top
View user's profile Send private message
Noval0k
Newbie cheater
Reputation: 0

Joined: 23 Nov 2007
Posts: 17

PostPosted: Fri Nov 23, 2007 7:24 pm    Post subject: Reply with quote

Man thx a Million,
I am glad you helped,
if you would like i will add you to the credits of my trainer Smile
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Nov 23, 2007 7:25 pm    Post subject: Reply with quote

Nah thats ok, i like to help if someone is willing to listen and learn.
Also look at my post again i edited it just a bit.
I thought you was altering a couple bytes but you just need 1.
Back to top
View user's profile Send private message
Noval0k
Newbie cheater
Reputation: 0

Joined: 23 Nov 2007
Posts: 17

PostPosted: Fri Nov 23, 2007 7:27 pm    Post subject: Reply with quote

Awesome man.
Agian thx a mil, i am just glad you helped Razz
and just so you know its for assault cube Razz
And i put in application to join the forum in your sig Razz

Thx agian
Noval0k
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