Solved Health (ASM) code

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

zoratz

Jr.Coder
Dank Tier Donator
Nobleman
Jul 22, 2013
81
838
2
Hey guys, once again I have a question. Sorry if I seem annoying..

I looked up for Health Value, and I found 'What writes to this address' address: 42CA5E
I opened up OllyDBG, and NOPed it.
Actually, i've already tryed NOPing all the address that are GRAY (All of the image), and nothing happened, not even crashed, and I was still dying when getting shoot.
qwg3.jpg

So, is there a way to NOP an instruction so that my HEALTH doesn't come down, e.g. Ammo?

Or only if I get the address + offsets? If so, then i'll have to have a total different kind of code for health..
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,099
78,998
2,373
#1 use a pointer is better
#2 use pattern scanning if you can't find a pointer
#3 If you can't find a good pointer, hook that address and use inline ASM, skip the code if it's your player address in the register. If it's an enemy, continue executing the regular game code

do our detour / hook tutorial on youtube
 
Last edited:

Nether

The Angel Of Verdun
Meme Tier VIP
Dank Tier Donator
Dec 11, 2013
293
3,738
16
Hey guys, once again I have a question. Sorry if I seem annoying..

I looked up for Health Value, and I found 'What writes to this address' address: 42CA5E
I opened up OllyDBG, and NOPed it.
Actually, i've already tryed NOPing all the address that are GRAY (All of the image), and nothing happened, not even crashed, and I was still dying when getting shoot.
View attachment 2649

So, is there a way to NOP an instruction so that my HEALTH doesn't come down, e.g. Ammo?

Or only if I get the address + offsets? If so, then i'll have to have a total different kind of code for health..
basically that MOV DWORD etc is an address, its moving EAX (return value) into that address not the one you have but the DWORD PTR, find out what or where that is, and im guessing its a function, and with that you can emulate it in C++ or just NOP the function

Use CE breakpoints, so goto that address and set a breakpoint then decrease your hp and it should freeze the game when it does EDX(in the side window i t will appear after the freeze) will display an address so that address + F8 will take you to the function or address that is your health :D I hope that helps.

please try hard to follow what ive said maybe study a tiny bit of ASM, but if you get really stuck perhaps i can help you via Team Viewer as I love reversing and ASM x86 <3
 
Last edited:

zoratz

Jr.Coder
Dank Tier Donator
Nobleman
Jul 22, 2013
81
838
2
basically that MOV DWORD etc is an address, its moving EAX (return value) into that address not the one you have but the DWORD PTR, find out what or where that is, and im guessing its a function, and with that you can emulate it in C++ or just NOP the function

Use CE breakpoints, so goto that address and set a breakpoint then decrease your hp and it should freeze the game when it does EDX(in the side window i t will appear after the freeze) will display an address so that address + F8 will take you to the function or address that is your health :D I hope that helps.

please try hard to follow what ive said maybe study a tiny bit of ASM, but if you get really stuck perhaps i can help you via Team Viewer as I love reversing and ASM x86 <3
Thanks for the try, but I did know that.. Using CheatEngine I can find the StaticAddress and plus F8 find the health one..

But I followed anyway.. I found that EDX address, then with the calculator (programmer mode) added F8, but there was no address with that...

And I still have no ideia what to NOP so that my health doesn't decrease.. I don't want to always write a value to the health address.. I do want to NOP the instruction that decreases the health..

I've watched all Fleep's tutorials, now i'm going step by step, learning everything i can.. I wouldn't like to use assembly rigth now, i'd like to get around that noping or changing OPcodes..
 
Last edited:

Nether

The Angel Of Verdun
Meme Tier VIP
Dank Tier Donator
Dec 11, 2013
293
3,738
16
Thanks for the try, but I did know that.. Using CheatEngine I can find the StaticAddress and plus F8 find the health one..

But I followed anyway.. I found that EDX address, then with the calculator (programmer mode) added F8, but there was no address with that...

And I still have no ideia what to NOP so that my health doesn't decrease.. I don't want to always write a value to the health address.. I do want to NOP the instruction that decreases the health..

I've watched all Fleep's tutorials, now i'm going step by step, learning everything i can.. I wouldn't like to use assembly rigth now, i'd like to get around that noping or changing OPcodes..
if you can find it via edx use it like a pointer then, sorry should of said that to begin with :)
 

zoratz

Jr.Coder
Dank Tier Donator
Nobleman
Jul 22, 2013
81
838
2
if you can find it via edx use it like a pointer then, sorry should of said that to begin with :)
I see what u mean.. but is there another way of doing it? like noping etc.. just like ammo, rapidfire etc..

The reason why i'm insisting on it is because I realised that when using the pointer (write to the pointer) the ammo/health does come down, however the writing process is so quick that rigth away writes over it. So it almost cant be seem, but it can..
And the NOPing process doesn't do that.. it just let it be the way it is..

------------------- UPDATE -------------------- Nether Fleep Cryslacks

I found an address that has some effect on Health:
C++:
429D1F ->  sub [ebx+04],edi
health2.jpg

If I change it to ADD, the health start to INCREASE.
If I NOP it, the health does not change.

The thing is, the effects CHANGE EVERYBODYS HEALTH, not only main.

[1] Method
-> Find health (choose the screen one)
-> Find what writes to that address
-> Get shot from enemy (This is where it must be followed, because if you get damage from the granade, the address will be different)

[2] Method
-> Find health (choose the non-screen one)
-> Find what writes to that address
-> Get damage (anykind)
 
Last edited:

zoratz

Jr.Coder
Dank Tier Donator
Nobleman
Jul 22, 2013
81
838
2
Have you tried tracing back the address in CE using "Find out what writes" & see if you can find the health in your player struct instead of the global one?
Tryed doing that, but with the screen address, I found 3 ocasions which none of them, when noped, stopped my health to decrease.
And the non-screen one nothing appeared..
Maybe if you could teamview me, and help me out?
Nether
Maybe your ideia of teamviewing me could give me a big hand over here..


---------------- UPDATE -----------------

After some days trying, I decided to stop trying.. Not because I didn't find it, but because of the Feep's comment on his code, which could have saved me days and lots of problems:

C++:
//Here refreshes our health THE ONLY thing that needs constant refreshing
				//as i mentioned in the beginning of the source we cant just simply NOP the 
				//health decrease instruction as it will affect all our enemies(although that method can often work on many games)
				//against the bots that is not such a good idea
However, I'd like to ask, why is that?
 
Last edited:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods