MU Coding Lessons

how can i do this?
i tryed to find this in olly but without result :|

There is a procedure called ItemSerialSend if i dont remember well, the arguments to this procedure control the item level, options, and other shits under normal drop and when created on ChaosMix.

If you try to dissamble the procedure youll find for what each argument work and probably find a good way to decrease level when fail ^^.
 
Code:
00525083   . 68 A4505200    PUSH IAT-Game.005250A4                   ; /FileName = "GsPlugin.dll"
00525088   . FF15 04CD650C  CALL DWORD PTR DS:[<&KERNEL32.LoadLibrar>; \LoadLibraryA
0052508E   . 68 B3505200    PUSH IAT-Game.005250B3                   ; /ProcNameOrOrdinal = "MyProcedure"
00525093   . 50             PUSH EAX                                 ; Push Handler of DLL loaded
00525094   . FF15 00CD650C  CALL DWORD PTR DS:[<&KERNEL32.GetProcAdd>; \GetProcAddress
0052509A   . FFD0           CALL EAX            ;Call our Procedure
0052509C     55             PUSH EBP             ;Restore EntryPoint Instruction
0052509D     8BEC           MOV EBP,ESP      ;Restore EntryPoint Instruction
0052509F     6A FF          PUSH -1              ;Restore EntryPoint Instruction
005250A1     E9 44D80500    JMP IAT-Game.005828EA ;Execution back to EntryPoint instruction after JMP

i know this way to hook

Code:
PUSH (offset dll)
LoadLibraryA
OR eax,eax
JE (offset EP)
PUSH (offset dll function)
PUSH EAX
GetProcAddress
CALL EAX
JMP (offset EP)
is the same ? difference ? what is better ?
and what about this ?
http://forum.ragezone.com/f196/hooking-a-dll-into-the-main-exe-406128/
can i use this same procedure for hook into GameServer ?

PS: i can't fin ItemSerialSend Procedure... may be there isnt
 
Last edited:
Code:
00525083   . 68 A4505200    PUSH IAT-Game.005250A4                   ; /FileName = "GsPlugin.dll"
00525088   . FF15 04CD650C  CALL DWORD PTR DS:[<&KERNEL32.LoadLibrar>; \LoadLibraryA
0052508E   . 68 B3505200    PUSH IAT-Game.005250B3                   ; /ProcNameOrOrdinal = "MyProcedure"
00525093   . 50             PUSH EAX                                 ; Push Handler of DLL loaded
00525094   . FF15 00CD650C  CALL DWORD PTR DS:[<&KERNEL32.GetProcAdd>; \GetProcAddress
0052509A   . FFD0           CALL EAX            ;Call our Procedure
0052509C     55             PUSH EBP             ;Restore EntryPoint Instruction
0052509D     8BEC           MOV EBP,ESP      ;Restore EntryPoint Instruction
0052509F     6A FF          PUSH -1              ;Restore EntryPoint Instruction
005250A1     E9 44D80500    JMP IAT-Game.005828EA ;Execution back to EntryPoint instruction after JMP

i know this way to hook

Code:
PUSH (offset dll)
LoadLibraryA
OR eax,eax
JE (offset EP)
PUSH (offset dll function)
PUSH EAX
GetProcAddress
CALL EAX
JMP (offset EP)
is the same ? difference ? what is better ?
and what about this ?
http://forum.ragezone.com/f196/hooking-a-dll-into-the-main-exe-406128/
can i use this same procedure for hook into GameServer ?

PS: i can't fin ItemSerialSend Procedure... may be there isnt


Same ways, just smaller coder, if you want to do a "pro hook" use my library called "Hook This !" is on RZ download section and its compatible with C++ and ASM.

Read the instructions for how to use it. You avoid the call to GetProcAddress and just use the LoadLibrary with the JMP to the Real Entry Point.

Still all the 3 ways are valids.
 
hello friend thanks for these tutorials will certainly be of great help to all who want to become coderz mu online ....
 
Last edited:
Nice work man I wish this was around when I learnt to decompile. I prefer to decompile to C++ tho :P just finished decompiling my gameserver and making an emulator.
 
Back