CSC231 Lab 2 2014

From dftwiki3
Jump to: navigation, search

--D. Thiebaut (talk) 14:23, 8 September 2014 (EDT)


Work Due


  • One program called lab2.asm, submitted to Moodle
  • Due date: 9/16/14 @ 9:00 a.m.


Reverse Engineering


Recreate the original assembly program whose hexdump is shown below. You should call your program lab2.asm.

00000000  7f 45 4c 46 01 01 01 00  00 00 00 00 00 00 00 00  |.ELF............|
00000010  02 00 03 00 01 00 00 00  80 80 04 08 34 00 00 00  |............4...|
00000020  e0 00 00 00 00 00 00 00  34 00 20 00 02 00 28 00  |........4. ...(.|
00000030  06 00 03 00 01 00 00 00  00 00 00 00 00 80 04 08  |................|
00000040  00 80 04 08 a2 00 00 00  a2 00 00 00 05 00 00 00  |................|
00000050  00 10 00 00 01 00 00 00  a4 00 00 00 a4 90 04 08  |................|
00000060  a4 90 04 08 14 00 00 00  14 00 00 00 06 00 00 00  |................|
00000070  00 10 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000080  b8 04 00 00 00 bb 01 00  00 00 ba 14 00 00 00 b9  |................|
00000090  a4 90 04 08 cd 80 b8 01  00 00 00 bb 00 00 00 00  |................|
000000a0  cd 80 00 00 0a 43 53 43  32 33 31 2c 20 46 61 6c  |.....CSC231, Fal|
000000b0  6c 20 32 30 31 34 0a 0a  00 2e 73 79 6d 74 61 62  |l 2014....symtab|
000000c0  00 2e 73 74 72 74 61 62  00 2e 73 68 73 74 72 74  |..strtab..shstrt|
000000d0  61 62 00 2e 74 65 78 74  00 2e 64 61 74 61 00 00  |ab..text..data..|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  00 00 00 00 00 00 00 00  1b 00 00 00 01 00 00 00  |................|
00000110  06 00 00 00 80 80 04 08  80 00 00 00 22 00 00 00  |............"...|
00000120  00 00 00 00 00 00 00 00  10 00 00 00 00 00 00 00  |................|
00000130  21 00 00 00 01 00 00 00  03 00 00 00 a4 90 04 08  |!...............|
00000140  a4 00 00 00 14 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  04 00 00 00 00 00 00 00  11 00 00 00 03 00 00 00  |................|
00000160  00 00 00 00 00 00 00 00  b8 00 00 00 27 00 00 00  |............'...|
00000170  00 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|
00000180  01 00 00 00 02 00 00 00  00 00 00 00 00 00 00 00  |................|
00000190  d0 01 00 00 b0 00 00 00  05 00 00 00 07 00 00 00  |................|
000001a0  04 00 00 00 10 00 00 00  09 00 00 00 03 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  80 02 00 00 35 00 00 00  |............5...|
000001c0  00 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 80 80 04 08  00 00 00 00 03 00 01 00  |................|
000001f0  00 00 00 00 a4 90 04 08  00 00 00 00 03 00 02 00  |................|
00000200  01 00 00 00 00 00 00 00  00 00 00 00 04 00 f1 ff  |................|
00000210  0a 00 00 00 a4 90 04 08  00 00 00 00 00 00 02 00  |................|
00000220  0f 00 00 00 14 00 00 00  00 00 00 00 00 00 f1 ff  |................|
00000230  00 00 00 00 00 00 00 00  00 00 00 00 04 00 f1 ff  |................|
00000240  16 00 00 00 80 80 04 08  00 00 00 00 10 00 01 00  |................|
00000250  1d 00 00 00 b8 90 04 08  00 00 00 00 10 00 02 00  |................|
00000260  29 00 00 00 b8 90 04 08  00 00 00 00 10 00 02 00  |)...............|
00000270  30 00 00 00 b8 90 04 08  00 00 00 00 10 00 02 00  |0...............|
00000280  00 6c 61 62 32 2e 61 73  6d 00 6d 65 73 67 00 4d  |.lab2.asm.mesg.M|
00000290  53 47 4c 45 4e 00 5f 73  74 61 72 74 00 5f 5f 62  |SGLEN._start.__b|
000002a0  73 73 5f 73 74 61 72 74  00 5f 65 64 61 74 61 00  |ss_start._edata.|
000002b0  5f 65 6e 64 00                                    |_end.|
000002b5