Results 1 to 1 of 1
  1. #1
    marco0999's Avatar
    Join Date
    Jun 2020
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    code cave call external DLL

    I have a exe file of a game that I like to add some implementation.

    To do this I need to add a "jump" in assembler that execute a function from a external dll.

    I need to add the jump inside the function:

    Code:
    int __cdecl sub_43AC70(char *a1, int a2)
    {
      call my_function(a1) from mylibrary.dll
    
      int i; // [esp+0h] [ebp-4h]
    
      for ( i = sub_43BC50(); i; i = *(_DWORD *)i )
      {
        if ( *(_DWORD *)(i + 88) == a2 && (!a1 || !stricmp((const char *)(i + 4), a1)) )
          return i;
      }
      return 0;

    Attached the code in assembly.

    I don't have experience in assembler and I don't known how is hard add this jump.

    For the moment I have found this tutorial:



    that execute an external exe, that is not exactly what I need ...

    However if there is a way to execute an external exe from a command line with a paramter:

    call myprogram.exe -a1

    in assembler , can be a compromise, so instead of create a dll with a parameter I can create a command line with a parameter, both are a good solution.

    Can you please tell me a assembly code that execute a function with a parameter from external dll or excecute a external command line with a parameter ?

    thanks !
    Attached Thumbnails Attached Thumbnails
    function_play_wav.png  

    function_play_wav_assemb.png  


Similar Threads

  1. [Release] External .dll w/ Source Code
    By internaut in forum Counter-Strike 2 Coding & Resources
    Replies: 13
    Last Post: 12-27-2016, 11:27 PM
  2. Code caves, need help on trainer
    By wee123 in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-01-2011, 10:44 AM
  3. Code for Injector; Importing DLL into Listbox
    By Invidus in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-20-2010, 01:43 PM
  4. How to do OPK + Code Cave with a debugger and C++
    By radnomguywfq3 in forum C++/C Programming
    Replies: 4
    Last Post: 12-08-2009, 12:00 PM
  5. [REQUEST] Code Cave Tut
    By HeXel in forum WarRock - International Hacks
    Replies: 10
    Last Post: 02-16-2008, 01:36 AM