0PricingLogin
Reverse Engineering & Binary Analysis Basics · Lesson

Data Representation in Binaries

Learn how data types (integers, floats, strings) are stored in memory and files, including concepts like endianness.

What is Binary Data?

When you reverse engineer, you're looking at a program's raw binary form. This means understanding how all kinds of data—numbers, text, and more—are stored as sequences of bits and bytes.

A bit is the smallest unit, either 0 or 1. Eight bits make a byte. Everything a computer does, from calculations to displaying text, relies on these fundamental units.

Numbers as Bits: Integers

Integers are whole numbers. They can be signed (positive or negative) or unsigned (only non-negative). The number of bytes used determines the range of values an integer can hold.

  • Byte (8-bit): 0 to 255 (unsigned) or -128 to 127 (signed).
  • Word (16-bit): Up to 65,535 (unsigned).
  • DWord (32-bit): Up to ~4 billion (unsigned).
  • QWord (64-bit): Much larger numbers!

All lessons in this course

  1. CPU Architectures Overview
  2. Data Representation in Binaries
  3. Common Binary File Formats
  4. Endianness & Byte Ordering
← Back to Reverse Engineering & Binary Analysis Basics