Analysis model: gpt-5.5 xhigh

Brushwood - Illusion

Subject

Brushwood is a 1992 MS-DOS intro by Illusion. The Hornet 1992 index lists it as:

brshwood.zip       7220 +     Brushwood by Illusion

Release metadata:

Sources:

The final runtime screen and the recovered raw text block contain old contact material. Those details and that frame are deliberately omitted here.

Runtime Capture

Brushwood runtime contact sheet

The contact sheet above is from a local DOSBox-X capture. The first shell frame and the final old-contact frame are not published.

Emulator:        DOSBox-X 2026.01.02 SDL2
Capture date:    2026-06-19
Machine:         svga_s3
CPU core/cycles: normal, 12000 cycles
Sound:           disabled
Command:         dx-capture /v BRSHWOOD.EXE
Capture stream:  MPEG-TS/H.264, 640x400, 33.002667 seconds
Timing zero:     beginning of captured stream after the screen was cleared

Representative observed timestamps:

The sequence GIF below is assembled directly from the ten published runtime frames. It shows the sampled starfield motion and the text-card progression: empty star/logo field, LUST LORD OF ILLUSION, PRESENTS!, BRUSHWOOD!, and the start of the A NEW STYLE ILLUSION INTRO card.

Brushwood runtime sequence GIF showing starfield motion and purple text-card progression

Timestamp Screen state
00:02.000 White starfield over black; large blue Illusion logo sits on the lower edge.
00:04.000 Same composition with a new/advanced star distribution; no text yet.
00:06.000 Starfield continues; bottom logo stays fixed.
00:08.000 Starfield/logo state continues, still no purple text.
00:10.000 Starfield/logo state continues; this is the last sampled pre-text card.
00:12.000 Purple dotted text appears: LUST LORD OF ILLUSION.
00:16.000 The same author/credit text remains while the starfield changes.
00:20.000 Purple text switches to PRESENTS!.
00:24.000 Purple title text switches to BRUSHWOOD!.
00:28.000 Purple text starts the next card: A NEW STYLE ILLUSION INTRO.

The star layer is not a static bitmap. A threshold pass over the published frames finds about 800 bright star pixels in the upper field at each sampled time, but no stable single-pixel displacement matches frame-to-frame. That fits a simple star update/replot loop or a multi-speed starfield more than a single full-screen bitmap scroll.

Runtime/Carrier Concordance

The published visuals are runtime-backed, while the instruction-level code recovered here is the PKLITE-style carrier/depacker. The actual starfield, logo, and dotted-font renderer are described from runtime frames plus the raw post-depacker text block, not from a clean disassembly of the final payload.

Published runtime artifacts:

images/brshwood-runtime-contact.png
    source: DOSBox-X capture contact sheet
    role: timestamped evidence for star/logo/text-card progression

images/brshwood-runtime-sequence.gif
    source: the ten published runtime frames
    role: compact animation of starfield motion and purple text-card changes

images/brshwood-runtime-00-12-000.png
    role: first visible author/credit card

images/brshwood-runtime-00-24-000.png
    role: title card evidence

The carrier/depacker path recovered in this article is:

MZ entry at PSP:0100 wrap
  -> allocation/stack check
  -> copy 0244h-byte unpacker to high memory
  -> backward overlapping image mover
  -> LSB-first bit reservoir
  -> literal/match restore loop
  -> segment normalization markers
  -> relocation stream restore
  -> final far return into the unpacked Brushwood intro

The raw-image text offsets then bridge the runtime cards to data recovered after depacking:

0x5EDA  LUST  LORD        OF         ILLUSION
0x5F3D  PRESENTS
0x5F90  BRUSHWOOD!
0x5FE3  A  NEW STYLE ILLUSION INTRO
0x6AB1  24.05.1992

The runtime sequence matches that script structure. The bottom Illusion logo is stable across the sampled frames, the star pixels change between samples, and the centered purple cards advance through the recovered text block. That makes the visible split plausible and bounded: a star update/replot loop, a resident or redrawn static logo, and a script-timed dotted-font text writer.

Evidence boundary: the page should not claim exact starfield or font-renderer instructions yet. The next deep pass is to stop at the carrier's final 02E9h retf, dump the restored DOS memory image, and disassemble the real Brushwood payload. Until then, the renderer description is a runtime/data concordance, not a recovered code listing.

Archive Contents

Examined archive:

fcb606ec5c5696b3c4a78298efd149ad23acd603a855b3a992c5e2c9ba4d8e08  brshwood.zip

Extracted file:

fe00909a1ad3b0da2165024132b9c7fa7c377fb515aa23553ec12fb4b0ff7562  brshwood.exe  7589 bytes

brshwood.exe is a single-file DOS MZ program. The visible clear text in the packed carrier is mostly the PKLITE banner and the DOS failure string:

file offset 0x001D  "!PKLITE Copr. 1990-91 PKWARE Inc. All Rights Reserved"
file offset 0x00D1  " Not enough memory$"

A scratch depklite run produced a 46648-byte raw image rather than a clean MZ executable. That raw image is still useful because it exposes the text script and confirms the runtime cards, but it is not treated here as a normal loadable EXE.

Important raw-image text offsets:

0x5EDA  "LUST  LORD        OF         ILLUSION"
0x5F3D  "PRESENTS"
0x5F90  "BRUSHWOOD!"
0x5FE3  "A  NEW STYLE ILLUSION INTRO"
0x6AB1  "24.05.1992"

The text block is padded like an 80-column script. For example, the first screen starts at offset 0x5EDA, and the next major card begins at relative offset 80-ish plus padding. This matches the runtime: purple text cards are centered over a continuing starfield rather than generated as arbitrary sentences at arbitrary pixel positions.

MZ Header Shape

The executable header:

file size               7589 bytes
MZ header size           160 bytes
load image size         7429 bytes
relocation entries         1
minimum extra alloc     2794 paragraphs
maximum extra alloc    65535 paragraphs
entry point          CS:IP = FFF0:0100
initial stack        SS:SP = 01DB:0200
relocation table     file offset 0x0052
overlay number       0

The entry address is the packer wraparound trick. DOS loads the MZ image at PSP + 10h paragraphs. With CS = FFF0h and IP = 0100h, execution wraps back to PSP:0100, the first byte of the loaded image. Since the MZ header is 0xA0 bytes, the first executed byte is file offset 0x00A0.

The copied unpacker source is loaded offset 0144h, which maps to file offset 00E4h. The unpacker is copied to a new high-memory segment at offset zero.

Entry Stub

Brushwood uses the same compact PKLITE carrier shape as Boing, but with much smaller size constants.

00a0: mov ax,0caah
00a3: mov dx,01d1h
00a6: add ax,0000h
00a9: cmp [0002h],ax       ; PSP top-of-allocation segment
00ad: jae 00c9h            ; error path: print "Not enough memory$"
00af: sub ax,0020h
00b2: cli
00b3: mov ss,ax
00b5: sti
00b6: sub ax,0025h
00b9: mov es,ax
00bb: push ax
00bc: mov cx,0122h
00bf: xor di,di
00c1: push di
00c2: mov si,0144h         ; loaded offset, file offset 00E4h
00c5: cld
00c6: rep movsw            ; copy 0x244 bytes of unpacker
00c8: retf                 ; continue at copied ES:0000

PSP:0002 is the segment just past the DOS allocation block. The AX = 0CAAh constant is the requested top-of-memory working point for this packed image. If the process was loaded with too little memory, the packer does not attempt a partial restore; it prints the $-terminated DOS message and exits.

The push ax and push di build the far return target. After the rep movsw, the retf pops IP = 0000h and CS = ES, so execution continues at the copy instead of in the original load image.

High-Memory Reposition Loop

The copied block begins with a backward move:

00e4: std
00e5: mov bx,ds
00e7: push bx
00e8: add bx,0039h
00eb: add bx,dx
00ed: mov bp,cs
00ef: mov ax,dx
00f1: and ah,0fh
00f4: mov cl,04h
00f6: mov si,dx
00f8: shl si,cl
00fa: shr dx,cl
00fc: inc dh
00fe: mov cx,si
0100: shr cx,1
0102: dec si
0103: dec si
0104: mov di,si
0106: sub bp,ax
0108: sub bx,ax
010a: mov es,bp
010c: mov ds,bx
010e: rep movsw
0110: mov ax,1000h
0113: mov ch,80h
0115: dec dh
0117: jne 0106h

DX = 01D1h from the entry stub is split into a segment/offset walk. The unpacker uses STD, starts near the high end of the source range, and copies backward. That makes the restore overlap-safe: unread packed bytes are not destroyed while the output image is being moved into place.

The AX = DX & 0F00h-ish adjustment is the paragraph alignment part of the routine. SI = DX << 4 becomes an offset count, DX >>= 4 turns the same constant into a chunk count, and DH is used as the loop counter. Each trip through 0106h selects a new ES:DI and DS:SI pair, then rep movsw performs the block move.

After the movement, the decoder switches back to forward direction:

0119: cld
011a: mov ds,bp
011c: pop es
011d: push es
011e: mov di,0100h
0121: xor si,si
0123: lodsw
0124: xchg ax,bp
0125: mov dx,0010h
0128: jmp 0161h

At this point DS:SI is the packed stream, ES:DI is the output image, BP is the 16-bit control-bit bucket, and DX is the remaining-bit counter.

Bit And Literal Inner Loop

The bit reader is least-significant-bit first:

015a: lodsw
015b: xchg ax,bp
015c: mov dl,10h
015e: jb  0168h
0160: movsb
0161: shr bp,1
0163: dec dx
0164: je  015ah
0166: jae 0160h

The branch state from the previous shr bp,1 determines whether the decoder is in literal or match mode:

MOVSB is deliberately the whole literal hot path. It reads the next payload byte and writes it to the reconstructed image, while control bits are consumed from BP. A run of zero bits therefore becomes a very tight movsb / shr / dec / branch loop.

The refill idiom:

lodsw
xchg ax,bp
mov dl,10h

appears at several labels. Those labels are continuation points, not separate readers; they let the code refill the bit bucket and resume in the middle of a prefix tree without extra state variables.

Match Length And Distance

Match decoding builds a prefix in BX by rotating consumed bits through carry:

0168: xor cx,cx
016a: xor bx,bx
016c: shr bp,1
016e: dec dx
016f: je  012ah
0171: rcl bx,1
0173: shr bp,1
0175: dec dx
0176: je  0130h
0178: rcl bx,1
017a: cmp bl,02h
017d: jae 01a7h
...
01a2: mov bl,cs:[0206h+bx]
01a7: xchg bx,cx           ; CX = match length

Short prefixes become lengths directly or through the small table at CS:0206h. Longer prefixes route through the secondary table path around 021Eh:

0241: mov cl,cs:[0211h+bx]
0246: cmp cl,19h
0249: je  024eh
024b: jmp 01a9h
024e: lodsb
024f: add cl,al
0251: adc ch,00h
0254: cmp al,0feh
0256: jae 025bh
0258: jmp 01a9h

CL = 19h is the extension sentinel. A following byte below FEh extends the length. FEh and FFh are structural markers that enter segment normalization; FFh ends the stream.

Distance decoding then decides how many more bits to read for the high byte:

01a9: xor bx,bx
01ab: cmp cx,0002h
01ae: je  01dah
01b0: shr bp,1
01b2: dec dx
01b3: je  0148h
01b5: jb  01dah
...
01d5: mov bh,cs:[022ch+bx]
01da: lodsb
01db: mov bl,al

The final copy is the actual LZ back-reference:

01dd: push si
01de: mov si,di
01e0: sub si,bx            ; history source = current output - distance
01e2: cli
01e3: rep movsb es:[si],es:[di]
01e6: sti
01e7: pop si
01e8: jmp 0161h

For this one rep movsb, SI is no longer the packed-input pointer. It is an output-history pointer inside ES. The original SI is restored afterward so the compressed stream can continue. The interrupt mask around the copy avoids timer or resident handlers observing the temporary pointer state.

Segment Normalization And Transfer

The packed stream can cross real-mode offset windows. FEh and FFh extension bytes enter the normalizer:

025b: push ax
025c: lea bx,[di-2000h]
0260: and di,000fh
0263: add di,2000h
0267: mov cl,04h
0269: shr bx,cl
026b: mov ax,es
026d: add ax,bx
026f: mov es,ax
0271: mov ax,ds
0273: mov bx,si
0275: and si,000fh
0278: shr bx,cl
027a: add ax,bx
027c: mov ds,ax
027e: pop ax
027f: cmp al,0ffh
0281: je  02ach
0283: jmp 0161h

This rolls ES:DI and DS:SI forward by completed paragraphs while keeping the near offsets in a useful range. FEh resumes decoding after the roll. FFh continues into relocation restore:

02ac: pop bx
02ad: mov bp,bx
02af: add bx,0010h
02b2: xor ax,ax
02b4: lodsb
02b5: xchg ax,cx
02b6: jcxz 02c7h
02b8: lodsw
02b9: add ax,bx
02bb: mov es,ax
02be: lodsw
02bf: xchg ax,di
02c0: add es:[di],bx
02c3: loop 02beh
02c5: jmp 02b2h
02c7: lodsw
02c8: add ax,bx
02ca: cli
02cb: mov ss,ax
02cd: lodsw
02ce: mov sp,ax
02d0: sti
02d1: lodsw
02d2: add bx,ax
02d4: push bx
02d5: lodsw
02d6: push ax
02d7: mov es,bp
02d9: mov ds,bp
02db: xor ax,ax
02dd: mov bx,ax
02df: mov cx,ax
02e1: mov dx,ax
02e3: mov bp,ax
02e5: mov si,ax
02e7: mov di,ax
02e9: retf

The carrier restores relocation fixups, installs the unpacked program's stack, pushes the restored CS:IP, clears the general registers, and far-returns into the real Brushwood intro.

What The Visible Intro Does

The unpacked runtime appears to be built from three simple layers:

  1. A black background with continuously changing white star pixels.
  2. A large blue Illusion logo fixed to the lower edge.
  3. Centered purple dotted-font text cards read from a padded script block.

The likely frame loop is small:

The raw-image text block supports that reading. It stores centered text in fixed-width padded lines, not in a compact token language. The runtime effect is therefore mostly timing, star plotting, and font stamping rather than a heavy geometric or plasma routine.

Reconstruction Limits

The PKLITE carrier/depacker is recovered and disassembled at instruction level. The post-retf renderer was not cleanly recovered as a separate EXE in this pass: depklite emitted a raw memory-like image, not a valid MZ program. The starfield/logo/text runtime is described from the captured frames plus the raw text block.

A deeper pass would break immediately at the carrier's final 02E9h retf, dump the restored image in DOS memory, and disassemble the actual star update, font plotter, and script timer routines.