|
-
Mar 15th, 2007, 11:30 AM
#1
Determine function parameters from asm source
Ok, not sure if anyone can help wiht this, but doesn't hurt to ask. I am trying to hook a process and call a function within that process. I have the asm source and can call the function by address, but I do not know how to determine the proper parameters to pass. Is it possible to determine the parameters with the asm source? If needed I can post the source code.
Thanks
-
Mar 15th, 2007, 07:45 PM
#2
Re: Determine function parameters from asm source
To some degree, but only very roughly. You need to recognize access to parameters within the function, and then figure out what the program is doing with them and, based on that, what the parameters are.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 21st, 2007, 10:51 AM
#3
Member
Re: Determine function parameters from asm source
Or easier, debug another program that calls that function, the pushes in advance of the call are the parameters, and you get an idea of what is in the parameters. Remember that c++ code also often passes information in registers to a called function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|