Analysis model: gpt-5.5 xhigh

Lakers vs Celtics and NBA Playoffs Cracktro by North American Pirate-Phreak Association - Technical Dissection

Lakers vs Celtics and NBA Playoffs Cracktro is a September 1989 MS-DOS cracktro/info card preserved as a single PIRATE.EXE.

Release year: 1989

The attribution is a little messy. Demozoo's International Network of Crackers group page lists Lakers vs Celtics and NBA Playoffs Cracktro under INC for September 1989, but the executable's own visible title says:

The North American Pirate/Phreak Association

and INC appears only in the greeting line. For this analysis I treat the binary's own title card as the primary evidence and attribute the preserved program to North American Pirate-Phreak Association, while noting the INC cross-listing as scene-index context.

This is not a VGA effect demo. It is a compiled MZ program whose whole visible body is a DOS/ANSI-style text card written through Pascal runtime calls. That still makes it useful: the intro shows a late-1989 transition point between simple COM screen savers and compiled cracktro wrappers.

Sources

Visual

The still below is reconstructed from the Pascal short strings embedded in PIRATE.EXE. It is not a live DOSBox screenshot. The rendering follows the program's own write order and interprets the embedded ANSI escape sequences and CP437 box/block characters.

Time Still What is happening
00:00.000 Reconstructed Lakers vs Celtics Cracktro ANSI title screen PIRATE.EXE has cleared the screen through ANSI control text and is writing the preserved NAPPA title card one Pascal short string at a time.

The runtime map:

Lakers vs Celtics Cracktro MZ and Pascal runtime map

Archive

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

ba0c0cdcd4cb8c68604b6a936a6111f0a45f5e4eb044dc90186c80a62380c972  lakers_vs_celtics_and_the_nba_playoffs_cracktro.zip

ZIP central directory:

PIRATE.EXE  3760 bytes  deflated to 2038 bytes  1989-09-29 16:51

Extracted hash:

c5bc379fdd90dbbbe2e888c043bef1b7ac2dca11b01ea89d8b0e07cb772e14df  PIRATE.EXE

The archive contains no batch file, target game executable, NFO, music file, or external ANSI screen. Everything visible is in PIRATE.EXE itself.

MZ Layout

The MZ header:

signature:       MZ
last page bytes: 00B0h
pages:           0008h
relocations:     004Ah = 74
header size:     0015h paragraphs = 336 bytes
min alloc:        0425h paragraphs
max alloc:        A425h paragraphs
SS:SP:           00FBh:4000h
CS:IP:           0000h:0412h
reloc table:      001Ch
overlay:          0000h
file size:        3760 bytes
load image:       3424 bytes

DOS therefore loads the executable body from file offset 0150h, and the entry point at CS:0412h maps to file offset:

0150h + 0412h = 0562h

That matters because the bytes before load offset 0412h are not failed disassembly. They are the embedded text-card data.

The useful file/load map is:

file 0000h..014Fh  MZ header and relocation table
load 0000h..0411h  Pascal short strings / ANSI title card
load 0412h..069Fh  main program: repeated title-card write calls
load 06A0h..0D5Fh  Pascal runtime helpers, DOS wrappers, error text

The first relocation entries point at far-call segment words inside the repeated write sequence:

reloc 0000:0415  file 0565h  value 006Bh
reloc 0000:042A  file 057Ah  value 006Bh
reloc 0000:042F  file 057Fh  value 006Bh
reloc 0000:0434  file 0584h  value 006Bh
...

Those are the segment halves of calls like lcall 006B:0626, lcall 006B:05A9, and lcall 006B:020E. The executable is not position-free handwritten COM code; it expects DOS relocation.

Embedded Strings

The title card is stored as Pascal short strings:

offset  byte  meaning
0000h   0Fh   length 15, ANSI clear/background setup
0010h   55h   length 85, top border
0066h   0Ah   length 10, blank inside-border row
0071h   4Bh   length 75, block-logo row 1
00BDh   4Ah   length 74, block-logo row 2
0108h   4Fh   length 79, block-logo row 3
0158h   51h   length 81, block-logo row 4
01AAh   49h   length 73, block-logo row 5
01F4h   0Bh   length 11, blank inside-border row
0200h   49h   length 73, bottom border
024Ah   3Bh   group title line
0286h   1Eh   blank spacer
02A5h   1Fh   year line
02C5h   0Dh   blank spacer
02D3h   0Fh   blank spacer
02E3h   66h   game title line
034Ah   00h   zero-length line
034Bh   2Bh   cracked-by line
0377h   1Bh   blank spacer
0393h   48h   greeting line 1
03DCh   30h   greeting line 2
040Dh   04h   ANSI reset

The strings are contiguous from 0000h to 0411h; the executable entry begins immediately after the final ESC[0m string.

The visible text fragments from the binary:

The North American Pirate/Phreak Association
* 1 9 8 9 *
NBA Basketball Playoffs -- Lakers and Celtics
Cracked by  --  Metallus Cimber
Warm Greets to Mr. Sike, Microfox, Mutual Assurance,
Phoebus Apollo, FiRM, INC, and PTL!

There is no phone list or BBS board list in this preserved title card.

Main Write Loop

The main routine is not a loop instruction in the CPU sense. It is unrolled compiler output: the same call pattern appears once for each embedded string.

The first block, at load offset 041Ah, writes the string at 0000h:

041A  bf 3e 01        mov  di,013Eh
041D  1e              push ds
041E  57              push di              ; destination/output object

041F  bf 00 00        mov  di,0000h
0422  0e              push cs
0423  57              push di              ; source Pascal short string

0424  31 c0           xor  ax,ax
0426  50              push ax              ; formatting/width argument

0427  9a 26 06 6b 00  lcall 006Bh:0626h
042C  9a a9 05 6b 00  lcall 006Bh:05A9h
0431  9a 0e 02 6b 00  lcall 006Bh:020Eh

The exact Pascal runtime names are not present, so the call names below are behavioral labels:

006B:0626  prepares/binds the destination and source short string
006B:05A9  writes the prepared string through the runtime text output path
006B:020E  emits the line terminator / flushes the line-level write

The important part is the stack contract. Every visible row is passed as:

push destination segment  DS
push destination offset   013Eh
push source segment       CS
push source offset        string_offset
push word                 0000h
far call                  006B:0626
far call                  006B:05A9
far call                  006B:020E

The repeated source offsets:

PC     source  length  role
041A   0000h   0Fh     ANSI clear/background
0436   0010h   55h     top border
0452   0066h   0Ah     empty bordered row
046E   0071h   4Bh     logo row
048A   00BDh   4Ah     logo row
04A6   0108h   4Fh     logo row
04C2   0158h   51h     logo row
04DE   01AAh   49h     logo row
04FA   01F4h   0Bh     empty bordered row
0516   0200h   49h     bottom border
0532   024Ah   3Bh     group title
054E   0286h   1Eh     spacer
056A   02A5h   1Fh     year
0586   02C5h   0Dh     spacer
05A2   02D3h   0Fh     spacer
05BE   02E3h   66h     game title
05DA   034Ah   00h     blank line
05F6   034Bh   2Bh     cracked-by line
0612   0377h   1Bh     spacer
062E   0393h   48h     greetings line 1
064A   03DCh   30h     greetings line 2
0666   034Ah   00h     blank line
0682   040Dh   04h     ANSI reset

Each block is 1Ch bytes long:

3 bytes  mov di,013Eh
1 byte   push ds
1 byte   push di
3 bytes  mov di,<string_offset>
1 byte   push cs
1 byte   push di
2 bytes  xor ax,ax
1 byte   push ax
5 bytes  far call 006B:0626
5 bytes  far call 006B:05A9
5 bytes  far call 006B:020E

The compiler did not build a table-driven loop like:

lodsw
call write_string_at_ax

Instead it emits a complete call site for every line. That is wasteful for space, but the whole executable is still only 3760 bytes and the compiler keeps the program simple: no loop counter, no string-offset table, no branch around the card body.

ANSI And Cursor Movement

The title card is not copied directly to B800h. It is written as text with ANSI control sequences:

ESC [ 40 m      set black background
ESC [ 2 J       clear screen
ESC [ 3 C       cursor right 3 columns
ESC [ 0 ; 1 m   reset + bright
ESC [ 68 C      skip 68 columns
ESC [ 34 m      blue foreground
ESC [ 37 m      white foreground
ESC [ 31 C      center the year line

The program relies on DOS text output plus an ANSI interpreter for colour, cursor movement, and clear-screen behavior. Without ANSI.SYS or an equivalent, the escape sequences would be printed literally or partially ignored.

The CP437 block-logo rows combine cursor skips with block and line characters:

DBh / DCh style block cells for the red/gray logo body
C4h line cells for the blue horizontal strokes
BAh/D6h/B7h/D3h/BDh box characters for the border

Because the code uses text output, the inner visible renderer is not a VRAM copy loop. The expensive work is delegated to DOS/ANSI:

program writes bytes -> DOS console driver -> ANSI parser -> BIOS/text screen

That is also why the binary can stay small while still drawing a coloured, positioned screen.

Program Tail

After the last ESC[0m write, the user program ends:

069E  89 ec           mov  sp,bp
06A0  5d              pop  bp
06A1  31 c0           xor  ax,ax
06A3  9a d8 00 6b 00  lcall 006Bh:00D8h

The far call enters the runtime termination path. The following code from 06A0h onward is the bundled Pascal runtime scaffold:

06A0h..074Dh  startup/exit and DOS interrupt-vector save/restore
074Eh..0842h  runtime termination and INT 21h/AH=4Ch exit path
0843h..0889h  runtime-error number printing helpers
088Ah..08B6h  "Runtime error " / " at " text
08B7h..0A1Fh  runtime checks and file object helpers
0A20h..0B87h  DOS open/seek/read/write/close wrappers
0B88h..0C94h  byte/line input-output helpers
0C95h..0D13h  string field write helper

The static string table contains no preserved child program name, no target game EXEC call string, and no key prompt. This is different from the later Miami Vice Cracktro, which reads RUNME.INC and tries to execute a missing target. Here the preserved ZIP is just the standalone card.

What The Inner Loop Actually Does

At the level of useful behavior:

  1. DOS relocates the MZ load image, including the segment halves of the far calls into the runtime.
  2. Runtime startup sets up the Pascal data/output structures.
  3. The main routine performs 23 unrolled string writes.
  4. Each write passes a Pascal short string from CS:<offset> into the runtime text output path.
  5. ANSI escape sequences inside the strings control colour, clear-screen, and cursor-right movement.
  6. CP437 printable bytes provide the border, block logo, and text.
  7. The runtime appends line termination for each call.
  8. The runtime exits to DOS with status zero.

So the core is not:

copy 4000 bytes to B800h

It is closer to:

for each already-formatted Pascal line:
    pass short string to Pascal text writer
    DOS/ANSI interprets escapes
    advance to next text line

Except the compiler has expanded that loop into 23 individual call sites.

Why This One Is Interesting

This cracktro sits between two styles already visible in the 1988-1989 material:

PIRATE.EXE has the compiled-runtime shape of the second category, but the actual production logic is still just one title card. That makes it a clean example of how a Pascal-style MZ wrapper can look much larger and more complex than the visible intro really is.

The important correction is not to overread the bundled runtime as custom demo code. Almost all custom content is in the first 0412h load bytes: the Pascal strings. The main code merely feeds those strings to the runtime in order.