From ec416d5631e28eaa45e3b54a795fc729f30c0327 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 27 Sep 2025 22:47:43 -0400 Subject: [PATCH] Document all local samples --- .../Models/SecuROM/AddD.cs | 6 +- .../Models/SecuROM/AddDEntry.cs | 68 ++++++++++++++++--- 2 files changed, 60 insertions(+), 14 deletions(-) diff --git a/SabreTools.Serialization/Models/SecuROM/AddD.cs b/SabreTools.Serialization/Models/SecuROM/AddD.cs index aafb1e7f..bfbeaa4a 100644 --- a/SabreTools.Serialization/Models/SecuROM/AddD.cs +++ b/SabreTools.Serialization/Models/SecuROM/AddD.cs @@ -16,12 +16,8 @@ public string? Signature { get; set; } /// s - /// Unknown (Entry count?) + /// Entry count /// - /// - /// 3 in EXPUNGED, 3.17.00.0017, 3.17.00.0019 - /// 3 in 4.47.00.0039, 4.84.00.0054, 4.84.69.0037, 4.84.76.7966, 4.84.76.7968, 4.85.07.0009 - /// public uint EntryCount { get; set; } /// diff --git a/SabreTools.Serialization/Models/SecuROM/AddDEntry.cs b/SabreTools.Serialization/Models/SecuROM/AddDEntry.cs index ca044148..cfea2587 100644 --- a/SabreTools.Serialization/Models/SecuROM/AddDEntry.cs +++ b/SabreTools.Serialization/Models/SecuROM/AddDEntry.cs @@ -28,43 +28,89 @@ namespace SabreTools.Data.Models.SecuROM /// /// Unknown (0x08) /// - /// 3149224 [3496, 48] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 33 93 40 00 (4231987) - 4.84.76.7966, 4.84.76.7968 + /// - 65 4D 40 00 (4214117) - Expunged version + /// - A3 92 40 00 (4231843) - 4.84.00.0054 + /// - A8 0D 30 00 (3149224) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// - C3 92 40 00 (4231875) - 4.84.69.0037 + /// - E3 B7 8C 77 (2005710819) - 4.85.04.0002, 4.85.07.0009 + /// public uint Unknown08h; /// /// Unknown (0x0C) /// - /// 3147176 [1448, 48] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 00 02 00 00 (512) - Expunged version + /// - 30 16 2F 00 (3085872) - 4.84.69.0037, 4.84.76.7966, 4.84.76.7968 + /// - 48 16 2F 00 (3085896) - 4.84.00.0054 + /// - A8 05 30 00 (3147176) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// - DC 0A 2F 00 (3082972) - 4.85.04.0002, 4.85.07.0009 + /// public uint Unknown0Ch; /// /// Unknown (0x10) /// - /// 3149224 [3496, 48] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 00 08 00 00 (2048) - Expunged version + /// - 58 07 2F 00 (3082072) - 4.85.04.0002, 4.85.07.0009 + /// - A8 0D 30 00 (3149224) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// - CD 00 00 00 (205) - 4.84.00.0054, 4.84.69.0037, 4.84.76.7966, 4.84.76.7968 + /// public uint Unknown10h; /// /// Unknown (0x14) /// - /// 1245044 [65396, 18] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 00 00 00 00 (0) - 4.85.04.0002, 4.85.07.0009 + /// - 00 08 00 00 (2048) - 4.84.00.0054, 4.84.69.0037, 4.84.76.7966, 4.84.76.7968 + /// - 02 00 00 00 (2) - Expunged version + /// - 74 FF 12 00 (1245044) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// public uint Unknown14h; /// /// Unknown (0x18) /// - /// 4214725 [20421, 64] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 00 00 00 00 (0) - 4.84.76.7966 + /// - 00 00 01 00 (65536) - 4.84.76.7968 + /// - 00 00 11 FD (4245749760) - 4.84.69.0037 + /// - 00 00 13 00 (1245184) - 4.84.00.0054 + /// - 40 28 41 00 (4270144) - Expunged version + /// - 76 00 00 00 (118) - 4.85.07.0009 + /// - 7C 00 00 00 (124) - 4.85.04.0002 + /// - C5 4F 40 00 (4214725) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// public uint Unknown18h; /// /// Unknown (0x1C) /// - /// 2 [2, 0] in the sample (all 3 entries) in 4.47.00.0039 + /// + /// Observed values: + /// - 00 00 00 00 (0) - 4.84.76.7966 + /// - 00 02 00 00 (512) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 + /// - 08 00 A8 08 (145227784) - 4.84.76.7968 + /// - 4D 96 C2 25 (633509453) - 4.84.69.0037 + /// - 78 13 13 00 (1250168) - 4.84.00.0054 + /// - 84 00 00 00 (132) - Expunged version + /// - F0 0A 2F 00 (3082992) - 4.85.04.0002, 4.85.07.0009 + /// public uint Unknown1Ch; /// /// Entry file name (null-terminated) /// - /// 12 bytes long in the sample (all 3 entries) in 4.47.00.0039 + /// 12 bytes long in all samples [MarshalAs(UnmanagedType.LPStr)] public string? FileName; @@ -72,8 +118,12 @@ namespace SabreTools.Data.Models.SecuROM /// Unknown (0x2C) /// /// - /// Offset based on consistent-sized filenames (12 bytes) in 4.47.00.0039 - /// 132 [132, 0] in the sample (all 3 entries) in 4.47.00.0039 + /// Observed values: + /// - 04 FE 64 00 (6618628) - Expunged version + /// - 20 00 00 00 (32) - 4.84.00.0054, 4.84.69.0037, 4.84.76.7966, 4.84.76.7968 + /// - 27 00 00 00 (39) - 4.85.04.0002 + /// - 2D 00 00 00 (45) - 4.85.07.0009 + /// - 84 00 00 00 (132) - 3.17.00.0017, 3.17.00.0019, 4.47.00.0039 /// public uint Unknown2Ch; }