mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-25 08:15:05 +00:00
Add SecuROM AddD overlay data models
This commit is contained in:
78
BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs
Normal file
78
BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace BurnOutSharp.Models.PortableExecutable
|
||||
{
|
||||
/// <summary>
|
||||
/// Overlay data associated with SecuROM executables
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// All information in this file has been researched in a clean room
|
||||
/// environment by using sample from legally obtained software that
|
||||
/// is protected by SecuROM.
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class SecuROMAddDEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// Physical offset of the embedded file
|
||||
/// </summary>
|
||||
public uint PhysicalOffset;
|
||||
|
||||
/// <summary>
|
||||
/// Length of the embedded file
|
||||
/// </summary>
|
||||
/// <remarks>The last entry seems to be 4 bytes short</remarks>
|
||||
public uint Length;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x08)
|
||||
/// </summary>
|
||||
/// <remarks>3149224 [3496, 48] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown08h;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x0C)
|
||||
/// </summary>
|
||||
/// <remarks>3147176 [1448, 48] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown0Ch;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x10)
|
||||
/// </summary>
|
||||
/// <remarks>3149224 [3496, 48] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown10h;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x14)
|
||||
/// </summary>
|
||||
/// <remarks>1245044 [65396, 18] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown14h;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x18)
|
||||
/// </summary>
|
||||
/// <remarks>4214725 [20421, 64] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown18h;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x1C)
|
||||
/// </summary>
|
||||
/// <remarks>2 [2, 0] in the sample (all 3 entries)</remarks>
|
||||
public uint Unknown1Ch;
|
||||
|
||||
/// <summary>
|
||||
/// Entry file name (null-terminated)
|
||||
/// </summary>
|
||||
/// <remarks>12 bytes long in the sample (all 3 entries)</remarks>
|
||||
public string FileName;
|
||||
|
||||
/// <summary>
|
||||
/// Unknown (0x2C)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Offset based on consistent-sized filenames (12 bytes)
|
||||
/// 132 [132, 0] in the sample (all 3 entries)
|
||||
/// </remarks>
|
||||
public uint Unknown2Ch;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user