Analysis model: gpt-5.5 xhigh
Operation Wolf Cracktro by The FiRM - Technical Dissection
Operation Wolf Cracktro is a 15 September 1989 MS-DOS cracktro by The FiRM.
Demozoo credits Lord IronWolffe for graphics and Software Surgeon for code and
text. Scene.org preserves a compact ZIP with a renamed MZ executable,
OPWOLF.COM, a 29 KB screen payload named FIRM.SCR, and an empty
OPWOLF.FRM sidecar.
Release year: 1989
This one is more protected than the small FiRM loader shells. The visible cracktro is a single EGA-looking screen, but the technical center is a FiRMLOADER-2 packed MZ. The loader copies its own unpacker upward, far-returns into that copy, walks a backward compressed command stream with fill/copy commands, applies a compact relocation stream, rebuilds the original stack and far entry pointer, and transfers into a second-stage runtime that still contains encoded/protected state.
The public screenshot used here contains no board or phone rows. This writeup therefore keeps to the executable, the public visual, and the archive metadata.
Sources
- Demozoo production page: https://demozoo.org/productions/164322/
- Pouet production page: https://www.pouet.net/prod.php?which=68340
- Scene.org file page: https://files.scene.org/view/demos/compilations/lost_found_and_more/cracktro/operation_wolf_cracktro.zip
- Scene.org archive used here: https://files.scene.org/get/demos/compilations/lost_found_and_more/cracktro/operation_wolf_cracktro.zip
Visuals
| Time | Still | What is happening |
|---|---|---|
00:00.000 |
![]() |
Public Demozoo screenshot of the final EGA-style cracktro screen. The picture is backed by the separate FIRM.SCR payload rather than by a plain text-mode greeting string. |
Generated loader and helper map:

Archive
Scene.org stores a 24,553-byte ZIP:
5a893c2f5a160187e19b587eae63d3a94cdb9baedabed630b77a94203826bf42 operation_wolf_cracktro.zip
ZIP contents:
FIRM.SCR 29070 bytes 1989-09-06 19:38
OPWOLF.COM 4065 bytes 1989-09-15 15:15
OPWOLF.FRM 0 bytes 2023-05-03 05:49
Extracted hashes:
8530fd4ee078c486c2cb04646c8e5ddf57e479aeca0c10a0468772e257745dc9 OPWOLF.COM
e1d177618a475f3916afaf2611e7fa2949363141550900dda06281c7d40cfc14 FIRM.SCR
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 OPWOLF.FRM
OPWOLF.FRM is empty in this archive. The executable does not begin as a flat
COM program despite its extension:
OPWOLF.COM: MS-DOS executable, MZ for MS-DOS
That extension trick is the first loader detail. DOS normally treats .COM as a
raw 0100h image, but the preserved file has a full MZ header. Tools that assume
the filename extension will disassemble the wrong address space.
MZ Header
The original MZ header is small and relocation-free:
e_cblp = 481
e_cp = 8
e_crlc = 0
e_cparhdr = 2 ; 32-byte header
e_minalloc = 101
e_maxalloc = 65535
e_ss:e_sp = 015A:0080
e_cs:e_ip = 00E7:0012
e_lfarlc = 001E
file size = 4065 bytes by header calculation
load image = 4033 bytes
entry load offset = 0E82h
The first bytes of the load image are not active code. They are the loader banner:
" FiRMLOADER-2 was written by The Software Surgeons"
The active entry is reached through the MZ CS:IP pair. In load-image offsets,
the entry begins at 0E82h. The data words immediately before it, at 0E70h,
are the packed program's return vector and unpacker parameters:
0E70: 0705 ; restored IP
0E72: 0010 ; restored CS, patched by adding load base
0E74: 0000 ; load base segment, filled at runtime
0E76: 0151 ; number of bytes in the copied unpacker stub
0E78: 0100 ; restored SP
0E7A: 0000 ; restored SS delta
0E7C: 0144 ; copied-stub segment delta
0E7E: 0001 ; segment delta used by the unpacker
That little table is why the packer can be generic. The decompressor does not
need to know a fixed DOS load address. It records the actual load base, patches
the stored far pointer, and jumps to load_base+0010h:0705h after the unpack.
Copy-Up Stub
The entry at 0E82h is a small self-moving unpacker. It first finds the load
base from the PSP segment that DOS placed in ES, switches DS to the packed
entry segment, stores the base, then copies the unpacker to a higher segment:
0E82 mov ax,es
0E84 add ax,0010h ; AX = MZ load base
0E87 push cs
0E88 pop ds ; DS = packed entry segment
0E89 mov [0004],ax ; save load base in the table at 0E74
0E8C add ax,[000C] ; add 0144h
0E90 mov es,ax ; ES = high work segment
0E92 mov cx,[0006] ; CX = 0151h
0E96 mov di,cx
0E98 dec di
0E99 mov si,di
0E9B std
0E9C rep movsb ; copy bytes 0150h..0000h upward
0E9E mov dx,[000E] ; DX = 0001h
0EA2 push ax
0EA3 mov ax,0038h
0EA6 push ax
0EA7 retf ; continue in copied stub at high_segment:0038
STD is important. The copy starts at offset 0150h and walks backward to
offset 0000h. That allows the copied region to overlap awkwardly with the
source region without destroying bytes that have not yet been read.
The inner copy is the hardware REP MOVSB loop:
while CX != 0:
ES:DI = DS:SI
SI -= 1
DI -= 1
CX -= 1
The RETF then enters the copied stub at offset 0038h, which corresponds to
original load offset 0EA8h.
Backward Packed Stream
The copied decompressor keeps the direction flag set. It works backward through the packed data and writes the restored image backward into the destination. That means each command record is read from high addresses toward low addresses.
The command decoder starts by deriving source and destination segments from the
copied-stub segment and the one-paragraph delta in DX:
0EA8 mov bx,es
0EAA mov ax,ds
0EAC sub ax,dx
0EAE mov ds,ax
0EB0 mov es,ax
0EB2 mov di,000Fh
0EB5 mov cx,0010h
0EB8 mov al,0FFh
0EBA repz scasb
0EBC inc di
0EBD mov si,di
0EBF mov ax,bx
0EC1 sub ax,dx
0EC3 mov es,ax
0EC5 mov di,000Fh
Because DF=1, the SCASB sequence scans downward. It uses a short FFh
sentinel area near offset 000Fh to find the initial packed-stream pointer, then
resets ES:DI to the initial destination edge.
Every command iteration begins with segment normalization. The unpacker is doing
16-bit offset arithmetic while walking downward. If SI or DI would cross
below zero, it subtracts whole paragraphs from the segment and forces the offset
back into the FFF0h..FFFFh range:
0EC8 mov cl,04h
; normalize source pointer
0ECA mov ax,si
0ECC not ax
0ECE shr ax,cl
0ED0 je 0EDBh
0ED2 mov dx,ds
0ED4 sub dx,ax
0ED6 mov ds,dx
0ED8 or si,0FFF0h
; normalize destination pointer
0EDB mov ax,di
0EDD not ax
0EDF shr ax,cl
0EE1 je 0EECh
0EE3 mov dx,es
0EE5 sub dx,ax
0EE7 mov es,dx
0EE9 or di,0FFF0h
The expression (~offset) >> 4 is a compact way to detect how many paragraphs
the descending pointer must borrow. Example: if a previous copy left DI near
0002h and the next run length wants to continue downward, the next normalized
destination window becomes ES-1000h-ish:FFFx, not a wrapped write into the
wrong physical address.
The command fetch itself is tiny:
0EEC lodsb ; AL = command byte, SI--
0EED mov dl,al
0EEF dec si
0EF0 lodsw ; AX = count word read under DF, SI -= 2
0EF1 mov cx,ax
0EF3 inc si
0EF4 mov al,dl
0EF6 and al,0FEh
Under DF=1, the record layout, read from high to low, is:
command byte
count high/low word directly below it
optional fill byte, or literal bytes directly below that
The low bit of the command is not part of the command family. It marks the final record. The high seven bits choose the operation:
0EF8 cmp al,0B0h
0EFA jne maybe_copy
0EFC lodsb ; fill byte
0EFD rep stosb ; write CX copies downward
0EFF jmp test_end
maybe_copy:
0F02 cmp al,0B2h
0F04 jne corrupt_path
0F06 rep movsb ; copy CX literal bytes downward
test_end:
0F08 mov al,dl
0F0A test al,01h
0F0C je 0EC8h ; next command
So the actual decompression language is:
while true:
normalize DS:SI and ES:DI for descending 64 KiB crossings
cmd = byte_at(DS:SI)
SI -= 1
SI -= 1
count = word_at(DS:SI)
SI -= 2
SI += 1
op = cmd & FEh
if op == B0h:
value = byte_at(DS:SI)
SI -= 1
repeat count times:
byte_at(ES:DI) = value
DI -= 1
elif op == B2h:
repeat count times:
byte_at(ES:DI) = byte_at(DS:SI)
SI -= 1
DI -= 1
else:
jump to a bogus/corruption path
if cmd & 1:
break
B0h and B1h are therefore run-fill records. B2h and B3h are literal-copy
records. B1h and B3h also terminate the packed stream.
There is no bit-buffer, Huffman tree, or LZ match distance here. This is a small executable-image packer: it is good at collapsing long zero or repeated regions, and it preserves literal blocks when needed. The power comes from the backward direction and the relocation repair after the stream, not from a complex compression model.
Relocation Repair Stream
When the packed stream terminates, the copied stub switches DS back to itself
and reads a relocation stream from offset 012Dh:
0F0E mov si,012Dh
0F11 push cs
0F12 pop ds
0F13 mov bx,[0004] ; BX = load base
0F17 cld
0F18 xor dx,dx
The relocation loop is page-oriented. DX steps through 0000h, 1000h,
2000h, and so on up to F000h. For each page, the stream begins with a count:
0F1A lodsw
0F1B mov cx,ax
0F1D jcxz next_page
0F1F mov ax,dx
0F21 add ax,bx
0F23 mov es,ax
fix_one:
0F25 lodsw
0F26 mov di,ax
0F28 cmp di,0FFFFh
0F2B je cross_paragraph
0F2D add es:[di],bx
0F30 loop fix_one
Each relocation entry is a 16-bit offset within the current 64 KiB page. The
word at that address is a segment value. Adding BX turns a zero-based restored
segment into the actual DOS load segment.
The special FFFFh entry handles a word that begins at the final byte of a
segment window. A normal ES:[FFFF] word read crosses a segment boundary. The
loader remaps the same physical address as ES+1:FFEF:
cross_paragraph:
0F3E mov ax,es
0F40 inc ax
0F41 mov es,ax
0F43 sub di,0010h
0F46 add es:[di],bx
0F49 dec ax
0F4A mov es,ax
0F4C jmp 0F30h
The page step is:
next_page:
0F32 cmp dx,0F000h
0F36 je final_jump_setup
0F38 add dx,1000h
0F3C jmp 0F1Ah
That is a compact relocation format. It avoids storing a full MZ relocation table in the packed header while still allowing the restored code to contain normal segment constants.
Final Jump Setup
The final stage rebuilds the saved SS:SP, patches the restored CS word, and
jumps through the far pointer at copied-stub offset zero:
0F4E mov ax,bx ; AX = load base
0F50 mov di,[0008] ; DI = restored SP = 0100h
0F54 mov si,[000A] ; SI = restored SS delta = 0000h
0F58 add si,ax ; SI = load base
0F5A add [0002],ax ; far pointer CS += load base
0F5E sub ax,0010h
0F61 mov ds,ax ; DS = PSP-ish segment
0F63 mov es,ax
0F65 mov bx,0000h
0F68 cli
0F69 mov ss,si
0F6B mov sp,di
0F6D sti
0F6E jmp far cs:[bx] ; pointer at [0000] => load_base+0010h:0705h
The first two words of the copied stub began as:
[0000] = 0705h
[0002] = 0010h
After add [0002], load_base, the final far jump lands at:
CS:IP = load_base + 0010h : 0705h
This is the restored program's protected entry, not the MZ packer entry.
UNP-Restored Helper Image
For analysis, I also ran UNP against a copy renamed to OPWOLF.EXE. That
produced a 5,232-byte MZ:
c37aec5274c3a9d43db90cb8f3696c588e89ff345a70888f180db69bd2c36b51 UNP OPWOLF.EXE
Its header looks like this:
e_cblp = 112
e_cp = 11
e_crlc = 2
e_cparhdr = 3
e_ss:e_sp = 0000:0100
e_cs:e_ip = 0010:0705
load image = 5184 bytes
This restored file is useful, but it is not a clean source image. Several state
words remain encoded or runtime-patched, and one helper still contains an
INT 3 byte where a naive reading would expect a DOS INT 21h call. So the
following sections describe identifiable code islands and loops, not a complete
verified startup trace.
The apparent restored entry begins:
0805 pushf
0806 pop word ptr cs:[01F3]
080B mov word ptr cs:[01F5],sp
080F call 082Eh
0812 call 0E90h
0815 call 0E66h
0818 jb 084Fh
081A push ax
081B push bp
081C mov bp,sp
081E mov ax,0718h
0821 xchg ax,[bp+4]
0824 xor ax,ss:[082Ch]
0829 xchg ax,[bp+2]
082C pop bp
082D ret
The 082Eh subroutine changes the stack segment to zero, puts SP at 0100h,
loads DS and ES from a protected state word, and jumps back through the
return address it popped:
082E pop bx
082F cli
0830 mov sp,0000h
0833 mov ss,sp
0835 mov sp,0100h
0838 sti
0839 mov ds,cs:[01E1h]
083E mov es,[01E1h]
0842 jmp bx
That is not normal application startup. It is still protector-shaped code:
saved flags, saved stack pointer, a stack-segment switch, and a later return
frame mutation with xchg instructions. The important practical reading is
that the packer has handed control to another protected layer.
State-Save Helper
One helper island at 0E90h has the shape of an environment snapshot routine:
0E90 mov ah,0Fh
0E92 int 10h
0E94 mov [01ECh],al ; current video mode
0E97 mov ah,03h
0E99 int 10h
0E9B mov [01EDh],cx ; cursor shape/position state
0E9F mov ax,3300h
0EA2 int 3 ; unresolved in the restored bytes
0EA3 mov [01EFh],dl
0EA7 in al,61h
0EA9 mov [01F0h],al
0EAC in al,21h
0EAE mov [01F1h],al
0EB1 in al,0A1h
0EB3 mov [01F2h],al
The AX=3300h plus DL store is exactly the shape of DOS's Ctrl-Break flag
query, but the byte at 0EA2h in the restored helper image is CCh
(INT 3), not CD 21h. I am therefore not treating it as a verified DOS call.
It is either still patched at runtime, deliberately breakpoint-like, or a limit
of the UNP restoration.
The same helper then copies low-memory state into a local buffer:
0EB6 xor si,si
0EB8 mov ds,si
0EBA mov di,02CFh
0EBD mov cx,0200h
0EC0 rep movsw ; copy 1024 bytes from 0000:0000
0EC2 mov si,0410h
0EC5 mov cl,07h
0EC7 rep movsb ; BIOS data area slice
0EC9 mov si,0417h
0ECC movsw ; keyboard flag area
0ECD mov si,04F0h
0ED0 mov cl,08h
0ED2 rep movsw
0ED4 mov si,050Eh
0ED7 mov cl,09h
0ED9 rep movsw
0EDB lds si,[0078h] ; IVT entry for INT 1Eh points to diskette table
0EDF mov cl,0Bh
0EE1 rep movsb
The first REP MOVSW copies the interrupt vector table area. The later copies
sample BIOS data area bytes and the INT 1Eh diskette parameter table. This is
typical of a loader that wants to restore the machine cleanly after replacing
vectors, changing video mode, or touching interrupt masks.
Direct IVT Writer
The helper at 0E66h installs interrupt vectors by writing the IVT directly,
not by calling DOS AH=25h:
0E66 mov al,23h
0E68 mov dx,cs
0E6A mov cx,0744h
0E6D call 0E7Ah ; write INT 23h vector
0E70 mov al,03h
0E72 mov dx,[0355h]
0E76 mov cx,[0353h]
The shared vector writer is:
0E7A push ds
0E7B xor bx,bx
0E7D mov ds,bx ; DS = 0000h, IVT segment
0E7F xor ah,ah
0E81 mov bx,ax
0E83 shl bx,1
0E85 shl bx,1 ; BX = interrupt_number * 4
0E87 cli
0E88 mov [bx],cx ; vector offset
0E8A mov [bx+2],dx ; vector segment
0E8D sti
0E8E pop ds
0E8F ret
This is the inner loop reduced to four operations:
slot = interrupt_number * 4
disable interrupts
IVT[slot + 0] = offset
IVT[slot + 2] = segment
enable interrupts
It first points INT 23h at CS:0744h, then writes INT 03h from saved words.
In the static UNP helper image, the bytes at 0744h and the saved-vector words
are still zero/encoded, so the handler body is outside the verified static
surface.
Display Capability Probe
The helper at 0EFDh probes the installed display adapter:
0EFD mov ax,1A00h
0F00 mov bl,00h
0F02 int 10h
0F04 mov al,02h
0F06 cmp bl,07h
0F09 je done
0F0B cmp bl,08h
0F0E je done
0F10 mov ax,1200h
0F13 mov bl,10h
0F15 xor cl,cl
0F17 int 10h
0F19 cmp bl,10h
0F1C je fallback_check
0F1E mov al,02h
0F20 and cl,0Fh
0F23 cmp cl,09h
0F26 je done
AX=1A00h is the VGA display-combination call. AX=1200h, BL=10h is an
EGA/VGA information call. The return value is compressed into a small class code
in AL, apparently 0, 1, or 2.
The fallback reads a byte from a protected segment and tests its high nibble:
0F28 mov al,01h
0F2A mov es,[01E3h]
0F2E mov ah,es:[0003h]
0F33 mov es,[01E1h]
0F37 and ah,0F0h
0F3A cmp ah,0D0h
0F3D je done
0F3F mov al,00h
0F41 cbw
0F42 ret
Because the segment variables are still protected in the static helper image, the exact class meaning is not fully pinned down. The visible output is a 640-pixel-wide EGA-style screen, and the screenshot dimensions are consistent with EGA/VGA 640-wide graphics, but the mode-setting renderer is not fully decoded here.
Timing And CPU Probe
Another helper reads a changing byte/word at ES:000Ch four times and converts
the loop result into a timing constant:
0F43 mov es,[01E3h]
0F47 mov bl,04h
0F49 xor dx,dx
0F4B xor cx,cx
0F4D mov ah,es:[000Ch]
wait_change:
0F52 mov al,es:[000Ch]
0F56 cmp al,ah
0F58 je wait_change
same_window:
0F5A mov al,es:[000Ch]
0F5E cmp al,es:[000Ch]
0F63 jne short changed
0F65 loop same_window
0F67 inc dx
changed:
0F68 dec bl
0F6A jne same_window
Then it folds DX:CX down with rotates and stores the result at [01E7h]:
0F70 mov ax,cx
0F72 neg ax
0F74 shr dx,1
0F76 rcr ax,1
0F78 shr dx,1
0F7A rcr ax,1
0F7C shr ax,1
0F7E mov [01E7h],ax
The CPU probe at 0F89h is a classic FLAGS/shift-behavior classifier:
0F89 pushf
0F8A mov ax,0000h
0F8D push ax
0F8E popf
0F8F pushf
0F90 pop ax
0F91 and ax,0F000h
0F94 cmp ax,0F000h
0F97 je old_cpu_path
0F99 mov ax,7000h
0F9C pushf
0F9D popf
0F9E pushf
0F9F pop ax
0FA0 and ax,7000h
0FA3 mov ax,011Eh
0FA6 je done
0FA8 mov ax,0182h
0FAB jmp done
The old-CPU path uses a shift count of 21h:
0FAD push cx
0FAE mov ax,0FFFFh
0FB1 mov cl,21h
0FB3 shl ax,cl
0FB5 pop cx
0FB6 mov ax,00BCh
0FB9 jne done
0FBB mov al,40h
0FBD mul al
0FBF mov al,14h
0FC1 je done
0FC3 mov ax,0058h
done:
0FC6 popf
0FC7 ret
On 8086-class CPUs, shift counts are not masked the same way as on later x86
processors. On 286/386-class machines, the FLAGS high bits also behave
differently. This routine compresses those hardware differences into a small
timing/class code stored at [01E9h].
64-Byte XOR Decoder Island
The cleanest later inner loop is the decoder at 0FDEh. Its caller embeds two
words immediately after the CALL: a destination offset and a byte count. The
decoder pops the return address into SI, reads those two words, then decodes
in place:
0FDE pop si
0FDF lodsw
0FE0 mov di,ax ; destination/source offset
0FE2 lodsw
0FE3 push si ; save return continuation after inline words
0FE4 push bp
0FE5 xor bp,bp
0FE7 mov si,di
0FE9 mov cx,ax ; byte count
loop:
0FEB lodsb ; AL = encoded byte
0FEC xor ax,[bp+00h] ; 64-byte rolling key/table window
0FEF xor ax,cx ; include countdown
0FF1 xor al,ah
0FF3 stosb ; decoded byte to ES:DI
0FF4 inc bp
0FF5 and bp,003Fh ; BP = (BP + 1) & 63
0FF8 loop loop
0FFA pop bp
0FFB ret
In pseudocode:
return_stream = pop()
di = word_at(return_stream)
count = word_at(return_stream + 2)
push(return_stream + 4)
bp = 0
si = di
cx = count
while cx != 0:
al = byte_at(si)
si += 1
ax = (ah:al)
ax ^= word_at(bp)
ax ^= cx
al ^= ah
byte_at(di) = al
di += 1
bp = (bp + 1) & 0x3F
cx -= 1
The countdown-dependent XOR means the same encoded byte decodes differently at
different positions. The BP & 3Fh mask limits the key schedule to a 64-byte
window. This is likely one of the routines that makes the UNP output still look
partly random: the static unpacked MZ is not the final decoded runtime.
FIRM.SCR And Visible Screen
FIRM.SCR is 29,070 bytes. Its first word is 0280h, which lines up with a
640-pixel-wide frame, but the following words do not form a simple raw
640x350x4-plane header:
0000: 0280
0002: 0110
0004: 1400
0006: 0403
0008: 2705
000A: 3807
000C: 3A39
000E: 3C3B
A raw 640x350x16 EGA screen would be much larger than 29 KB:
640 * 350 * 4 bitplanes / 8 = 112000 bytes
So the sidecar is clearly encoded or compressed. The public screenshot is a
640x350 indexed PNG, and the production comments describe it as EGA-looking,
which matches the sidecar's likely role. I did not fully recover the
FIRM.SCR renderer in this pass. The reliable boundary is:
OPWOLF.COM:
verified FiRMLOADER-2 unpacker
verified relocation repair
identified protected helper islands
FIRM.SCR:
encoded graphics payload for the public screen
not decoded here into a raw planar frame
What Each Part Does
At a high level:
1. DOS loads OPWOLF.COM as an MZ executable despite the .COM extension.
2. The MZ entry reaches FiRMLOADER-2 at load offset 0E82h.
3. FiRMLOADER-2 copies its 0151h-byte unpacker upward with STD/REP MOVSB.
4. The copied stub far-returns into its own high-segment copy.
5. The copied stub finds the packed stream sentinel and walks commands backward.
6. B0/B1 command records fill repeated bytes downward.
7. B2/B3 command records copy literal bytes downward.
8. The low command bit marks the final packed record.
9. The relocation stream adds the actual load base to restored segment words.
10. The loader rebuilds SS:SP and jumps to load_base+0010h:0705h.
11. The restored runtime enters another protected layer.
12. Helper islands save machine state, patch IVT entries, probe display/CPU,
calibrate timing, and decode more data with a 64-byte XOR table.
13. The visible EGA-style screen is driven from the encoded FIRM.SCR sidecar.
The important conclusion is that the fancy part is not a visible animation loop. It is a packed-loader/protection pipeline around a polished static screen. For a 1989 PC cracktro, that is already a substantial amount of machine-specific engineering: MZ-in-COM naming, custom unpacking, custom relocation, direct IVT writes, BIOS video probing, CPU timing classification, and a separate encoded graphics payload.
