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 7740549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:48:32+00:00 2026-06-01T08:48:32+00:00

I have a Windows 7 computer. I heard that Window’s executables use the PE

  • 0

I have a Windows 7 computer. I heard that Window’s executables use the PE format. I was trying to understand how executables are assembled so I opened one up in a hex editor. They start with the heading “MZ” so that the computer knows it is a .exe file. Most of it isn’t english. I also noticed that in my specific file it had 3 “chunks” of 96 NULL characters. Two of them were close to the beginning, and one was at the end. This is what it looks like:

BrokenLink

This code uses the FASM assembler.

This is the code before it was compiled:

BrokenLink

So my question is, how are executables “Put together”. What is up with the endless NULL characters. Also, how come when you edit the hex code of a file and ADD a byte the data is “corrupted”, but how come when you just CHANGE a byte, it is fine.

Thanks so mcuh!!!

Christian

  • 1 1 Answer
  • 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-01T08:48:33+00:00Added an answer on June 1, 2026 at 8:48 am

    The format used by Windows is Microsoft’s Portable Executable format. To find out more you can read the specification of the file.

    So my question is, how are executables “Put together”. What is up with
    the endless NULL characters. Also, how come when you edit the hex code
    of a file and ADD a byte the data is “corrupted”, but how come when
    you just CHANGE a byte, it is fine.

    Portable Executables follow a certain standard. You can not just change bytes because you will cause the file to break the standard.

    Hence, adding bytes at arbitrary places likely to corrupt the format. For example, PE files are composed of sections. These sections have a certain size which is defined in the section headers. The section header itself is a certain size with specific fields at specific offsets. Suppose you just add a byte to a section or section header, you are likely corrupting the file by moving fields to offsets they are not expected to be or making it so a section is not the size it was originally defined to be.

    Changing a byte will change a value somewhere. Even then it is possible for you to mess things up. If you have a specific goal in mind, you should state it and we can probably point you in a better direction to pursue it.

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

Sidebar

Related Questions

I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible
I have a mysql database filled up and running on a Windows computer, is
I have a webserver running on my Windows XP computer. I have set the
Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary
I have several programs I want to uninstall from my computer (Windows 7 64bit).
I have HTML tidy extension on my home computer using PHP 5.2.11 (Windows -
I've have a list of 10 windows services in an array from computer A
I have a couple Windows computers on my network that will be running a
(I have a Linux server and My computer's operating sysyem is Windows.) Hi. I've
I have a windows service that is failing to start, giving an error Error

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.