Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:InstallShield cabinet

From ReverseEngineering.wiki
Format
Developer InstallShield Software (now Flexera)
Magic 49 53 63 28 ("ISc(") at offset 0
Extensions .cab, .hdr (data1.cab, data1.hdr, data2.cab ...)
Endianness little
License proprietary; unshield (MIT) reads it
Website https://github.com/twogood/unshield
On this wiki Facts · Code · Notes · Topics

InstallShield cabinet files (data1.cab with data1.hdr, magic 'ISc(' = 0x28635349): common header, volume header sizes, descriptor offsets, file flags and obfuscation, as read in the unshield source.

The InstallShield cabinet is not a Microsoft cabinet. Layout knowledge below was read in twogood/unshield (MIT), lib/cabfile.h, lib/libunshield.c, lib/helper.c and lib/file.c.

Identification

A file starts with the dword 0x28635349 (bytes 49 53 63 28, "ISc("). unshield also knows 0x4643534D ("MSCF") and, on seeing it, only warns that the file is a Microsoft cabinet and should be opened with cabextract. Installations split into data1.hdr (headers) and data1.cab, data2.cab, ... (volumes); unshield reads headers from .hdr file i, and when no .hdr exists it reads the header from .cab file i instead.

Common header (20 bytes)

Five little-endian dwords: signature, version, volume_info, cab_descriptor_offset, cab_descriptor_size. The version dword selects the major version: when its top byte is 1, major = (version >> 12) & 0xF; when the top byte is 2 or 4, major = (version & 0xFFFF) / 100 (0 stays 0). Major version 17 or higher means Unicode (UTF-16) strings.

Volume header

In each .cab volume, after the common header: 40 bytes (VOLUME_HEADER_SIZE_V5) for major version 0 or 5, and 64 bytes (VOLUME_HEADER_SIZE_V6) for the others (the switch in file.c lists versions 6 to 13 and a default, all V6). The volume file starts with a 20-byte common header of its own, which unshield also validates. Fields include data_offset, first_file_index, last_file_index and for the first and last file in the volume offset, expanded size and compressed size (64-bit in V6, with the high halves in separate dwords).

Cabinet descriptor

At cab_descriptor_offset: skips 0xC bytes, then file_table_offset, a skipped dword, file_table_size, file_table_size2 (a warning is printed if they differ), directory_count, 8 skipped bytes, file_count, file_table_offset2. After this come 71 file group offsets (MAX_FILE_GROUP_COUNT) and 71 component offsets (MAX_COMPONENT_COUNT) at descriptor-relative positions given in cabfile.h comments (0x3E and 0x15A).

File descriptor flags

UNSHIELD_FILE_SPLIT 1 (file spans volumes), UNSHIELD_FILE_OBFUSCATED 2, UNSHIELD_FILE_COMPRESSED 4, UNSHIELD_FILE_INVALID 8. Compressed data is raw DEFLATE (inflateInit2 with -MAX_WBITS), fed block by block. Each descriptor also holds an MD5 of the file, which unshield checks ("MD5 checksum failure for file"). Obfuscated data is decoded byte by byte as ror8(b ^ 0xD5, 2) - (seed % 0x47) with the seed counting up per byte.

Related installers

The PE setup.exe wrappers and their markers (ISSetupStream, ISc( in the overlay) are on Tool:InstallShield. Unverified: how InstallScript MSI packages embed the cabinet inside an MSI stream; not read.

Code & repositories

  • https://github.com/twogood/unshield @ feaa32f6227fb306a87f4249a6618aa2ddd49966 · license: MIT
    unshield: extracts InstallShield cabinet (.cab/.hdr) files; lib/cabfile.h has the header structs, lib/file.c the inflate and deobfuscation code.
    Tested on: source read, not run · checked 2026-10-19; last activity 2026-10-18

See also

Tool:InstallShield, Format:Microsoft Cabinet, Format:Windows Installer MSI, Technique:Identifying the toolchain of a binary.