CIS-77 Home http://www.c-jump.com/CIS77/CIS77syllabus.htm

Lab M07. Opcode Analysis using OllyDbg


  1. Getting Started
  2. ABC.ASM
  3. Loading OllyDbg
  4. View Executable Modules
  5. Memory View
  6. Disassembly View
  7. User Code
  8. Dump View (Program Data View)
  9. Entering Opcodes Manually
  10. Alternative Solution
  11. Opcode Analysis
  12. Saving Modified Program Image (optional)
  13. What to Submit

1. Getting Started




; CIS-77 Lab exercise M01
; ABC.asm
; Empty program that reserves 3 bytes of memory
; in the data segment.

.386                ; Tells MASM to use Intel 80386 instruction set.
.MODEL FLAT         ; Flat memory model
option casemap:none ; Treat labels as case-sensitive

.CONST          ; Constant data segment
.STACK 100h     ; (default is 1-kilobyte stack)

.DATA           ; Begin initialised data segment
        BYTE  'A'
        BYTE  'B'
        BYTE  'C'

.CODE           ; Begin code segment
_main PROC      ; Main entry point into program
    BYTE 16 DUP (90h)
    ret
_main ENDP
END _main       ; Marks the end of the module and sets the program entry point label

2. Loading OllyDbg



3. View Executable Modules



4. Memory View



5. Disassembly View



6. User Code



7. Dump View (Program Data View)



8. Entering Opcodes Manually



9. Alternative Solution



10. Opcode Analysis



11. Saving Modified Program Image (optional)



12. What to Submit