| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| Tiramisamimsu Guest
 
 
 
 
 
 
 | 
			
				|  Posted: Thu Nov 04, 2021 10:21 pm    Post subject: I have a "Assembly code"but I dont know how to use |   |  
				| 
 |  
				| I have this assembly code for a game but I dont know how to use it and this is the code
 DWORD hkMemset = (DWORD)GetProcAddress(GetModuleHandleA("MSVCR100.dll"), "memset");
 
 DWORD ResultHackShopItemRET = ResultHackShopItem + 6;
 declspec(naked)void hkHackShopItem()
 {
 asm
 {
 mov dword ptr[esi+0x10], 2000
 call [hkMemset]
 jmp ResultHackShopItemRET
 }
 }
 DWORD ResultHackShopCashRET = ResultHackShopCash + 6;
 declspec(naked)void hkHackShopCash()
 {
 asm
 {
 mov dword ptr[esi+0x18], 2000
 call [hkMemset]
 jmp ResultHackShopCashRET
 }
 }
 DWORD ResultHackShopPesoRET = ResultHackShopPeso + 6;
 declspec(naked)void hkHackShopPeso()
 {
 asm
 {
 mov dword ptr[esi+0x14], 2000
 lea eax,[ebp-0x124]
 jmp ResultHackShopPesoRET
 }
 }
 
 DWORD ResultHackShopRank1RET = ResultHackShopRank1 + 6;
 declspec(naked)void hkHackNeedRank1()
 {
 asm
 {
 mov[edi + 0x64], 0
 push edx
 lea ecx, [edi + 0x68]
 jmp ResultHackShopRank1RET
 }
 }
 
 DWORD ResultHackShopRank2RET = ResultHackShopRank2 + 6;
 declspec(naked)void hkHackNeedRank2()
 {
 asm
 {
 mov[edi + 0x64], 0
 push edx
 lea ecx, [edi + 0x68]
 jmp ResultHackShopRank2RET
 }
 }
 //Hook ASM
 DWORD retOK1 = HackShop3 + 6; // address
 int oke_oke = 0xB3F3B340; // value -1, 0, 1
 
 declspec( naked ) HRESULT WINAPI Ok_OK2( )
 {
 _asm
 {
 mov eax, oke_oke
 mov [ebp-00000140],eax
 JMP retOK1
 }
 }
 
 DWORD retOK2 = HackShop4 + 6; // address
 
 declspec( naked ) HRESULT WINAPI Ok_OK3( )
 {
 _asm
 {
 mov eax, oke_oke
 mov ecx,[ebp-0x0000034C]
 JMP retOK2
 }
 }
 
 DWORD retOK3 = HackShop5 + 5; // address
 
 declspec( naked ) HRESULT WINAPI Ok_OK4( )
 {
 _asm
 {
 mov eax, 0
 push 0x104
 JMP retOK3
 }
 }
 
 DWORD retOK4 = HackShop6 + 5; // address
 
 declspec( naked ) HRESULT WINAPI Ok_OK5( )
 {
 _asm
 {
 mov eax, 1
 push 0x104
 JMP retOK4
 }
 }
 
 DWORD retOK5 = HackShop7 + 5; // address
 
 __declspec( naked ) HRESULT WINAPI Ok_OK6( )
 {
 _asm
 {
 mov eax, 2
 push 0x104
 JMP retOK5
 }
 }
 
 If anyone know how to use it please respond
 Thanks
 - me
 |  |  
		| Back to top |  |  
		|  |  
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Fri Nov 05, 2021 1:56 pm    Post subject: |   |  
				| 
 |  
				| That is not assembly code, that is C++. _________________
 
 - Retired. |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | You can post new topics in this forum You can reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot vote in polls in this forum
 You cannot attach files in this forum
 You can download files in this forum
 
 |  |