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 


URGENT DELPHI HELP :) +REP

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

Joined: 18 Jun 2007
Posts: 1011
Location: Australia.

PostPosted: Sun Jun 29, 2008 1:48 am    Post subject: URGENT DELPHI HELP :) +REP Reply with quote

Ok so I've got this asm code for CRC BYPASS. But I Want to Enable it via a check box in Delphi. I know you don't use that whole snippet. But can someone shed some light on how I can do this?. I also Know I need to attach to the process before I can edit the memory but I don't know how.

This is the tutorial that I've found. But since I'm new to Delphi. I don't really get it.

Writing To memory: http://www.gamersneeds.net/forums/c-c/103331-delphi-writing-memory.html


Code:
[Enable]
Alloc(NewMemory, 4194304)
Alloc(CRCCave, 128)
Alloc(CopyMemory, 128)
CreateThread(CopyMemory)
Label(End)

0047CC9E:
jmp CRCCave

CRCCave:
cmp ecx,00400000
jl End
cmp ecx,00800000
jg End
add ecx,NewMemory-00400000

End:
mov eax,[ebp+10]
push esi
push edi
jmp 0047CCA3

CopyMemory:
mov esi,00400000
mov edi,NewMemory
mov ecx, 
rep movsd
push 00
call ExitThread
[Disable]


I need urgent help Smile

_________________


Last edited by angerist on Sun Jun 29, 2008 2:34 am; edited 2 times in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Jun 29, 2008 1:57 am    Post subject: Reply with quote

God all these people trying to do this. Look, the way that Dark Byte does this is he has a function that converts the Auto Assembly into bytes and writes those bytes into the processes memory. Just download CE 5.4's source and then look at it's function for that.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
angerist
Grandmaster Cheater Supreme
Reputation: 0

Joined: 18 Jun 2007
Posts: 1011
Location: Australia.

PostPosted: Sun Jun 29, 2008 2:04 am    Post subject: Reply with quote

Im not doing this for the same reason the others are doing this. It just happened to be the first snipped I could find. But you've just given me a nudge in the right direction. I can do this in C# but since I'm learning Delphi I thought I may aswell .
_________________
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 29, 2008 10:59 am    Post subject: Reply with quote

Simply allocated 0x400000 bytes of memory for the dump then copy MapleStory's entire memory (0x400000) to it.

Then make a function for a cave using inline asm.

finally overwrite the bytes at the CRC Address to the jump to your function for the cave.

In C++ it looks like this:

Code:
DWORD Return; // Just to return to the address after our jump
void __declspec(naked) CRCHook()
{
    __asm
   {
        pop [Return]
        cmp ecx, 0x00400000
        jb original
        cmp ecx, 0x00800000
        ja original
        sub ecx, 0x00400000
        add ecx, [lpDump]

        original:
        mov eax,[ebp+0x10]
        push esi
        push edi

        push [Return]
        ret
    }
}


lpDump is simply a LPVOID definition with an assigned variable as such:

Code:
lpDump = VirtualAlloc( NULL, 0x00400000, MEM_COMMIT, PAGE_EXECUTE_READWRITE );
__movsb( (BYTE*)lpDump, (BYTE*)0x00400000, 0x00400000 );


Hope that helped. Even though its in C++, I'm sure you can convert it to delphi.

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

Joined: 18 Jun 2007
Posts: 1011
Location: Australia.

PostPosted: Mon Jun 30, 2008 5:27 am    Post subject: Reply with quote

Thanks so much. I've converted it. And it works amazingly. + rep for you Wink
_________________
Back to top
View user's profile Send private message
h4c0r-BG
Master Cheater
Reputation: 0

Joined: 29 Nov 2006
Posts: 449
Location: The yogurt country

PostPosted: Fri Jul 04, 2008 10:54 am    Post subject: Reply with quote

angerist wrote:
Thanks so much. I've converted it. And it works amazingly. + rep for you Wink


Can you share the delphi converted code? +rep for you. Wink

_________________

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
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