From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:NSIS installer" |
|---|
| claim | "makensis keeps the code of functions that are never called but overwrites it with zeros (warning 'function ... not referenced - zeroing code (a-b) out'), so runs of all-zero 28-byte entries (opcode 0, EW_INVALID_OPCODE) in the entries block are dead functions, not corruption or encryption." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:NSIS installer" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "a Function that no Call, callback or page refers to" |
|---|
| effect | "its entries are memset to 0 in the output" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "optimize unused functions: memset(w+sec->code,0,sec->code_size*sizeof(entry))" |
|---|
| repo | "https://github.com/kichik/nsis" |
|---|
| commit | "f0bfe3e0062c57dc1ef90f1d235c7c0bd5a43be4" |
|---|
| path | "Source/build.cpp" |
|---|
| lines | "1697-1716" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "38 all-zero entries (from index 4) in one tested uninstaller, 24 in an installer; none in three other uninstallers" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Unused functions are zeroed" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T20:11:01.682Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:13:46.264Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read build.cpp 1690-1716 at the cited commit: functions with sec->flags == 0 (never referenced, callbacks resolved just before) and code_size > 0 are warned about and memset to zero." |
|---|
|
|
|---|