Government Security
Network Security Resources

Jump to content

Photo

MessageBox in assembly

- - - - - windows assembly
  • Please log in to reply
1 reply to this topic

#1 yournightmare

yournightmare

    Private

  • Members
  • 1 posts

Posted 14 May 2009 - 06:11 AM

Hi

I have a assembly program that is suppose to display a messagebox but it crashes instead. It crashes at line 22 ( http://pastebin.com/m6cc3eae6 ). here's how it looks in ollydbg ( http://img11.imagesh...6/assemblyi.jpg ) after the selected line gets executed it crashes. I'm using windows vista and compiled the program with nasm.

#2 DidierStevens

DidierStevens

    Specialist

  • Sergeant Major
  • 100 posts

Posted 14 May 2009 - 10:18 AM

Hi

I have a assembly program that is suppose to display a messagebox but it crashes instead. It crashes at line 22 ( http://pastebin.com/m6cc3eae6 ). here's how it looks in ollydbg ( http://img11.imagesh...6/assemblyi.jpg ) after the selected line gets executed it crashes. I'm using windows vista and compiled the program with nasm.


You are writing to your code segment which is stored in a read-only and execute virtual page. Writing to that location causes an exception.





Also tagged with one or more of these keywords: windows, assembly