Lably
Skip to content

AARD code

Segment of code in beta release of Windows 3.1

  • 2 min read
  • 3 chapters

Explore on Lably

ToursExplore Lably’s 3D tours

Description

This XOR-encrypted, self-modifying, and deliberately obfuscated x86 assembly code used a variety of undocumented MS-DOS structures and functions to detect if a machine was running DR DOS. The code was present in the installer, in the WIN.COM file used to load Windows, and in several other EXE and COM files within Windows 3.1.

The AARD code was discovered by Geoff Chappell on 17 April 1992 and further analyzed and documented in a joint research effort with Andrew Schulman. The name "AARD code" came from the letters "AARD" that were found in a hex dump of the Windows 3.1 installer; this turned out to be the signature of Microsoft programmer Aaron R. Reynolds (1955–2008).

Microsoft disabled the AARD code for the final release of Windows 3.1, but did not remove it, so it could be later reactivated by the change of a single byte.

DR DOS publisher Digital Research released a patch named "business update" in 1992 to bypass the AARD code.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication