A hand-written C++ reimplementation of XexTool v6.3's own functions, produced for study and preservation. Each function is a faithful translation of the original's logic, annotated with its original function address.
The source lives in src/. It covers XexTool's own code — XEX parsing and
optional-header handling, image load and build (uncompressed, basic and LZX), the
key material and the XeCrypt digest/signature/big-number helpers, the LZX encoder
and decoder, PE section handling, the -u "update:" path fix and the -s special
patches, resource/XDBF output for -x, the Base64 encoder, and main/getopt.
Standard C runtime and OpenSSL library routines are not reimplemented; the code
calls them as-is (for example <openssl/bn.h>). This is reference source,
syntax-checked with clang, not a turnkey build.
Credit to xorloser, the original author of XexTool (v6.3, 2006–2011).
This project is intended for educational, research, preservation, and development purposes. Users are responsible for complying with applicable laws and respecting intellectual property rights.
If there is a problem, contact us at gamepreservationhq@gmail.com.
Released under the GNU General Public License v3.0. See LICENSE.