Hi guys,
Im trying to add instant kill to my next trainer and since i cant find a pointer for it but i can find the same code for it in the memory viewer of cheat engine I have gone into the code injection bit and have this for the value that turns instant kill on or off.
this is the assembly code
Code:
Address - 00483DED - Bytes - 8B 56 04 - Opcode - mov edx,[esi+04]
Address - 00483DF0 - Bytes - 83 E0 1F - Opcode - and eax,1F
Code:
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov edx,[esi+04]
and eax,1F
exit:
jmp returnhere
"BlackOps.exe"+83DED:
jmp newmem
nop
returnhere:
Found this In ollydbg at the address if it helps
Code:
00483DED 8B56 04 MOV EDX,DWORD PTR DS:[ESI+4]
Code:
Public Class Form1
Dim Mem As Injection = New Injection
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
Mem.GetProc("BlackOps")
Mem.Inject_Jmp(&H483DED, "8B4608", "8B5604")
End Sub
End Class
Also I found but i think that is the shown instant kill thing not 100% sure i might have got mixed up
This is what I have I just dont understand how to find the bytes, Would I use ollydbg and what to look for :P
now I am starting to learn assembly with tutorials online but would anyone be able to explain how I would make this work for instant kill on or off into VB, as with the beginner tutorials which im having to start off with I dont think im close to figuring this out but I will continue to follow the tutorials I have Im just wondering if anyone can explain this situation so it would work for me.
Kind Regards
Zolferno
PS: I Have no recoil working just found it, I NOP the addresses but I cant turn it off I cant undo my NOP im using the module from someones post on this forum but ofr the life of me i cant find it this is what i have atm.
Code:
If CheckBox13.Checked = True Then
noph4x(&H6563F8, &H90)
noph4x(&H6563F9, &H90)
noph4x(&H6563FA, &H90)
noph4x(&H6563FB, &H90)
noph4x(&H6563FC, &H90)
CheckBox13.ForeColor = Color.Lime
ElseIf CheckBox13.Checked = False Then
CheckBox13.ForeColor = Color.Red
End If
End Sub
now I have tried to do this and replace the bytes with the original ones but it just doesent work as it still NOP its :P hmm I think i might jsut have to writeabyte to these address to their original value