[Ez question] How to require a DLL?

Results 1 to 12 of 12
  1. #1
    RestyleGamerZ FTW Mambo is offline
    MemberRank
    Mar 2008 Join Date
    The NetherlandsLocation
    821Posts

    [Ez question] How to require a DLL?

    Hey ASM Coders/ Gunz modders

    I have a dll i need to load into gunz so it starts when gunz starts. Only i dont know how to do this with OllydDBG or Hex Editor.

    Also: How do i get gunz to REQUIRE it, so it won't start without it?

    Help please!

    Thanks in advance
    ~Mambo!


  2. #2
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Ez question] How to require a DLL?

    http://forum.ragezone.com/f497/creat...jector-566876/ <--- simple pe edit, not recommended

    ;Asm

    Codecave (Danks Phail)

    Code:
    Go to:
    004B1FE0 and replace it with:
    
    004B1FE0     E8 6F500E00    CALL theduel.00597054
    004B1FE5     81EC 50040000  SUB ESP,450
    Code:
    0059704B   . 53 46 58 2E 64>ASCII "SFX.dll",0
    00597053     60             PUSHAD
    00597054     68 4B705900    PUSH theduel.0059704B                    ;  ASCII "SFX.dll"
    00597059     E8 19AD267C    CALL kernel32.LoadLibraryA
    0059705E     85C0           TEST EAX,EAX
    00597060     75 0B          JNZ SHORT theduel.0059706D
    00597062     58             POP EAX
    00597063     A1 601C6400    MOV EAX,DWORD PTR DS:[641C60]
    00597068     C3             RETN
    00597069     61             POPAD
    0059706A     CC             INT3
    0059706B     CC             INT3
    0059706C     60             PUSHAD
    0059706D     6A 00          PUSH 0
    0059706F     E8 665D287C    CALL kernel32.ExitProcess
    00597074     58             POP EAX
    00597075     61             POPAD

  3. #3
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: [Ez question] How to require a DLL?

    Solution: LoadLibrary.

  4. #4

    Re: [Ez question] How to require a DLL?

    clue fmod.dll

  5. #5
    Reverse Engineer ThievingSix is offline
    MemberRank
    Mar 2007 Join Date
    CaliforniaLocation
    901Posts

    Re: [Ez question] How to require a DLL?

    Wouldn't recommend calling LoadLibrary like that.

  6. #6
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Ez question] How to require a DLL?

    Quote Originally Posted by death4u2 View Post
    clue fmod.dll
    You can do it the pe edit with any file loaded into gunz or gunz itself... fmod is just the one everyone seems to use...

    Files the can be used:
    Gunz.exe (theduel.exe)
    dbghelp.dll
    fmod.dll
    gdiplus.dll

  7. #7
    RestyleGamerZ FTW Mambo is offline
    MemberRank
    Mar 2008 Join Date
    The NetherlandsLocation
    821Posts

    Re: [Ez question] How to require a DLL?

    Quote Originally Posted by betrayedacheron View Post
    http://forum.ragezone.com/f497/creat...jector-566876/ <--- simple pe edit, not recommended

    ;asm

    codecave (danks phail)

    Code:
    go to:
    004b1fe0 and replace it with:
     
    004b1fe0     e8 6f500e00    call theduel.00597054
    004b1fe5     81ec 50040000  sub esp,450
    Code:
    0059704b   . 53 46 58 2e 64>ascii "sfx.dll",0
    00597053     60             pushad
    00597054     68 4b705900    push theduel.0059704b                    ;  ascii "sfx.dll"
    00597059     e8 19ad267c    call kernel32.loadlibrarya
    0059705e     85c0           test eax,eax
    00597060     75 0b          jnz short theduel.0059706d
    00597062     58             pop eax
    00597063     a1 601c6400    mov eax,dword ptr ds:[641c60]
    00597068     c3             retn
    00597069     61             popad
    0059706a     cc             int3
    0059706b     cc             int3
    0059706c     60             pushad
    0059706d     6a 00          push 0
    0059706f     e8 665d287c    call kernel32.exitprocess
    00597074     58             pop eax
    00597075     61             popad
    omfg! Thx!

  8. #8
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Ez question] How to require a DLL?

    not a problem o.o

  9. #9
    RestyleGamerZ FTW Mambo is offline
    MemberRank
    Mar 2008 Join Date
    The NetherlandsLocation
    821Posts

    Re: [Ez question] How to require a DLL?

    Quote Originally Posted by BetrayedAcheron View Post
    not a problem o.o
    This won't work.

  10. #10
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Ez question] How to require a DLL?

    hmmmm whats wrong with it?

  11. #11
    RestyleGamerZ FTW Mambo is offline
    MemberRank
    Mar 2008 Join Date
    The NetherlandsLocation
    821Posts

    Re: [Ez question] How to require a DLL?

    Quote Originally Posted by BetrayedAcheron View Post
    hmmmm whats wrong with it?
    People say it doesn't work.

    And i want it as short as possible!

  12. #12
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Ez question] How to require a DLL?

    if you want it short and easy use the pe edit?

    http://forum.ragezone.com/f497/creat...jector-566876/ <--- simple pe edit, not recommended

    and yes that asm edit does work =P



Advertisement