Results 1 to 3 of 3

Thread: Determine function parameters from asm source

  1. #1

    Thread Starter
    Frenzied Member bmahler's Avatar
    Join Date
    Oct 2005
    Location
    Somewhere just west of the Atlantic
    Posts
    1,568

    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
    Boooya
    • Visual Studio 2008 Professional
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • Don't forget to rate helpful posts!
    • If you're question was answered please mark your thread [Resolved]


    Code Contributions:
    PHP
    PHP Image Gallery v1.0PHP Image Gallery v2.0
    VB 2005
    Find Computers on a networkSimple License EncryptionSQL Server Database Access dllUse Reflection to Return Crystal ReportDocumentSilently Print PDFGeneric Xml Serailizer


    Useful Links: (more to come)
    MSDN (The first and foremost)MSDN Design Guidelines API Reference • Inno Setup CompilerInno Setup PreprocessorISTool - Fairly easy to use GUI for creating inno setup projects • Connection StringsNAnt -Automated BuildsCruise Control .NET - Frontend for automated builds

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3
    Member
    Join Date
    Jan 2004
    Posts
    37

    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
  •  



Click Here to Expand Forum to Full Width