Wiki : ./Misc/Memory/EIP.md

Instruction Pointer Register

EIP is the most important register for reverse engineering as it contains the next instruction adress that the CPU will execute in a linear address fashion.

Example

#include <stdio.h>
#include <stdlib.h>

void unreachableFunction(void) {
    printf("I´m hacked! Hidden function\n");
    exit(0);
}

int main(void) {
    printf("Hello world\n");
    return 0;
}