Tags: assembly reversing 

Rating:

# 042

We're given the disassembly of a program. Let's have a look at it.

```
$ cat reversing3.s
```

Immediately, in the `main` function, I notice some data being moved into some addresses.

![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/042-1.png)

This data spans from 51 to 98, conveniently enough within the range of alphanumeric characters in ASCII. We can use an ASCII table to translate these integer values to characters.

![](https://raw.githubusercontent.com/shawnduong/ctf-writeups/master/2019-TAMU/images/042-2.png)

```
65 -> A
53 -> 5
53 -> 5
51 -> 3
77 -> M
98 -> b
49 -> 1
89 -> Y

A553Mb1Y
```

And of course, we have to put it in the flag format for the competition, so the flag is `gigem{A553Mb1Y}`.

Original writeup (https://github.com/shawnduong/ctf-writeups/blob/master/2019-TAMU/Reversing/042.md).