[VB.NET]ASM bytes realisiren ;D

09/01/2010 16:02 SandMann016#1
HEy leute also hab ein großes Problem ich mache grad ein programm und habe da mal ein ausschnitt vom debugger für euch(von einem anderem prozess :


Code:
0060054C - 59                         - pop ecx
0060054D - 89 0d 92 03 60 00          - mov [00600392],ecx
00600553 - ff 35 92 03 60 00          - push [00600392] ; [08E8BEA2]
00600559 - 8b 0d 28 c0 61 00          - mov ecx,[0061c028] ; [2741BA98]
0060055F - e8 dc 6a e1 ff             - call 00417040
00600564 - 60                         - pushad
00600565 - 8b 0d 28 c0 61 00          - mov ecx,[0061c028] ; [2741BA98]
0060056B - ff 35 92 03 60 00          - push [00600392] ; [08E8BEA2]
00600571 - 6a 00                      - push 00
00600573 - e8 d8 87 e1 ff             - call 00418d50
00600578 - 61                         - popad
00600579 - e9 ce ca e3 ff             - jmp 0043d04c
Jetzt kommt die Funktion die ich machen will also ändern...

Code:
0043D047 - e9 00 35 1c 00             - jmp 0060054c
Das is der Orignialzustand

Code:
0043D047 - e8 f4 9f fd ff             - call 00417040

aber meine frage ist jetzt welche adresse/bytes muss ich nehmen das es geht mit dem code:
Code:
    Private Function mobbb()
        Dim mob() As Byte = {&HE9, &H0, &H35, &H1C, &H0}
        For i = 0 To mob.Length - 1
            WriteByte(processHandle, &H60054C + i, mob(i), 1, Nothing)
        Next
    End Function

Mit dem Code stützt der Prozess ab oder er bekommt hald ein fehler aber die asm adressen und bytes stimmen 100%ig und gehen

also wer kann mir da helfen ;)