lundi 9 mars 2020

Intel x86-64 assembly jump statement question

Im tasked with reverse engineering assembly code back into C-code

    jge    .L4
    movq   $76, -16(%rbp)
    movq   $87, -24(%rbp)
    jmp    .L5

.L4:
    movq   -16(%rbp), %rax
    imulq  -24(%rbp), %rax
    movq   %rax, -40(%rbp)

.L5:
    do more stuff

My question is after I am done with the L4 (an if statement using ordering operations) instructions do I go back up and execute the code to move 76 and 87 into memory locations or do I move onto L5? Also would the instructions to move 76 and 87 probably be in an else statement?

Aucun commentaire:

Enregistrer un commentaire