Case study
ndec-re: reconstructing an MS-DOS encryption program
ndec-re investigates an old MS-DOS COM encryption program through debugger-assisted assembly analysis and implements its encryption behavior in Go. The write-up traces the program's copied code, password-derived gamma and hashes, self-modifying instruction choice, initialization byte and mixing rounds. The repository also contains the original COM file and Go tests.
- Targets
- Binary
- Category
- Independent reconstruction cases
- Relationship
- Independent reconstruction project
- Sources reviewed
- Stars
- 2
- Last commit
- 2024-03-19
- Language
- Go
GitHub data as of 2026-11-09
Requirements & limits
- Prerequisites: Go 1.21 is declared in go.mod for the reimplementation.
- Limits: The author leaves parts of the unpacking and exact algorithm marked for further work.
- License: No licence file in the repository.
Cite
BibTeX
@misc{ndec-re-case,
title = {{ndec-re: reconstructing an MS-DOS encryption program}},
howpublished = {\url{https://github.com/bereal/ndec-re}},
url = {https://github.com/bereal/ndec-re},
urldate = {2026-11-07},
note = {Awesome REA entry: \url{https://awesomerea.org/resources/ndec-re-case/}}
}Plain text
ndec-re: reconstructing an MS-DOS encryption program. https://github.com/bereal/ndec-re (accessed 2026-11-07). Awesome REA entry: https://awesomerea.org/resources/ndec-re-case/
Useful? Star Awesome REA on GitHub2.4k
About this entry
The description was reviewed against primary sources.
Primary sources
- README.md GitHub · bereal/ndec-re · Revision 12ae44a
More in Native binaries
- re-sysinternals-suite: rebuilding Sysinternals strings.exe · Case study
- ExCrypt: reconstructing Xbox 360 XeCrypt functions · Case study
- L1J-Encode-CLI: reconstructed Lineage 1 ServerData codec · Case study
- Wirenet Reverse Engineering: analysing a Linux trojan · Case study
- SNES Station: reconstructing the PS2 emulator executable · Case study
- RFL: decompiling the Wii Mii library · Case study
All 502 entries in Native binariesNative binaries case studies (64)