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 


Asm in delphi..
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Xocitus
Newbie cheater
Reputation: 0

Joined: 19 Jul 2007
Posts: 15

PostPosted: Wed Oct 24, 2007 12:04 pm    Post subject: Asm in delphi.. Reply with quote

How would i do in delphi:

[TO ENABLE]
Code:
00411093:

jmp 0095161C
nop
0095161C:
mov ebx,458CA000
mov eax,0
mov [ecx+0000017c],ebx
mov [ecx+00000180],eax
mov [ecx+00000184],ebx
jmp 004110a9
nop


[TO DISABLE]
Code:
00411093:
mov [ecx+0000017c],edx
mov edx,[esp+0c]
mov [ecx+00000180],eax
mov [ecx+00000184],edx


^^is has to change the value of another game...
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Wed Oct 24, 2007 12:16 pm    Post subject: Reply with quote

vener made a TUT using CE source.
Back to top
View user's profile Send private message
Xocitus
Newbie cheater
Reputation: 0

Joined: 19 Jul 2007
Posts: 15

PostPosted: Wed Oct 24, 2007 12:22 pm    Post subject: Reply with quote

Can u give a little more details..... i cant really find
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Wed Oct 24, 2007 1:11 pm    Post subject: Reply with quote

Xocitus wrote:
Can u give a little more details..... i cant really find


Sure thing !
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Wed Oct 24, 2007 9:56 pm    Post subject: Reply with quote

WriteProcessMemory.
I think you can also use "asm", make the script there, convert them to bytes and then it would be easier.
CE does the opposite thing, convert bytes to op-codes, so it won't help.
Or you can also write the value instead of lots of bytes.
Edit: sorry, didn't see kaspersky's post.
Thats only for ce's trainer, he brought some parts of code from ce's trainer, what if he wants to make his own?

Quote:
I am redoing the whole trainer of mine to be more efficent and simple.
I will readd the features later shown in the old part...REV 2

Old, maybe detected?
and he uses the code with variables that are already exist in the trainer, that way he must copy almost the whole code to make one of his own.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Thu Oct 25, 2007 12:44 am    Post subject: Reply with quote

Symbol wrote:
WriteProcessMemory.
I think you can also use "asm", make the script there, convert them to bytes and then it would be easier.
CE does the opposite thing, convert bytes to op-codes, so it won't help.
Or you can also write the value instead of lots of bytes.
Edit: sorry, didn't see kaspersky's post.
Thats only for ce's trainer, he brought some parts of code from ce's trainer, what if he wants to make his own?

Quote:
I am redoing the whole trainer of mine to be more efficent and simple.
I will readd the features later shown in the old part...REV 2

Old, maybe detected?
and he uses the code with variables that are already exist in the trainer, that way he must copy almost the whole code to make one of his own.


CE can also convert opcode to an array of bytes. Check the "Assemble" function in assemblerunit.pas
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Oct 25, 2007 1:31 am    Post subject: Reply with quote

Yea, I should have think about it, it gotta convert the op-codes we write in the script to bytes first. Smile
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Thu Oct 25, 2007 3:06 am    Post subject: Reply with quote

The simplest way to do, instead of coding a Trainer, code a .dll (With/WO UI) and just take address you wanna change it's assemble (Hexadecimal).
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Thu Oct 25, 2007 3:13 am    Post subject: Reply with quote

Kaspersky wrote:
The simplest way to do, instead of coding a Trainer, code a .dll (With/WO UI) and just take address you wanna change it's assemble (Hexadecimal).


Wanna post a tut, HOW ? Razz
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Thu Oct 25, 2007 4:13 am    Post subject: Reply with quote

Code:

BOOL APIENTRY DllMain(HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
{
  if(ul_reason_for_call==DLL_PROCESS_ATTACH)
    *(BYTE*)<an address> = <change to..>;
}

About the shortest way to do it..
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Thu Oct 25, 2007 4:28 am    Post subject: Reply with quote

rEakW0n wrote:
Kaspersky wrote:
The simplest way to do, instead of coding a Trainer, code a .dll (With/WO UI) and just take address you wanna change it's assemble (Hexadecimal).


Wanna post a tut, HOW ? Razz


If i do, it'll be in C though -.-"

Firs of all, i'll try making one in Delphi too, if it works then i'll make a Tut for C and Delphi Smile
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Thu Oct 25, 2007 5:12 am    Post subject: Reply with quote

Kaspersky wrote:
rEakW0n wrote:
Kaspersky wrote:
The simplest way to do, instead of coding a Trainer, code a .dll (With/WO UI) and just take address you wanna change it's assemble (Hexadecimal).


Wanna post a tut, HOW ? Razz


If i do, it'll be in C though -.-"

Firs of all, i'll try making one in Delphi too, if it works then i'll make a Tut for C and Delphi Smile


*merry*
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Oct 25, 2007 3:32 pm    Post subject: Reply with quote

Just use WriteProcessMemory. For example, write: (i'm pretty sure this is correct...) to 0095161C

BB 00 A0 8C 45 B8 00 00 00 00 89 99 7C 01 00 00 89 81 80 01 00 00 89 99 84 01 00 00 E9 6D EC B0 FF 90

and there's your

mov ebx,458CA000
mov eax,0
mov [ecx+0000017c],ebx
mov [ecx+00000180],eax
mov [ecx+00000184],ebx
jmp 004110a9
nop
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Thu Oct 25, 2007 3:52 pm    Post subject: Reply with quote

slovach wrote:
Just use WriteProcessMemory. For example, write: (i'm pretty sure this is correct...) to 0095161C

BB 00 A0 8C 45 B8 00 00 00 00 89 99 7C 01 00 00 89 81 80 01 00 00 89 99 84 01 00 00 E9 6D EC B0 FF 90

and there's your

mov ebx,458CA000
mov eax,0
mov [ecx+0000017c],ebx
mov [ecx+00000180],eax
mov [ecx+00000184],ebx
jmp 004110a9
nop


yea but please tell me how to exactly do it?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Oct 25, 2007 4:46 pm    Post subject: Reply with quote

slovach wrote:
WriteProcessMemory
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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