Re: Locating procedures within an EXE

From: Jamie (jamie_5_not_valid_after_5_at_charter.net)
Date: 12/21/03

  • Next message: AlanGLLoyd: "Re: No help required"
    Date: Sun, 21 Dec 2003 01:29:28 -0800
    
    

    this is real native code generation here.
      we are not talking about VB or any other half wide language.
       there is no procedure/function name table in an EXE along with
    a list of entry points.
        you may find this in a DLL how ever.
    and i am not sure if the Export functions work in a EXE file..
      in any case you should not waste any more of your time trying to
    break down a EXE in that faction.
       simply putting it, EXE from Delphi is mostly pure CPU code., the only
    way you could even get some info would be to build your self a debugger
    that can scan the EXE file and generate CPU code looking for CALL
    statements.. i really don't think your looking to do that.

    Pete Wason wrote:

    > Jason Tanner wrote:
    >
    >> Hi,
    >>
    >> Further to my other thread regarding software protection, how would I
    >> go about locating procedures within an EXE?
    >>
    >
    > Oddly, I'm looking to do something similar. I have a unit of code which
    > is used in a bigger project, but which contains a boatload of functions
    > that I need to test. Currently, I have a simple GUI which parses the pas
    > file for the unit and displays all the function names in a listbox. When
    > I click on a function name, it's parameters (and their types) show up in
    > a second listbox. When I click on a parameter, an appropriate control
    > gets created so I can enter test values for the param. Once all the
    > params are filled in, I click a button and the results of the function
    > are plopped into a memo. (roughly) This gets a bit tricky when one or
    > more of the params is a record or array type, but I fugirued out how to
    > parse those out of the pas file too.
    >
    > I asked about getting the information I need at runtime without parsing
    > the pas file on one of the borland NGs, and got 3 completely different
    > answers:
    >
    > 1. You can't do it
    > 2. You're almost doing it
    > 3. You should use DUnit instead
    >
    > Pete
    >


  • Next message: AlanGLLoyd: "Re: No help required"