Jump in Assembler

Post your topics and discussions here that you can't find a good section for.
Post Reply
User avatar
MangaDrawing
Novice Cheater
Novice Cheater
Posts: 20
Joined: Sun Mar 05, 2017 11:04 am
Reputation: 0

Jump in Assembler

Post by MangaDrawing » Sat Sep 30, 2017 10:50 pm

Hi.
If we have for example this code:
cmp [ecx+08],1
je ???
cmp eax,eax
mov [ecx+14],(float)100

How can jump from "je" to "cmp eax,eax" or "mov [ecx+14],(float)100".Instead of "???" What should I write that jump to other lines?

Bloodybone
Expert Cheater
Expert Cheater
Posts: 74
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 5

Re: Jump in Assembler

Post by Bloodybone » Sat Sep 30, 2017 11:00 pm

you can directly manipulate the bytes at the je so je is in byte form 74 and then the second byte is how long you wan't to jump so if you wan't to jump to cmp eax,eax do 74 00 and if you wan't to jump to mov [ecx+14],(float)100 then do 74 01

Bloodybone
Expert Cheater
Expert Cheater
Posts: 74
Joined: Thu Aug 03, 2017 6:19 am
Reputation: 5

Re: Jump in Assembler

Post by Bloodybone » Sat Sep 30, 2017 11:22 pm

Also if you wan't to jump in the Auto Assembler so if
cmp [ecx+08],1
je ???
cmp eax,eax
mov [ecx+14],(float)100

is your code you can add labels

Example:

Code: Select all

define(address,"Tutorial-i386.exe"+23B78)
define(bytes,8B 83 80 04 00 00)

[ENABLE]

assert(address,bytes)
alloc(newmem,$100)

label(code)
label(return)
label(jumpto)

newmem:

code:
  cmp [ecx+08],1
  je jumpto
  cmp eax,eax
  jmp return

jumpto:
  mov [ecx+14],(float)100
  jmp return

address:
  jmp newmem
  nop
return:

[DISABLE]

address:
  db bytes

dealloc(newmem)

Post Reply

Who is online

Users browsing this forum: lllccc