flat assembler
Message board for the users of flat assembler.

Index > Windows > question about a loader...

Author
Thread Post new topic Reply to topic
randomdude



Joined: 01 Jun 2012
Posts: 83
randomdude
i have made a loader based on comrade's Loader Tool
http://comrade.ownz.com/projects/petools.html

it works fine, the problem is that i want that the process also calls an exported function from my injected dll

i tried memory patching the process to jump to a codecave in my injected dll

mov ebx,12345678h ;address to patch
invoke VirtualProtect,ebx,5,PAGE_EXECUTE_READWRITE,lpflOldProtect
invoke GetModuleHandle,0
invoke GetProcAddress,eax,funcname
sub eax,ebx
sub eax,5
mov byte[ebx],0E9h
inc ebx
mov dword[ebx],eax

but it always crashes

any help would be appreciated Smile

edit:

nvm, i figured it out myself
Post 04 Aug 2012, 19:57
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.