Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8498189

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:20:03+00:00 2026-06-11T00:20:03+00:00

One really old program of mine has a message box of an error which

  • 0

One really old program of mine has a message box of an error which keeps being displayed and I need to get rid of it. I’ve lost the source so I’m using assembly now:

The section with the assembly and message box looks like

Cmp, ebx 4F6h
Jl short loc 10000dec
Push 30h
Push offset caption ; error ...
Push offset detailsitspast08
Push 0
Call ds: messageboxa

How can I modify this so it doesn’t display the message box?

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:20:05+00:00Added an answer on June 11, 2026 at 12:20 am

    IDA is fine, but you’ll need a hex-editor as well, such as Hex Workshop or XVI32. Here’s how you can do it:

    In IDA, focus the text cursor in the first line you want to replace, push 30h. Look at the left part of the statusbar below the disassembly window. You should see two hex addresses – the physical and the virtual. Take note of the physical one. Now focus on the first instruction after call ds:MessageBoxA. Again take note of the physical address.

    Open the executable in the hex editor (make a backup first!), and navigate to the first physical address. Make sure you’re overwriting the bytes rather than inserting them, and keep writing the 0x90 value until you reach the second address. Don’t overwrite it.

    Save this changed file under a different name, open it in another instance of IDA (if you overwrite the original file, IDA will not be able to open the new one side by side), navigate to the virtual address, and check that all the bytes have been replaced correctly. That’s it.

    Hint: if you go to IDA’s Options > General and set Number of opcode bytes to a non-zero value, such as 10, you will see the bytes making up each instruction on the left. You can count these to make sure you replaced the right number of bytes. (Or you can just subtract start address from end address, obviously).

    Here’s an example screenshot (the application in the shot is of course different, but the gist is the same):

    Before:

    The original instructions

    After:

    The changed instructions

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got one really big .java class file that has a lot of members.
<?python class += 1 ?> One really simple line of code which definitely should
I try to compile an old program (which was compiled by cc) using gcc.
Ok, so i have one really monstrous MySQL table (900k records, 180 MB total),
I saw many threads with this tittle, but no one really speak about reuse
this one is really easy. I'm trying to create a Regular Expression that will
Boy, this one is really weird. I expect the following code to print 1990,
Ok, this one is really weird... I can't show code for it exactly cause
One thing that really bothers me about Google Code is that fact that it
The one thing I really miss in vim is a tiered intellisense support, just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.