Using the Auto Assembler I created a little snippet which modifies which value will be set to a specific address.
Initially it was:
What I want it to be is:
I'd like to define the value in the table. How would I accomplish this?
This is the complete script:
I could just make another entry in the table which writes the value into allocated memory for the injection and then just retrieve it in there, but I figured there must be some way to do this in a more elegant way.
Initially it was:
Code:
mov [esi+9A],al
Code:
mov [esi+9A],<my value>
This is the complete script:
Code:
[ENABLE]
alloc(valuemod,2048)
label(valuemodexit)
valuemod:
mov [esi+9A],<my value>
jmp valuemodexit
"MyGame.exe"+ABCDEF:
jmp valuemod
valuemodexit:
[DISABLE]
"MyGame.exe"+ABCDEF:
mov [esi+9A],al