Need Help

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
524
50
28
#1
Hello, I'm not really dealing with these kind of stuff normal, but I wanted to know how exactly can I make this work:
{ Game : ShooterGame.exe
Version:
Date : 2017-08-31
Author : Kalas

This script does blah blah blah
}

[ENABLE]

aobscanmodule(MeleeDamageAOB,ShooterGame.exe,F3 41 0F 10 84 9E 08 01 00 00)
alloc(newmem,$100,MeleeDamageAOB)
//
alloc(MeleeDamageFlag,08)
alloc(SpeedFlag,08)
alloc(CraftingSkillFlag,08)
//
label(code)
label(return)
//
label(1_MeleeDamageFlag)
label(2_SpeedFlag)
label(3_CraftingSkillFlag)
//
label(MeleeDamage)
label(Speed)
label(CraftingSkill)
//
registersymbol(MeleeDamageFlag)
registersymbol(SpeedFlag)
registersymbol(CraftingSkillFlag)

MeleeDamageFlag:
dd 0

SpeedFlag:
dd 0

CraftingSkillFlag:
dd 0

newmem:
cmp rbx,0000000000000008 // Melee Damage
je 1_MeleeDamageFlag
//
cmp rbx,0000000000000009 // Speed
je 2_SpeedFlag
//
cmp rbx,000000000000000B // Crafting Skill
je 3_CraftingSkillFlag

1_MeleeDamageFlag:
cmp dword ptr [MeleeDamageFlag],1
je MeleeDamage
jmp code

2_SpeedFlag:
cmp dword ptr [SpeedFlag],1
je Speed
jmp code

3_CraftingSkillFlag:
cmp dword ptr [CraftingSkillFlag],1
je CraftingSkill

code:
movss xmm0,[r14+rbx*4+00000108]
jmp return

MeleeDamage:
mov [r14+rbx*4+00000108],(float)10
movss xmm0,[r14+rbx*4+00000108]
jmp return

Speed:
mov [r14+rbx*4+00000108],(float)10
movss xmm0,[r14+rbx*4+00000108]
jmp return

CraftingSkill:
mov [r14+rbx*4+00000108],(float)10
movss xmm0,[r14+rbx*4+00000108]
jmp return

MeleeDamageAOB:
jmp newmem
nop
nop
nop
nop
nop
return:
registersymbol(MeleeDamageAOB)

[DISABLE]

MeleeDamageAOB:
db F3 41 0F 10 84 9E 08 01 00 00

unregistersymbol(MeleeDamageAOB)
unregistersymbol(MeleeDamageFlag)
unregistersymbol(CraftingSkillFlag)
unregistersymbol(SpeedFlag)
dealloc(newmem)
dealloc(MeleeDamageFlag)
dealloc(CraftingSkillFlag)
dealloc(SpeedFlag)
If someone can explain to me where I did wrong and fix me please :)
 
Mar 5, 2017
29
1
1
#2
Hi.
I think you use label Instead of alloc.
mean : alloc(MeleeDamageFlag,08) to label(MeleeDamageFlag)
alloc(SpeedFlag,08) to label(SpeedFlag)
alloc(CraftingSkillFlag,08) to label(CraftingSkillFlag). And remove a",MeleeDamageAOB" from alloc(newmem,$100,MeleeDamageAOB).
 

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
524
50
28
#3
Nope, I got it working. I had an issue in the:

cmp rbx,0000000000000008 // Melee Damage
je 1_MeleeDamageFlag
//
cmp rbx,0000000000000009 // Speed
je 2_SpeedFlag
//
cmp rbx,000000000000000B // Crafting Skill
je 3_CraftingSkillFlag
 
Mar 17, 2017
32
0
6
#4
Alloc is not needed just register the flags with registersymbol(yourflag)

Greets Matze
 

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
524
50
28
#5
Matze500 post_id=16558 time=1504281575 user_id=1267 said:
Alloc is not needed just register the flags with registersymbol(yourflag)

Greets Matze
Thanks, ill keep that in mind.
 
Mar 17, 2017
32
0
6
#6
The db(1byte), dw(2 byte or word), dd(4 byte or double word),dq(8byte or quad word) reserves the memory if they are below “newmem:“. Best place is below jmp return and the injection point.

Greets Matze
 

Kalas

Cat'n America!
Fearless Donors
Table Maker
Mar 3, 2017
524
50
28
#7
SunBeam post_id=17204 time=1505151334 user_id=57 said:
Small suggestion: don't start label names with numbers.
Ok thanks
 
Top Bottom