From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Windows Installer MSI" |
|---|
| claim | "Wine's msi.dll confirms the stream name encoding: the 64 characters 0-9 A-Z a-z . _ map to 0..63; a pair becomes 0x3800 + first + (second << 6), a lone character 0x4800 + value, and table streams get the prefix 0x4840." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "all MSI/MSP/MST/MSM files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "opening a table stream by name" |
|---|
| effect | "name is encode_streamname(bTable, name); decode_streamname reverses it for codes in 0x3800..0x483F" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "utf2mime, encode_streamname, mime2utf, decode_streamname" |
|---|
| repo | "https://github.com/wine-mirror/wine" |
|---|
| commit | "7298a818b79446bae153b8d5aa27235ab3703bf9" |
|---|
| path | "dlls/msi/table.c" |
|---|
| lines | "106-205" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Stream name encoding (Wine)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T00:11:19.741Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:04:24.364Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Wine dlls/msi/table.c at 7298a818b794 lines 106-205: utf2mime maps 0-9, A-Z, a-z, '.', '_' to 0..63; pair = 0x4800 + a + ((b + 0x3ffffc0) << 6) which truncated to a WCHAR is 0x3800 + a + (b<<6); lone 0x4800 + a; table prefix 0x4840; decode accepts 0x3800..0x483F." |
|---|
|
|
|---|