SP7001 Activation & Key Generator
SP7001 PLUG-iN activation — reverse engineering & key generator
The SP7001 “SD PLUG-iN” — KEY SOFT SERVICE’s paid PLUG-iN base module for the KN7000 (its own SD file system and the base for further plug-ins) — is gated behind a challenge/response licence check. The instrument shows a per-unit serial (the “Software Code”); the owner typed a 16-character password (the “Liberation Key”); the firmware accepted it only if it matched a value computed from the SD card’s identity (its CID; see below). KEY SOFT SERVICE has ceased trading and published its own key generator, so documenting the scheme here is uncontroversial preservation work.
This page records the algorithm we reverse-engineered from the firmware’s verification side, the real serial/password pair for the emulator, an embedded key generator you can run in the browser, and how our result lines up with the vendor’s original tool.
Everything here is ordinary preservation reverse engineering of firmware running in MAME, so that owners of the defunct product can continue to use software they paid for. The activation service is gone; no live system is affected.
The activation gate
With the SP7001 program/table loaded (kn7000 -bios sp7001), inserting a
non-master SD card drops the instrument into the licence screen. In the emulator
the serial is deterministic: every unit reports gpcm_uwp5_namw_lud5. A wrong
entry shows “Falsches Passwort” (the string lives in the table ROM at
0x483f782c).
At the firmware level the check is a small MN10300 call graph in the SP7001 table ROM:
| Routine | Address | Name in the disassembly | Role |
|---|---|---|---|
| OK-button handler | 0x483e9e1c |
KssActivationOkHandler (a label) |
runs the check, then an “apply” that re-validates |
| check dispatcher | 0x483ee8e9 |
KssPasswordCheck |
builds the card-derived target (calls build_param1, 0x483eef21), then calls the comparator |
| activation apply | 0x483ee921 |
KssActivationApply |
re-validates through the comparator and records the activation |
| comparator | 0x483ef0af |
KssKeyCompare |
transforms the typed key and compares it to the target |
| per-char transform | 0x483ef234 |
KssKeyCharTransform |
one reversible base-35 substitution step |
| transform driver | 0x483ef1ad |
KssKeyTransform |
applies the transform across the 16 characters |
| keystream table | 0x483f8b74 |
KssKeystreamRecords |
27 static 20-char records, one per first letter plus one more for pass 2 |
These routines are part of the SP7001’s resident plug-in, the XAPR block at
0x483E8000–0x483FB59F in table flash, which is now disassembled byte-exactly; the
OK-button address is a point inside a larger dispatcher, so the disassembly keeps it as a
label. The helpers named below are KssBuildParam1 (build_param1), KssPad16 and
KssHash275. See SP7001 Firmware.
Both the password check and the activation apply run the comparator, and both must pass — forcing only one of them is not enough.
The licence check is reached from user actions; it does not gate loading the base extension.
At startup the firmware loads BASEEXT.XAP (via KssPluginLoad) and runs it before it reads the
activation status, so the plug-in’s code runs whether or not the unit was ever activated — the
password releases the paid features, not the load (SP7001 Firmware).
How the activation algorithm works
The activation password is 16 characters over a base-35 alphabet — the digits
1-9 and the letters a-z (there is no 0). It is entered and displayed as
four groups of four, XXXX-XXXX-XXXX-XXXX; the comparator first strips the dashes
to a plain 16-character buffer.
Each character maps to a number with a fixed pair of tables:
- dec (char → value):
1-9become0-8;a-zbecome9-34(i.e. subtract0x58from the ASCII code). - enc (value → char):
0-8become1-9;9-31becomea-w.
The core routine at 0x483ef234 transforms one character at position i using
one key character k:
out_i = enc( ( (dec(in_i) - i) & 0x1f ) XOR dec(k) )
This is position-independent and fully reversible: each output depends only on
its own input, its index i, and its key — there is no running feedback between
characters. Character 0 is copied through unchanged; characters 1-15 are
transformed. (A character whose dec value exceeds 31 — x, y, z — is
rejected.)
The key stream is a static ROM table: 27 records of 20 base-35 characters
each, starting at 0x483f8b74 with a stride of 0x15 bytes. One record is
selected per transform pass by the password’s first character
(c0 = firstchar − 'a'), and the key for position i is simply the i-th
character of that record. The driver (0x483ef1ad) applies the transform
twice: pass 1 uses record c0, pass 2 uses record c0 + 1, so a first
letter z reaches the 27th. (The 27 records tile one master keystream — each
record’s last four characters equal the previous record’s first four.)
The comparator at 0x483ef0af does not check the whole 16-character result.
It verifies only an 11-character window, positions 1 through 11:
- positions 1-3 (field 3) must equal a 3-character constant — for the SP7001
this is the string
mr7, stored in ROM at0x483f8900; - positions 4-11 (field 8) must equal an 8-character value derived from the
SD card’s identity (see below) and handed in by the check dispatcher at
0x483ee8e9.
Position 0 and positions 12-15 are never checked. Because the substitution is
reversible and its key stream is a fixed ROM constant, recovering a valid
password is just inverting the transform of any 16-character string whose window
[1:12] equals the required field3 + field8 target: run the two passes
backwards (undo pass 2, then pass 1) to obtain a password the device accepts.
Where field8 comes from — the SD card’s identity
field3 is the constant mr7 (SP7001’s plug-in type code; the ROM also holds
bwa, 8he, nn2 for sibling plug-ins). field8 is the per-unit part, and it is
not derived from the on-screen “serial” at all — it is a hash of the SD
card’s CID (its identity register). The dispatcher at 0x483ee8e9 builds it by
calling build_param1 (0x483eef21), a routine that also runs at boot:
cid16 = method_0x340() # the 16-byte card-ID buffer the firmware reads
cid16 = right-pad to 16 with spaces # 0x483ecc6d
field8 = hash275(cid16) # 0x483ef275, 16 bytes → 8 base-35 chars
hash275 is fully decoded (two 32-bit accumulators — a shift-xor hash and an
ELF-style hash — emitted 5 bits at a time: 6 characters from the first, 2 from the
second; modelled in param1_hash.py in the project’s unpublished research
notes). A runtime trace of method_0x340 settled what feeds it: the 16-byte buffer
is the card’s CID rendered as MMDMCARD (the product-name field) followed by the
CID bytes 10 12 34 56 78 01 59 — and 0x12345678 is exactly the product serial
number MAME’s spi_sdcard device writes. So the activation is bound to the SD
card, not the instrument, and the whole chain is now modelled end to end:
SD card CID → hash275 → field8 → (with field3 "mr7") invert the transform → password
For MAME’s emulated card the CID is fixed, so hash275 gives hmd2r6w2 and the
key is the same for everyone. (A real, different SD card has a different CID and so a
different key — the generator below computes it.)
The emulator’s serial → password
Putting it together for the emulator’s fixed serial:
| value | |
|---|---|
| Serial (Software Code) | gpcm_uwp5_namw_lud5 |
| field 3 (constant) | mr7 |
field 8 (hash275 of the emulated card’s CID) |
hmd2r6w2 |
| Recovered password | a19a-1s1d-jrdc-n1b2 |
(The SP7001’s SYSTEM-INFO screen that shows this serial also reports the plug-in’s
own version — SOFTWARE V1.0 Aug 23 2003 — now recorded in the sp7001 MAME BIOS
description; the date string lives in the table ROM at 0x483f87c8.)
This was confirmed in MAME: injected into the comparator, this key makes both
the password check and the activation apply return “accepted” (the transform of
a19a1s1djrdcn1b2 is amr7hmd2r6w21111, whose [1:12] is exactly mr7hmd2r6w2).
Because positions 0 and 12-15 are unchecked, other keys are valid too — the
generator below picks one.
Key generator
SP7001 key generator. Runs entirely in your browser (no data leaves the page). For the MAME emulator the SD card's identity is always the same, so the key is fixed; the advanced box computes the key from any SD card's CID.
Advanced — generate for any SD card
The key is bound to the SD card's CID (its 16-byte identity buffer). Enter the card's CID bytes as hex — the default is MAME's emulated card (MMDMCARD + PSN 0x12345678). hash275 turns it into field 8; field 3 is the constant mr7; first char and tail are free (unchecked).
Or, if you already have the 8-char field 8 target (e.g. captured at the comparator):
Prefer not to type a 16-character key? The project’s unpublished research notes
hold an autoboot Lua script, unlock_plugin.lua, that patches the comparator in
the running emulator so it accepts any password — a one-click unlock for a
defunct-service DRM. The key generator above exists because it recovers a
genuine password (proving the algorithm), not just a bypass.
Where the activation is remembered
Once a correct password is accepted, the KN7000 does not ask again on later boots
with the same SD card. The activation is remembered on the SD card, not in the
instrument — the MAME kn7000 driver has no non-volatile storage at all, so there
is nowhere instrument-side for it to live.
The record is the file C:\TECHNICS\DATA\CTDV10KL.CDF on the card. On a card
that has been through the setup wizard but not yet activated, this file exists but
is empty (0 bytes). After a successful activation it holds 20 bytes: a
single 0x00 header byte followed by the accepted password, in its dashed ASCII
form:
00 61 31 39 61 2d 31 73 31 64 2d 6a 72 64 63 2d 6e 31 62 32
a 1 9 a - 1 s 1 d - j r d c - n 1 b 2
So the firmware simply caches the typed password on the card. On boot it reads
CTDV10KL.CDF and re-validates the cached password through the same comparator —
re-deriving field8 from the card’s CID (hash275) — so a stored, still-valid
password means the licence screen is skipped. (This is why build_param1 runs at
boot: it is the boot-time re-check.)
Three consequences worth noting:
- The password is stored in clear, so it can be read straight off an activated
card’s
CTDV10KL.CDF. - A card can be pre-activated by writing
0x00+ the correct password into that file — no on-screen entry needed. - The record is card-bound: copying
CTDV10KL.CDFto a different SD card fails the boot re-check, because that card’s CID gives a different field8.
Comparison with the original KEY SOFT SERVICE generator
The activation scheme for the SP7001 was not written by Technics. It was supplied
by KEY SOFT SERVICE, a Swiss vendor that licensed several KN7000-era products
through a single, reusable challenge/response mechanism. After the company ceased
trading it published its own generator on its legacy web page
(keysoftservice.ch/keygenerator.htm, © 1997/2002), describing it as the tool that
had protected “unsere Software (HD-TechManager und andere)” against casual
copying.
Their tool. The published artifact is a Windows executable, KeyGenerator.exe
(“keine Installation”), not JavaScript — the web page is only a download and
information page. An operator ran it with three inputs: the master password
soerenberg, a LiberationKeyLength of 16, and the unit’s Software Code
(the challenge printed by the instrument). It emitted a Liberation Key to be
typed back into the software. It is a generic licensing generator, used across
multiple KEY SOFT SERVICE products with the SP7001 as one case.
Our artifact. Ours is an independent JavaScript reimplementation, derived by reverse-engineering the KN7000 firmware’s verification side rather than disassembling their binary. It models the confirmed per-character transform, the 27-record keystream recovered from the table ROM, and the comparator’s field checks, then inverts them to emit a password for a given unit.
Corroboration. The two efforts meet from opposite directions. Their documented
key length of 16 matches our recovered key exactly (a 16-character base-35
value, shown as four groups of four). Their tool is the forward/generate side; our
RE is the verify/invert side of the same scheme — strong mutual corroboration
that we have modelled the real mechanism. The master password soerenberg is not
present anywhere in the KN7000 firmware: the checker stores no secret, it only
recomputes the target from the SD card’s CID and compares, so soerenberg is
internal to the vendor’s generator.
How complete it is. The scheme is now modelled end to end: the SD card’s CID →
hash275 → field8 → invert the transform → password, all reproduced in the
generator above (and confirmed against the firmware for the emulated card). The one
thing we did not need, and did not fully decode, is the cosmetic encoding behind
the human-readable “serial” the instrument prints on screen — the firmware hashes
the raw CID, not that string, so it is not on the key-derivation path. Their
KeyGenerator.exe could be disassembled to confirm the forward derivation from
their side, which we have not done.
Provenance & reproducibility
- Full write-up, the disassembly, the transform model and inverter, the live-trace
capture scripts and the
field8hash model: the project’s unpublished research notes,kn7000-sp7001-activation/(ALGORITHM.md,invert.py,trace_activation.lua,inject_verify.lua,param1_hash.py). - The key generator on this page is a line-for-line port of
invert.py, validated to reproduce the live comparator trace and to emit the confirmed keya19a-1s1d-jrdc-n1b2for the emulator serial. - Vendor context: the SD PLUG-iN (SP7001) page
and KEY SOFT SERVICE’s own product/Q&A and
keygenerator.htmpages (© 2002).