From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:NSIS installer" |
|---|
| claim | "Every NSIS installer and uninstaller contains a 28-byte firstheader at a 512-byte aligned file offset (normally the PE overlay start): flags (0-15), then EF BE AD DE 4E 75 6C 6C 73 6F 66 74 49 6E 73 74 (0xDEADBEEF, "NullsoftInst"). The exehead finds it by testing the start of each 512-byte block of its own file." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NSIS installer" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "EF BE AD DE 4E 75 6C 6C 73 6F 66 74 49 6E 73 74" |
|---|
| offset | "0x4" |
|---|
| relative_to | "the firstheader, at a 512-byte aligned file offset" |
|---|
| meaning | "NSIS firstheader: siginfo 0xDEADBEEF + nsinst "NullsoftInst"" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "FH_SIG 0xDEADBEEF, FH_INT1..3 and the firstheader struct" |
|---|
| repo | "https://github.com/kichik/nsis" |
|---|
| commit | "f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4" |
|---|
| path | "Source/exehead/fileform.h" |
|---|
| lines | "215-246" |
|---|
|
| type | "source" |
|---|
| detail | "loadHeaders reads 512 bytes at a time and tests flags & ~15 == 0, siginfo and the three nsinst words at each block start" |
|---|
| repo | "https://github.com/kichik/nsis" |
|---|
| commit | "f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4" |
|---|
| path | "Source/exehead/fileform.c" |
|---|
| lines | "207-232" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Found at 0x2E800, 0x2E600, 0x20E00, 0x1B200, 0x69E00, 0x28400, 0x25400 and 0xFC00 (all multiples of 512, each equal to the end of the last PE section) in eight installed NSIS uninstallers" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "firstheader signature" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T20:06:21.704Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:12:56.225Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read fileform.h (firstheader struct: int flags, int siginfo FH_SIG 0xDEADBEEF, nsinst[3] = 0x6C6C754E,0x74666F73,0x74736E49 i.e. NullsoftInst) and fileform.c lines 207-232 at the cited commit: loop reads 512 bytes while g_filehdrsize==0, memcpy into firstheader and tests flags&~15==0, siginfo and the three nsinst words, so the offset 4 and block-aligned scan are right." |
|---|
|
|
|---|