Assembly Opcodes Flashcards

Opcodes to remember: http://www.mathemainzel.info/files/x86asmref.html#das

1
Q

CALL

A

CALL - Procedure Call - FF Dx. Pushes instruction pointer (and Code Segment for far calls) onto the stack, and loads Instruction Pointer with the address of proc-name. Code continues with execution at CS:IP.

Usage: CALL [destination]

Modifies flags: none

Argument: This could be anything from D0 to D7 based on the register that it’s referencing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

JMP

A

JMP - Unconditional jump - EB. Unconditionally transfers control to the given argument label. Jumps by default are within -32768 and 32678 bytes from the instruction following the jump. NEAR and SHORT jumps cause the IP to be updated while FAR jumps cause CS and IP to be updated.

Usage: JMP [destination]

Modifies flags: none

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

INC

A

INC - Increment - 4x. Adds one to destination unsigned binary operand.

Usage: INC [destination]

Modifies flags: AF OF PF SF ZF

Fuzzing a program with the ‘A’ character (0x41) will be interpreted as an INC ECX command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DEC

A

DEC - Decrement - 4x. Unsigned binary subtraction of one from the destination.

Usage: DEC [destination]

Modifies flags: AF OF PF SF ZF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

JMP ESP

A

JMP ESP - Jump to ESP - FF E4.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly