| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| gogenry How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 14 Dec 2006
 Posts: 2
 
 
 | 
			
				|  Posted: Thu Dec 14, 2006 7:45 am    Post subject: auto assembler edits |   |  
				| 
 |  
				| i was wondering if it was possoble to edit this code to and +4000 to its current function, sry if im a little vague, im rather new. i can clarify more if there are any questions. thx 
 alloc(newmem,2048) //2kb should be enough
 label(returnhere)
 label(originalcode)
 label(exit)
 
 00503764:
 jmp newmem
 
 returnhere:
 
 newmem:
 
 
 originalcode:
 mov esi,edx
 repe movsd
 mov eax,[edx+0c]
 
 exit:
 jmp returnhere
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| samuri25404 Grandmaster Cheater
 
  Reputation: 7 
 Joined: 04 May 2007
 Posts: 955
 Location: Why do you care?
 
 | 
			
				|  Posted: Tue Jun 05, 2007 5:12 pm    Post subject: |   |  
				| 
 |  
				| I have a few questions: 
 1) What game is this? (A link would be nice)
 
 2) What exactly are you trying to achieve in it?
 
 3) Why is there no code in the "newmem" section of your code?
 
 I think, if you just want to add 4000 to something's current function, you could do one of two things.
 
 One, if it is already an 'add' command, then just edit the opcode. Or two, if it's some other opcode, then for the newmem section of the code put:
 
 
  	  | Code: |  	  | add <address goes here>, 4000
 
 | 
 
 If neither work, I'd have to look at the game and see what you're trying to do.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Labyrnth Moderator
 
 ![]() Reputation: 10 
 Joined: 28 Nov 2006
 Posts: 6301
 
 
 | 
			
				|  Posted: Tue Jun 05, 2007 5:35 pm    Post subject: |   |  
				| 
 |  
				| All he did was post the template for the instruction he found. I suggest reading a little bit instead of posting what you want done.
 I will only do this once, and no guarantee's it is going to work.
 So there you go.
 
 
  	  | Code: |  	  | alloc(newmem,2048) //2kb should be enough label(returnhere)
 label(originalcode)
 label(exit)
 
 00503764:
 jmp newmem
 
 returnhere:
 
 newmem:
 mov edx,FA0
 
 originalcode:
 mov esi,edx
 repe movsd
 mov eax,[edx+0c]
 
 exit:
 jmp returnhere
 | 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| samuri25404 Grandmaster Cheater
 
  Reputation: 7 
 Joined: 04 May 2007
 Posts: 955
 Location: Why do you care?
 
 | 
			
				|  Posted: Tue Jun 05, 2007 7:05 pm    Post subject: |   |  
				| 
 |  
				|  	  | Labyrnth wrote: |  	  | All he did was post the template for the instruction he found. I suggest reading a little bit instead of posting what you want done.
 I will only do this once, and no guarantee's it is going to work.
 So there you go.
 
 
  	  | Code: |  	  | alloc(newmem,2048) //2kb should be enough label(returnhere)
 label(originalcode)
 label(exit)
 
 00503764:
 jmp newmem
 
 returnhere:
 
 newmem:
 mov edx,FA0 //Should it not be "add edx,FA0"?
 
 originalcode:
 mov esi,edx
 repe movsd
 mov eax,[edx+0c]
 
 exit:
 jmp returnhere
 | 
 | 
 
 I believe he said he wanted it to do was make it add 4000 to its function. (Just FYI, gogenry, FA0 is 4000 in Hexadecimal, the programming number system.)
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Chi-Tur How do I cheat?
 
  Reputation: 0 
 Joined: 13 Jun 2007
 Posts: 1
 
 
 | 
			
				|  Posted: Wed Jun 13, 2007 5:17 pm    Post subject: mmm |   |  
				| 
 |  
				| could u do dat with another address |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Labyrnth Moderator
 
 ![]() Reputation: 10 
 Joined: 28 Nov 2006
 Posts: 6301
 
 
 | 
			
				|  Posted: Wed Jun 13, 2007 5:51 pm    Post subject: |   |  
				| 
 |  
				|  	  | samuri25404 wrote: |  	  | mov edx,FA0 //Should it not be "add edx,FA0"?
 
 | 
 Your right, Good eye. Thank you for bringing it up.
 
 
 
 
  	  | Chi-Tur wrote: |  	  | could u do dat with another address | 
 You can do that with any address, But it has to be for a reason, Not just to do it lol.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |