Can't find the correct pointer address?

Boxs

Boxs

Cheater
Joined
Mar 7, 2020
Messages
30
i'm trying to find the pointer address and i'm getting result the problem
is that every time the game rest or i die in the game all the address are change
and the same for the pointer i get the address there but not for the address that i want?
i tried to do find what access this address and i get these when my health is changed or decreased?

0105384C - C7 07 00000000 - mov [edi],00000000
010538A6 - F2 0F11 07 - movsd [edi],xmm0


the search type is Double?

any ideas?
 
TheyCallMeTim13

TheyCallMeTim13

Enchanter
Staff member
Administrator
Fearless Donors
Talents
Joined
Mar 3, 2017
Messages
1,794
Try something like this and look into code injection. Just copy code and paste in the address list.
Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      0
      <Description>"Health Hook  ()-&gt;"</Description>
      <Options moHideChildren="1"/>
      <LastState/>
      <Color>008000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{
	Health Hook

0105384C - C7 07 00000000 - mov [edi],00000000
010538A6 - F2 0F11 07 - movsd [edi],xmm0
}

{$STRICT}

define(bytes, C7 07 00 00 00 00)

////
//// ------------------------------ ENABLE ------------------------------
[ENABLE]
aobScanModule(aobHealthHook, C7 07 00 00 00 00 F2 0F 11 07)
define(injHealthHook, aobHealthHook)
assert(injHealthHook, bytes)
registerSymbol(injHealthHook)

alloc(memHealthHook, 0x400, injHealthHook)

label(ptrHealthHook)
registerSymbol(ptrHealthHook)

label(n_code)
label(o_code)
label(exit)
label(return)

memHealthHook:
	ptrHealthHook:
		dd 0
	align 10 CC
	n_code:
		mov [ptrHealthHook],edi
	o_code:
		mov [edi],00000000
	exit:
		jmp return


////
//// ---------- Injection Point ----------
injHealthHook:
	jmp n_code
	nop
	return:



////
//// ------------------------------ DISABLE ------------------------------
[DISABLE]
////
//// ---------- Injection Point ----------
injHealthHook:
	db bytes

unregisterSymbol(injHealthHook)

unregisterSymbol(ptrHealthHook)

dealloc(memHealthHook)

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          1
          <Description>"Health"</Description>
          <VariableType>4 Bytes</VariableType>
          <Address>ptrHealthHook</Address>
          <Offsets>
            <Offset>0</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
 
Boxs

Boxs

Cheater
Joined
Mar 7, 2020
Messages
30
TheyCallMeTim13 said:
Try something like this and look into code injection. Just copy code and paste in the address list.
Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      0
      <Description>"Health Hook  ()-&gt;"</Description>
      <Options moHideChildren="1"/>
      <LastState/>
      <Color>008000</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>{
	Health Hook

0105384C - C7 07 00000000 - mov [edi],00000000
010538A6 - F2 0F11 07 - movsd [edi],xmm0
}

{$STRICT}

define(bytes, C7 07 00 00 00 00)

////
//// ------------------------------ ENABLE ------------------------------
[ENABLE]
aobScanModule(aobHealthHook, C7 07 00 00 00 00 F2 0F 11 07)
define(injHealthHook, aobHealthHook)
assert(injHealthHook, bytes)
registerSymbol(injHealthHook)

alloc(memHealthHook, 0x400, injHealthHook)

label(ptrHealthHook)
registerSymbol(ptrHealthHook)

label(n_code)
label(o_code)
label(exit)
label(return)

memHealthHook:
	ptrHealthHook:
		dd 0
	align 10 CC
	n_code:
		mov [ptrHealthHook],edi
	o_code:
		mov [edi],00000000
	exit:
		jmp return


////
//// ---------- Injection Point ----------
injHealthHook:
	jmp n_code
	nop
	return:



////
//// ------------------------------ DISABLE ------------------------------
[DISABLE]
////
//// ---------- Injection Point ----------
injHealthHook:
	db bytes

unregisterSymbol(injHealthHook)

unregisterSymbol(ptrHealthHook)

dealloc(memHealthHook)

</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          1
          <Description>"Health"</Description>
          <VariableType>4 Bytes</VariableType>
          <Address>ptrHealthHook</Address>
          <Offsets>
            <Offset>0</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
sorry i'm not that good with cheat engine i was not able to add it to the Auto Assemble
and the value type is double with that make any deterrent in the code?
this is the opcode address "PoliceStories.exe"+CD384C i don't know if i need it?
thank you
 
Top