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

Library:CascLib

From ReverseEngineering.wiki
Library
Developer Ladislav Zezula
License MIT
Website https://github.com/ladislav-zezula/CascLib
On this wiki Facts · Code · Notes · Topics

Ladislav Zezula's open-source C++ library (MIT) for reading local and online CASC storages of Blizzard games, the successor of StormLib for non-MPQ titles; its CascStructs.h is the most compact definition of the on-disk structures.

Overview

CascLib opens a game's Data folder (or a CDN/online storage), parses the .idx files, ENCODING, DOWNLOAD, INSTALL and the game's ROOT, and exposes CascOpenFile, CascReadFile and CascFindFirstFile. Source layout: src/CascOpenStorage.cpp (storage open), src/CascIndexFiles.cpp (.idx), src/CascFiles.cpp (build and config text files), src/CascDecompress.cpp and src/CascReadFile.cpp (BLTE frames), src/CascDecrypt.cpp, and one src/CascRootFile_*.cpp per ROOT flavour (WoW, Diablo3, OW, MNDX, TVFS, Text, Install).

Identifying it in a binary

Tools built on it contain the %02x%08x.idx format string and the BLTE signature 0x45544C42. The structs are in src/CascStructs.h.

See Format:CASC (Content Addressable Storage Container) for the format.

Code & repositories

  • https://github.com/ladislav-zezula/CascLib @ 38a34665624b8775bb875274b36191b21c38d97b · license: MIT
    CASC storage reader (MIT); src/CascStructs.h holds idx, ENCODING, DOWNLOAD, INSTALL and BLTE structures
    Tested on: source read, not run: source reading only · checked 2026-10-18; last activity 2026-09-25