This section-by-section layout is specified precisely in the WebAssembly binary format spec, and it's exactly what tools like wasm2wat and wasm-objdump from the WABT toolkit parse to produce human-readable output. LEB128 decoding is the same variable-length integer trick DWARF debug info and Git's packfile format use, so this skill transfers well beyond WebAssembly.