Analysis model: gpt-5.5 xhigh

# Star Glider 2 Cracktro by International Network of Crackers - Technical Dissection

`Star Glider 2 Cracktro` is an 11 October 1989 MS-DOS cracktro by
International Network of Crackers. Demozoo lists it as an MS-DOS cracktro by
INC, released on 11 October 1989.

Release year: 1989

The preserved Scene.org archive is tiny: a batch file, a TheDraw COM screen
saver named `READINC.COM`, and a small play-notes document. The target game
program named by the batch file is not preserved in this ZIP.

This is a close relative of the `ABC Monday Night Football` and `Ufo` INC
cards. The executable is the same 4176-byte TheDraw COM display stub shape:
`00B0h` bytes of header/code followed by `25 * 80 * 2` bytes of text-mode
character/attribute data. The interesting difference is packaging. Here the
COM is explicitly driven by `RUNME.BAT`, which clears the screen, runs the COM,
waits for a key with DOS `pause`, and then tries to run `sg2`.

## Sources

- Demozoo production page:
  https://demozoo.org/productions/373318/
- Scene.org file page:
  https://files.scene.org/view/demos/groups/inc/sg2inc-1.zip
- Scene.org archive:
  https://files.scene.org/get/demos/groups/inc/sg2inc-1.zip

## Visual

The still below is decoded from the embedded B800 text page in `READINC.COM`.
It is not a live DOSBox screenshot; it is a direct character/attribute render
of the page copied by the COM program.

| Time | Still | What is happening |
| --- | --- | --- |
| `00:00.000` | ![Decoded Star Glider 2 Cracktro INC title text page](images/star-glider-2-cracktro-text-page.png) | `READINC.COM` has copied its 23 active TheDraw rows to the beginning of the text-mode video page. The `Press a key to play...` prompt is text on the saved page; the actual wait is supplied by `RUNME.BAT` after the COM exits. |

The loader/handoff map:

![Star Glider 2 Cracktro TheDraw COM and batch handoff map](images/star-glider-2-cracktro-loader-map.png)

## Archive

Scene.org reports a `1.46K` ZIP. The examined archive hash is:

```text
d7cde1f3225ef401ac0bea48cf1e8f3e256197aed1703bb5d216df49962a5a11  sg2inc-1.zip
```

ZIP central directory:

```text
RUNME.BAT      45 bytes  stored               1989-10-11 18:32:18
READINC.COM  4176 bytes  imploded to 695 bytes 1989-10-11 18:25:40
STARGLID.DOC  547 bytes  imploded to 443 bytes 1989-10-11 18:35:34
```

Extracted hashes:

```text
24b9c206d967a54d7ddc45cb81b230ede904ea5b73cfcd38ddaed30922688033  RUNME.BAT
9e7bd67f4812024142c557bea03629ed629639a0b9feee8ec4bc65905780a187  READINC.COM
869424e0c30b38e4965ae07d27ac15e2594b4112970ebba22383db11d04b8816  STARGLID.DOC
```

`RUNME.BAT` is the whole package controller:

```bat
@echo off
cls
readinc.com
pause>nul
sg2
```

That is the real flow. `READINC.COM` only displays the title card and exits.
The key wait is the batch `pause>nul`, and `sg2` is the missing game-side
handoff target.

`STARGLID.DOC` is a short note from The Mad Scientist. It says the group does
not yet have full docs, explains that the protection prompt accepts anything,
and credits INC 1989. The final plug line is not needed for the public visual
or the technical analysis.

## COM Layout

For COM addressing:

```text
file offset 0000h -> runtime CS:0100h
runtime offset    = file offset + 0100h
file offset       = runtime offset - 0100h
```

`READINC.COM` layout:

```text
file 0000h..0002h  runtime 0100h..0102h  jump to display stub
file 0003h..0008h  runtime 0103h..0108h  mutable TheDraw fields
file 0009h..0025h  runtime 0109h..0125h  "TheDraw COM file Screen Save",1Ah
file 0026h..003Eh  runtime 0126h..013Eh  "$"-terminated unsupported-mode text
file 003Fh..00AFh  runtime 013Fh..01AFh  active 113-byte display stub
file 00B0h..0F0Fh  runtime 01B0h..100Fh  23 active 80-column rows
file 0F10h..104Fh  runtime 1010h..114Fh  two stored blank rows, not copied
```

The mutable fields at file offsets `0003h..0008h`:

```text
0003h  00h       snow-safe / mode flag scratch byte
0004h  17h       row counter = 23 rows
0005h  0050h     words per row = 80
0007h  0000h     starting video-memory offset
```

The file stores a full 25-row text page, but the row counter is `17h`, so the
program copies only the first 23 rows. The final two rows are blank spaces with
attribute `0Fh`. In the batch-driven run, `RUNME.BAT` calls `cls` before the
COM, so leaving rows 23 and 24 untouched is harmless; the prompt will appear
after the COM exits and the batch resumes.

## Display Stub

The active code starts at runtime offset `013Fh`:

```asm
0100  jmp 013Fh
0102  nop

013F  mov ah,0Fh
0141  int 10h
0143  mov bx,cs
0145  mov ds,bx
0147  mov bx,0B000h
014A  mov ah,00h
```

`INT 10h/AH=0Fh` returns the current video mode in `AL`. The code initially
assumes monochrome text memory at `B000h`, then switches to colour memory for
normal 80-column colour text modes:

```asm
014C  cmp al,07h
014E  je  016Bh          ; monochrome text mode
0150  cmp al,04h
0152  jae 015Fh          ; graphics modes: unsupported
0154  mov bx,0B800h      ; colour text segment
0157  mov ah,[0103h]     ; flag byte, initially 00h here
015B  cmp al,02h
015D  jae 016Bh          ; colour 80-column text modes 2/3
```

Supported modes:

```text
mode 02h  80x25 colour text, B800h
mode 03h  80x25 colour text, B800h
mode 07h  monochrome text, B000h
```

Unsupported modes print the `$`-terminated text at runtime `0126h` and exit:

```asm
015F  lea dx,[0126h]     ; "Unsupported Video Mode", CR/LF, "$"
0163  mov ah,09h
0165  int 21h
0167  mov ah,4Ch
0169  int 21h
```

## Text Page Copy Inner Loop

After mode selection:

```asm
016B  mov es,bx
016D  mov si,01B0h       ; saved text page
0170  cld
0171  push di
0172  mov di,[0107h]     ; destination offset, 0000h
```

The row loop:

```asm
0175  inc  byte [0104h]
0179  cmp  byte [0103h],00h
017E  je   019Bh
```

That `inc [0104h]` looks backwards until the end of the loop is considered.
The actual loop test uses `dec [0104h]` at `01A9h`. Starting from `17h`, the
first `inc` makes it `18h`, and the first `dec` at the end restores it to
`17h` while deciding to continue. This means exactly 23 active rows are copied,
but the counter byte is destructive: after one run it ends as zero.

There are two copy paths.

### Snow-Safe Path

If the flag byte at `0103h` is nonzero, the stub performs CGA status-port
polling around each word:

```asm
017E  mov dx,03DAh
0181  mov bl,09h
0183  mov cx,0050h

0186  lodsw
0187  mov bh,al

0189  in  al,dx
018A  and al,bl
018C  jnz 0189h

018E  mov al,ah
018F  stosw

0190  in  al,dx
0191  and al,bl
0193  jz  0190h
0195  loop 0186h
```

This is the old CGA snow-avoidance path. Port `03DAh` is the CGA status
register. The loop waits around each `STOSW` so the card is not updated at a
time likely to show snow on composite/old CGA hardware.

For this archive, the flag byte is `00h`, so the snow-safe path is present but
normally skipped.

### Fast Path

With `0103h = 00h`, the code copies a whole row with one repeated string
operation:

```asm
019B  mov  cx,0050h      ; 80 character/attribute words
019E  rep  movsw         ; copy row from CS:SI to ES:DI
```

After either copy path:

```asm
01A0  pop  di
01A1  add  di,00A0h      ; next 80-column text row
01A5  push cs
01A6  pop  ds
01A7  dec  byte [0104h]
01AB  jne  0175h
01AD  jmp  0166h         ; DOS exit path
```

The visible renderer is therefore:

```text
for 23 rows:
    copy 80 char/attribute words from embedded page
    advance destination by 160 bytes
exit to DOS
```

There is no font renderer, no ANSI parser, no scroller, and no key wait inside
`READINC.COM`.

## Saved Text Page

The text page starts at file offset `00B0h`. Each cell is:

```text
byte 0: CP437 character
byte 1: text attribute, low nibble foreground, high nibble background
```

The visible page contains:

- a blue single-line border;
- green top text, `The Mad Scientist Presents...`;
- red `STAR GLIDER II` block lettering;
- yellow side bars;
- a yellow/orange `INC` block logo;
- a small `An ... Crack` label around the logo;
- thanks/hi lines for Line Noise, Patch, Megaton Man, and Malignant Growth;
- bottom prompt text, `Press a key to play...`.

The prompt is only a visual cue. The COM immediately exits after copying the
page, so the actual wait is the later batch `pause>nul`.

## Batch Handoff Boundary

The package expects this sequence:

1. DOS runs `RUNME.BAT`.
2. `cls` clears the screen.
3. `READINC.COM` copies the title card to text memory and exits.
4. `pause>nul` waits for a key without printing DOS's normal prompt.
5. The batch tries to run `sg2`.

The ZIP does not contain `SG2.COM`, `SG2.EXE`, or a bare `SG2` file. That is the
handoff boundary. The preserved cracktro package documents the loader intent,
but not the target game executable.

## Relationship To The Other INC Text Cards

`READINC.COM` is the same TheDraw COM screen-save style as the later INC cards:

```text
ABC Monday Night Football Cracktro  INCTITLE.COM  4176 bytes
Ufo Cracktro                        INCTITLE.COM  4176 bytes
Star Glider 2 Cracktro              READINC.COM   4176 bytes
```

The loader stub is generic. The archive-specific material is:

- the saved text page at `00B0h`;
- the batch file that decides whether there is a pause and payload handoff;
- any sidecar documentation.

That is why these files disassemble identically through the display stub but
still represent different preserved releases. In this case, `RUNME.BAT` makes
the intent clearer than in the single-file `Ufo` archive: show card, wait, run
game.

## Takeaway

`Star Glider 2 Cracktro` is not technically complex, but it is a useful October
1989 reference point for the INC workflow:

- The visible title card is authored as a TheDraw text screen.
- The COM program is only a reusable text-page copier.
- Compatibility code handles mono text, colour text, unsupported modes, and an
  optional CGA snow-safe path.
- The key wait and game launch live in the batch wrapper, not the COM.
- The original target executable is absent from the preserved archive.

The inner loop is therefore intentionally boring and effective: `REP MOVSW` 80
words per row, 23 rows, then DOS exit. The surrounding package is what turns
that saved text page into a cracktro handoff.
