From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Zlib" |
|---|
| claim | "zlib's adler32() reduces by BASE 65521 (0xFFF1) after at most NMAX 5552 (0x15B0) bytes (MOD(a) is a %= BASE unless NO_DIVIDE selects a subtract-based reduction); compilers typically emit % 65521 as an unsigned multiply by 0x80078071 followed by a right shift of 15 of the high half (MSVC: mov eax,80078071h / mul r32 / shr edx,0Fh). A function with that constant together with 0xFFF1 is very likely an Adler-32, but not necessarily zlib's: zlib-derived code and any other Adler-32 implementation, or any other % 65521 code, shows the same constants, while builds with NO_DIVIDE or hand-vectorised adler32 (SIMD variants) may not show the multiply." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Zlib" |
|---|
| observed_in | | "Zlib1.dll 1.3.1 (MinGW-w64, as a 64-bit imul by a register holding 0x80078071)" |
| "Python311.dll" |
| "Python312.dll" |
| "TortoiseGit zlib1 tgit.dll and zlib132 tgit.dll" |
|
|---|
|
|---|
| data | | method | "constant search in code" |
|---|
| indicator | "0x80078071 (bytes 71 80 07 80) with 0xFFF1 and 0x15B0 nearby" |
|---|
| constants | | "0x80078071" |
| "0xFFF1" |
| "0x15B0" |
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define BASE 65521U / #define NMAX 5552" |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "adler32.c" |
|---|
| lines | "10-11" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "python312.dll 0x18e414: B8 71 80 07 80 41 F7 E1 ... C1 EA 0F (mov eax,0x80078071; mul r9d; shr edx,15); x86 zlib132_tgit.dll 0x480: B8 71 80 07 80 F7 E6 ... C1 EA 0F. 3-6 occurrences per binary." |
|---|
|
| type | "other" |
|---|
| detail | "2^47 / 65521 rounded up = 2147975281 = 0x80078071." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Adler-32 modulo constant" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:49:43.914Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:27:48.315Z" |
|---|
| result | "confirmed" |
|---|
| method | "Downloaded zlib adler32.c at 767c4c94: BASE 65521U, NMAX 5552, MOD(a) is a %= BASE except under NO_DIVIDE (lines 20-57). Only the source constants were re-read; the disassembly samples were not." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:14:03.630Z" |
|---|
| summary | "Name what shares the indicator and when it disappears: the constant and 65521 belong to any Adler-32 (miniz, zlib forks, other libraries) and to any other % 65521 reduction, and zlib's own MOD macro…" |
|---|
| changed | |
|---|
|
|
|---|