# PicoCTF 2014 Write-ups

## Basic ASM - 60 (Reverse Engineering)

#### Writeup by Shwinn

Created: 2014-11-13 22:22:35

### Problem

We found this program snippet.txt, but we're having some trouble figuring it out. What's the value of %eax when the last instruction (the NOP) runs?

### Hint

You may want to convert the assembly into some equivalent C code, which will be easier to read!

### Overview

Understand and carry out the assembly operations by hand (possibly with some help from Google).

### Details

The problem asks us to find the value of %eax at the end of the program. Here is the code we are supposed to look through:

One of the most important things to note is that the following Assembly code was written in AT&T/GAS Syntax, which means that the source of the operation comes before the destination.

332236716