From 14c90603f0d8cab19ab43fbb258fbe7755978e1a Mon Sep 17 00:00:00 2001 From: debugactiveprocess <49375302+debugactiveprocess@users.noreply.github.com> Date: Thu, 19 Nov 2026 23:27:24 -0300 Subject: [PATCH 1/2] Release 0.6.0: PyPI package, build provenance and CI - python/: wheels that ship the release binaries (maldoctrace command and a small Python API), built with the standard library only - release.yml: build provenance attestations for the archives and a PyPI job using trusted publishing; actions pinned by commit SHA - ci.yml: gofmt, vet, tests, short fuzzing and a wheel smoke test on every PR - SECURITY.md and Dependabot configuration - Version 0.6.0 in analyze.go, CHANGELOG, README and the Debian packaging --- .github/dependabot.yml | 10 ++ .github/workflows/ci.yml | 75 ++++++++++++++ .github/workflows/release.yml | 59 +++++++++-- CHANGELOG.md | 21 +++- README.md | 25 ++++- SECURITY.md | 33 +++++++ analyze.go | 2 +- debian/changelog | 8 ++ debian/maldoctrace.1 | 2 +- python/README.md | 40 ++++++++ python/build_wheels.py | 176 +++++++++++++++++++++++++++++++++ python/maldoctrace/__init__.py | 93 +++++++++++++++++ python/maldoctrace/__main__.py | 13 +++ 13 files changed, 542 insertions(+), 15 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml create mode 100644 SECURITY.md create mode 100644 python/README.md create mode 100644 python/build_wheels.py create mode 100644 python/maldoctrace/__init__.py create mode 100644 python/maldoctrace/__main__.py diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..01fffd3 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: gomod + directory: / + schedule: + interval: weekly + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8d9c034 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: CI + +# Runs on every push to main and every pull request: formatting, vet, the +# test suite, a short fuzzing pass over the main parsers, and a check that the +# PyPI wheels can still be built from release-style archives. +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + with: + go-version-file: go.mod + + - name: gofmt + run: | + out="$(gofmt -l $(git ls-files '*.go'))" + if [ -n "$out" ]; then echo "not gofmt-formatted:"; echo "$out"; exit 1; fi + + - run: go vet ./... + - run: go test ./... + + fuzz: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - { pkg: ".", target: FuzzAnalyzeBytes } + - { pkg: ".", target: FuzzAnalyzeVBScript } + - { pkg: ".", target: FuzzOneNote } + - { pkg: "./extractor", target: FuzzRTF } + - { pkg: "./extractor", target: FuzzBIFF } + - { pkg: "./payload", target: FuzzDeobfuscateBatch } + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + with: + go-version-file: go.mod + - name: Fuzz ${{ matrix.target }} for 30s + run: go test -run '^$' -fuzz "^${{ matrix.target }}\$" -fuzztime 30s "${{ matrix.pkg }}" + + wheels: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 + with: + go-version-file: go.mod + - name: Build release-style archives and wheels + run: | + VERSION="$(sed -n 's/^var Version = "\(.*\)"/\1/p' analyze.go)" + mkdir -p dist + for p in windows/amd64 windows/arm64 linux/amd64 linux/arm64 darwin/amd64 darwin/arm64; do + os="${p%/*}"; arch="${p#*/}"; name="maldocTrace_${VERSION}_${os}_${arch}" + bin=maldocTrace; [ "$os" = windows ] && bin=maldocTrace.exe + mkdir -p "stage/$name" + GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o "stage/$name/$bin" ./cmd/maldoctrace + if [ "$os" = windows ]; then (cd stage && zip -qr "../dist/$name.zip" "$name"); else tar -C stage -czf "dist/$name.tar.gz" "$name"; fi + done + python3 python/build_wheels.py --version "$VERSION" --dist dist --out wheels + - name: Install the Linux wheel and run it + run: | + python3 -m venv venv + venv/bin/pip install wheels/*manylinux*x86_64*.whl + venv/bin/maldoctrace version + venv/bin/python -c "import maldoctrace; print(maldoctrace.__version__, maldoctrace.find_binary())" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d0493a..c86f134 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,21 +2,24 @@ name: Release # Pushing a tag such as v0.1.0 tests the code, builds MaldocTrace for # Windows, Linux and macOS, and publishes a GitHub Release with the archives, -# SHA-256 checksums and the matching CHANGELOG.md section as release notes. +# SHA-256 checksums, build provenance attestations and the matching +# CHANGELOG.md section as release notes. The same binaries are then wrapped +# in platform wheels and published to PyPI as the `maldoctrace` package +# (trusted publishing from the `pypi` environment; no token is stored). on: push: tags: - "v*" permissions: - contents: write + contents: read jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 with: go-version-file: go.mod - run: go vet ./... @@ -35,8 +38,8 @@ jobs: - { goos: darwin, goarch: amd64 } - { goos: darwin, goarch: arm64 } steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5 with: go-version-file: go.mod @@ -60,7 +63,7 @@ jobs: tar -czf "../dist/$NAME.tar.gz" "$NAME" fi - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: dist-${{ matrix.goos }}-${{ matrix.goarch }} path: dist/* @@ -69,10 +72,14 @@ jobs: release: needs: build runs-on: ubuntu-latest + permissions: + contents: write + id-token: write + attestations: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 with: pattern: dist-* path: dist @@ -84,6 +91,11 @@ jobs: sha256sum * > checksums.txt cat checksums.txt + - name: Attest build provenance + uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2 + with: + subject-path: dist/maldocTrace_* + - name: Release notes from CHANGELOG.md run: | VERSION="${GITHUB_REF_NAME#v}" @@ -107,3 +119,32 @@ jobs: --title "MaldocTrace $GITHUB_REF_NAME" \ --notes-file notes.md \ --verify-tag + + pypi: + needs: release + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/maldoctrace/ + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 + with: + pattern: dist-* + path: dist + merge-multiple: true + + - name: Build wheels from the release binaries + run: | + VERSION="${GITHUB_REF_NAME#v}" + python3 python/build_wheels.py --version "$VERSION" --dist dist --out wheels + ls -l wheels + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1 + with: + packages-dir: wheels/ diff --git a/CHANGELOG.md b/CHANGELOG.md index fdb84a2..cd36f59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] -Coverage fixes from 14 recent MalwareBazaar OneNote droppers (IcedID, Emotet, Qakbot, Gozi, MetaStealer): commands are now recovered from all the script-based ones. +## [0.6.0] - 2026-11-20 + +Coverage fixes from 14 recent MalwareBazaar OneNote droppers (IcedID, Emotet, Qakbot, Gozi, MetaStealer): commands are now recovered from all the script-based ones. MaldocTrace is now also published on PyPI, and release archives carry build provenance attestations. + +### Downloads + +| Platform | Archive | +|---|---| +| Windows x64 / ARM64 | `maldocTrace_0.6.0_windows_amd64.zip`, `maldocTrace_0.6.0_windows_arm64.zip` | +| Linux x64 / ARM64 | `maldocTrace_0.6.0_linux_amd64.tar.gz`, `maldocTrace_0.6.0_linux_arm64.tar.gz` | +| macOS Intel / Apple Silicon | `maldocTrace_0.6.0_darwin_amd64.tar.gz`, `maldocTrace_0.6.0_darwin_arm64.tar.gz` | + +Or install with `pip install maldoctrace` (also `pipx` / `uv tool install`): the wheels contain these same binaries. + +You can verify downloads against `checksums.txt` (SHA-256), or check that an archive was built by the release workflow with `gh attestation verify --repo debugactiveprocess/MaldocTrace`. The binaries are static and have no dependencies. The macOS builds are not notarized, so remove the quarantine flag before running them: `xattr -d com.apple.quarantine maldocTrace`. ### Added @@ -15,6 +29,8 @@ Coverage fixes from 14 recent MalwareBazaar OneNote droppers (IcedID, Emotet, Qa - **MSI packages** and **CHM help files** are classified and reported as `embedded_executable`. - `onenote_encrypted_data` finding (suspicious): embedded data that is encrypted or random and of no known type, as in a password-protected section. - Emulation: `Err` object (`Err.Number` is 0), `Shell.Application.Open`, `FileSystemObject` path helpers (`GetParentFolderName`, `GetFileName`, `GetBaseName`, `GetExtensionName`). Text written through `CreateTextFile` is captured as one artifact when the stream is closed and returned by `ReadAll`. +- **PyPI package** `maldoctrace`: platform wheels (Windows, Linux, macOS; x64 and ARM64) that install the release binary as the `maldoctrace` command, plus a small Python API (`maldoctrace.analyze()`, `maldoctrace.analyze_bytes()`) that returns the JSON report as a dict. +- Release archives get a GitHub build provenance attestation (`gh attestation verify`). Continuous integration runs formatting, vet, the tests and a short fuzzing pass on every pull request. `SECURITY.md` describes how to report vulnerabilities privately. ### Fixed @@ -294,7 +310,8 @@ You can verify downloads against `checksums.txt` (SHA-256). The binaries are sta - `--dump-payloads DIR` to write decoded payloads and dropped files with neutral extensions and a `manifest.json`. - **Robustness**: each pipeline stage recovers from panics and records them as diagnostics. The VBA pipeline and container parsers are fuzzed. -[Unreleased]: https://github.com/debugactiveprocess/MaldocTrace/compare/v0.5.1...HEAD +[Unreleased]: https://github.com/debugactiveprocess/MaldocTrace/compare/v0.6.0...HEAD +[0.6.0]: https://github.com/debugactiveprocess/MaldocTrace/releases/tag/v0.6.0 [0.5.1]: https://github.com/debugactiveprocess/MaldocTrace/releases/tag/v0.5.1 [0.5.0]: https://github.com/debugactiveprocess/MaldocTrace/releases/tag/v0.5.0 [0.4.0]: https://github.com/debugactiveprocess/MaldocTrace/releases/tag/v0.4.0 diff --git a/README.md b/README.md index 0349f49..d1224ef 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,9 @@ Prebuilt binaries for **Windows**, **Linux** and **macOS** (x64 and ARM64) are o With a package manager: ```bash +# Any platform with Python 3.8+ (PyPI; the wheel contains the same static binary) +pip install maldoctrace # or: pipx install maldoctrace / uv tool install maldoctrace + # macOS / Linux (Homebrew) brew install debugactiveprocess/tap/maldoctrace @@ -85,7 +88,7 @@ Requires Go 1.23+. Dependencies: `golang.org/x/text` and, for 7z archives, [`git Install a tagged release: ```bash -go install github.com/debugactiveprocess/MaldocTrace/cmd/maldoctrace@v0.5.1 +go install github.com/debugactiveprocess/MaldocTrace/cmd/maldoctrace@v0.6.0 ``` Or build from a release tarball or a clone: @@ -478,7 +481,25 @@ Inputs that made the fuzzers fail are kept under `testdata/fuzz/` as permanent r git push origin vX.Y.Z ``` -The [release workflow](.github/workflows/release.yml) then runs the tests and builds static binaries for Windows, Linux and macOS (amd64/arm64), stamping each with the version from the tag. It publishes a GitHub Release with the archives, `checksums.txt` and that CHANGELOG section as notes. A tag without a matching CHANGELOG section fails instead of publishing an empty release. +The [release workflow](.github/workflows/release.yml) then runs the tests and builds static binaries for Windows, Linux and macOS (amd64/arm64), stamping each with the version from the tag. It publishes a GitHub Release with the archives, `checksums.txt`, build provenance attestations and that CHANGELOG section as notes, then wraps the same binaries in wheels ([python/](python/)) and publishes them to PyPI as `maldoctrace` through trusted publishing. A tag without a matching CHANGELOG section fails instead of publishing an empty release. + +Prebuilt binaries can be checked against their attestation: + +```bash +gh attestation verify maldocTrace__linux_amd64.tar.gz --repo debugactiveprocess/MaldocTrace +``` + +### Python API + +The PyPI package also exposes the analyzer to Python; it runs the bundled binary and returns the JSON report: + +```python +import maldoctrace + +report = maldoctrace.analyze("sample.one") +print(report["verdict"], report["risk_score"]) +report = maldoctrace.analyze_bytes(data, name="invoice.xls", passwords=["infected"]) +``` ## Acknowledgements diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..8f7aa65 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,33 @@ +# Security policy + +MaldocTrace parses hostile files by design, so bugs in its parsers and emulator are security bugs: a crash, hang, excessive memory use or path traversal triggered by a crafted document can be used to blind a triage pipeline or to attack the machine that runs it. + +## Supported versions + +Security fixes go into the latest release. Please check that a problem still happens with the latest version (or `main`) before reporting it. + +## Reporting a vulnerability + +Please report vulnerabilities privately through GitHub: open the [Security tab](https://github.com/debugactiveprocess/MaldocTrace/security) of the repository and choose **Report a vulnerability**. Do not open a public issue for them. + +Useful details: + +- the MaldocTrace version (`maldoctrace version`) and platform; +- the command line you used; +- a minimal input that triggers the problem. If it is a live malware sample, send its SHA-256 (and where it can be obtained, such as MalwareBazaar) rather than the file, or attach it in a password-protected archive (password `infected`). + +You should get a first answer within a week. Once a fix is released, the advisory is published with credit to the reporter, unless you prefer to stay anonymous. + +## Scope + +In scope: crashes, hangs, unbounded resource use, files written outside the `--dump-payloads` directory, and any way a sample could get MaldocTrace to execute code or contact the network. MaldocTrace never runs the sample and never makes network requests; anything that breaks either rule is a vulnerability. + +Out of scope: samples that MaldocTrace fails to detect or misclassifies. Please report those as regular issues, ideally with a SHA-256. + +## Verifying releases + +Each release lists SHA-256 checksums in `checksums.txt`, and every archive carries a GitHub build provenance attestation. To check that an archive was built by this repository's release workflow: + +```bash +gh attestation verify maldocTrace__linux_amd64.tar.gz --repo debugactiveprocess/MaldocTrace +``` diff --git a/analyze.go b/analyze.go index 5eff4d3..f14bdf1 100644 --- a/analyze.go +++ b/analyze.go @@ -19,7 +19,7 @@ import ( // Version is the tool version reported in output. Release builds set it // from the git tag: -ldflags "-X maldoctrace.Version=1.2.3". -var Version = "0.5.1" +var Version = "0.6.0" // Options configures an analysis run. type Options struct { diff --git a/debian/changelog b/debian/changelog index 64c9c08..3a104a8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +maldoctrace (0.6.0-0kali1) kali-dev; urgency=medium + + * New upstream release: OneNote droppers are followed through their + VBScript stages, batch scripts are deobfuscated, and ISO, MSI and CHM + files are recognized. See CHANGELOG.md. + + -- Ialle Teixeira <49375302+debugactiveprocess@users.noreply.github.com> Fri, 20 Nov 2026 12:00:00 -0300 + maldoctrace (0.5.1-0kali1) kali-dev; urgency=medium * New upstream release: Word altChunk imports are analysed, and Equation diff --git a/debian/maldoctrace.1 b/debian/maldoctrace.1 index c1a410a..c00a384 100644 --- a/debian/maldoctrace.1 +++ b/debian/maldoctrace.1 @@ -1,4 +1,4 @@ -.TH MALDOCTRACE 1 "November 2026" "maldoctrace 0.5.1" "User Commands" +.TH MALDOCTRACE 1 "November 2026" "maldoctrace 0.6.0" "User Commands" .SH NAME maldoctrace \- analyze malicious Office documents by emulating VBA and Excel 4.0 macros .SH SYNOPSIS diff --git a/python/README.md b/python/README.md new file mode 100644 index 0000000..d3ca563 --- /dev/null +++ b/python/README.md @@ -0,0 +1,40 @@ +# MaldocTrace + +MaldocTrace is a defensive analyzer for malicious documents. It extracts and emulates VBA, Excel 4.0 (XLM) and VBScript in a fully simulated environment and reports what the document *would* do: the commands it would run, the payloads it would decode and the files it would drop. It never executes the sample. + +It covers Office (OLE, OOXML, RTF, SYLK, Word XML, MHT), OneNote sections, emails (`.eml`, `.msg`), ZIP/7z archives and ISO images, and follows multi-stage droppers (OneNote → VBScript → dropped script → `rundll32`) in one run. Every report starts with a verdict, a 0–100 risk score and the reasons behind it. + +![MaldocTrace following an IcedID OneNote dropper to the final rundll32 command](https://raw.githubusercontent.com/debugactiveprocess/MaldocTrace/main/docs/demo.gif) + +## Install + +```bash +pip install maldoctrace # or: pipx install maldoctrace / uv tool install maldoctrace +``` + +The wheel contains the static MaldocTrace binary for your platform (Windows, Linux and macOS, x64 and ARM64) and installs it as the `maldoctrace` command. The binary is the one published on the GitHub release of the same version. + +## Command line + +```bash +maldoctrace analyze sample.docm +maldoctrace analyze sample.one --format json +maldoctrace analyze ./samples --recursive --format jsonl +``` + +## Python + +```python +import maldoctrace + +report = maldoctrace.analyze("sample.one") # JSON report as a dict +print(report["verdict"], report["risk_score"]) +for cmd in report.get("commands") or []: + print(cmd["command_line"]) + +report = maldoctrace.analyze_bytes(data, name="invoice.xls", passwords=["infected"]) +``` + +Documentation, the full option list and the JSON schema are in the [project README](https://github.com/debugactiveprocess/MaldocTrace#readme). + +MaldocTrace is released under the Apache License 2.0. diff --git a/python/build_wheels.py b/python/build_wheels.py new file mode 100644 index 0000000..3f5d4cd --- /dev/null +++ b/python/build_wheels.py @@ -0,0 +1,176 @@ +"""Build platform wheels that ship the MaldocTrace release binaries. + +Usage: + python python/build_wheels.py --version 0.6.0 --dist dist --out wheels + +``--dist`` holds the release archives produced by the release workflow +(maldocTrace___.zip / .tar.gz). For each one a wheel +is written to ``--out``; the binary is installed as the ``maldoctrace`` +command and the ``maldoctrace`` Python package wraps it. Only the standard +library is used. +""" + +from __future__ import annotations + +import argparse +import base64 +import csv +import hashlib +import io +import os +import tarfile +import zipfile + +HERE = os.path.dirname(os.path.abspath(__file__)) +ROOT = os.path.dirname(HERE) +NAME = "maldoctrace" + +# goos/goarch -> wheel platform tags. The binaries are static (CGO_ENABLED=0), +# so one Linux build serves both glibc and musl systems. Go 1.23 needs macOS 11. +PLATFORMS = { + ("windows", "amd64"): ["win_amd64"], + ("windows", "arm64"): ["win_arm64"], + ("linux", "amd64"): ["manylinux_2_17_x86_64", "manylinux2014_x86_64", "musllinux_1_1_x86_64"], + ("linux", "arm64"): ["manylinux_2_17_aarch64", "manylinux2014_aarch64", "musllinux_1_1_aarch64"], + ("darwin", "amd64"): ["macosx_11_0_x86_64"], + ("darwin", "arm64"): ["macosx_11_0_arm64"], +} + +SUMMARY = ( + "Analyzer for malicious Office, RTF and OneNote documents that emulates " + "macros and scripts to recover the commands they would run, without executing them" +) +KEYWORDS = "malware-analysis,maldoc,vba,onenote,dfir,incident-response,ioc" +CLASSIFIERS = [ + "Development Status :: 4 - Beta", + "Environment :: Console", + "Intended Audience :: Information Technology", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: Apache Software License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX :: Linux", + "Operating System :: MacOS", + "Programming Language :: Go", + "Programming Language :: Python :: 3", + "Topic :: Security", +] +URLS = { + "Homepage": "https://github.com/debugactiveprocess/MaldocTrace", + "Changelog": "https://github.com/debugactiveprocess/MaldocTrace/blob/main/CHANGELOG.md", + "Issues": "https://github.com/debugactiveprocess/MaldocTrace/issues", +} + + +def read(path: str) -> bytes: + with open(path, "rb") as f: + return f.read() + + +def binary_from_archive(path: str) -> bytes: + """Return the maldocTrace executable stored in a release archive.""" + if path.endswith(".zip"): + with zipfile.ZipFile(path) as z: + for n in z.namelist(): + if os.path.basename(n) == "maldocTrace.exe": + return z.read(n) + else: + with tarfile.open(path, "r:gz") as t: + for m in t.getmembers(): + if m.isfile() and os.path.basename(m.name) == "maldocTrace": + f = t.extractfile(m) + assert f is not None + return f.read() + raise SystemExit(f"{path}: no maldocTrace binary inside") + + +def metadata(version: str) -> bytes: + lines = [ + "Metadata-Version: 2.1", + f"Name: {NAME}", + f"Version: {version}", + f"Summary: {SUMMARY}", + "Author: debugactiveprocess", + "License: Apache-2.0", + f"Keywords: {KEYWORDS}", + "Requires-Python: >=3.8", + ] + lines += [f"Classifier: {c}" for c in CLASSIFIERS] + lines += [f"Project-URL: {k}, {v}" for k, v in URLS.items()] + lines.append("Description-Content-Type: text/markdown") + body = read(os.path.join(HERE, "README.md")).decode("utf-8") + return ("\n".join(lines) + "\n\n" + body).encode("utf-8") + + +def wheel_file(tags: list[str]) -> bytes: + lines = ["Wheel-Version: 1.0", "Generator: maldoctrace build_wheels.py", "Root-Is-Purelib: false"] + lines += [f"Tag: py3-none-{t}" for t in tags] + return ("\n".join(lines) + "\n").encode() + + +def record_hash(data: bytes) -> str: + digest = base64.urlsafe_b64encode(hashlib.sha256(data).digest()).rstrip(b"=").decode() + return f"sha256={digest}" + + +def build(version: str, goos: str, goarch: str, binary: bytes, out: str) -> str: + tags = PLATFORMS[(goos, goarch)] + exe = "maldoctrace.exe" if goos == "windows" else "maldoctrace" + dist_info = f"{NAME}-{version}.dist-info" + data_dir = f"{NAME}-{version}.data" + + init = read(os.path.join(HERE, NAME, "__init__.py")).decode("utf-8") + init = init.replace('__version__ = "0.0.0"', f'__version__ = "{version}"', 1) + files: list[tuple[str, bytes, int]] = [ + (f"{NAME}/__init__.py", init.encode("utf-8"), 0o644), + (f"{NAME}/__main__.py", read(os.path.join(HERE, NAME, "__main__.py")), 0o644), + (f"{data_dir}/scripts/{exe}", binary, 0o755), + (f"{dist_info}/METADATA", metadata(version), 0o644), + (f"{dist_info}/WHEEL", wheel_file(tags), 0o644), + (f"{dist_info}/LICENSE", read(os.path.join(ROOT, "LICENSE")), 0o644), + (f"{dist_info}/top_level.txt", f"{NAME}\n".encode(), 0o644), + ] + + record = io.StringIO() + w = csv.writer(record, lineterminator="\n") + for name, data, _ in files: + w.writerow([name, record_hash(data), len(data)]) + w.writerow([f"{dist_info}/RECORD", "", ""]) + files.append((f"{dist_info}/RECORD", record.getvalue().encode(), 0o644)) + + filename = f"{NAME}-{version}-py3-none-{'.'.join(tags)}.whl" + path = os.path.join(out, filename) + with zipfile.ZipFile(path, "w", compression=zipfile.ZIP_DEFLATED, compresslevel=9) as z: + for name, data, mode in files: + info = zipfile.ZipInfo(name, date_time=(2026, 1, 1, 0, 0, 0)) + info.compress_type = zipfile.ZIP_DEFLATED + info.external_attr = (0o100000 | mode) << 16 + z.writestr(info, data) + return path + + +def main() -> None: + ap = argparse.ArgumentParser() + ap.add_argument("--version", required=True) + ap.add_argument("--dist", required=True, help="directory with the release archives") + ap.add_argument("--out", required=True) + args = ap.parse_args() + os.makedirs(args.out, exist_ok=True) + + built = 0 + for (goos, goarch) in PLATFORMS: + stem = f"maldocTrace_{args.version}_{goos}_{goarch}" + archive = None + for ext in (".zip", ".tar.gz"): + p = os.path.join(args.dist, stem + ext) + if os.path.exists(p): + archive = p + if archive is None: + raise SystemExit(f"missing release archive for {goos}/{goarch} ({stem}.*)") + path = build(args.version, goos, goarch, binary_from_archive(archive), args.out) + print(path) + built += 1 + print(f"{built} wheels") + + +if __name__ == "__main__": + main() diff --git a/python/maldoctrace/__init__.py b/python/maldoctrace/__init__.py new file mode 100644 index 0000000..cfa859f --- /dev/null +++ b/python/maldoctrace/__init__.py @@ -0,0 +1,93 @@ +"""Python wrapper for the MaldocTrace command-line analyzer. + +The wheel ships the static MaldocTrace binary for its platform and installs it +as the ``maldoctrace`` command. This module finds that binary and runs it: + + import maldoctrace + + report = maldoctrace.analyze("sample.one") + print(report["verdict"], report["risk_score"]) + +Nothing in the sample is executed; MaldocTrace only parses and emulates it. +""" + +from __future__ import annotations + +import json +import os +import shutil +import subprocess +import sys +import sysconfig +import tempfile +from typing import Any, Dict, Iterable, Optional + +__all__ = ["__version__", "find_binary", "analyze", "analyze_bytes", "run"] + +__version__ = "0.0.0" # replaced with the release version when the wheel is built + +_EXE = "maldoctrace.exe" if os.name == "nt" else "maldoctrace" + + +def find_binary() -> str: + """Return the path of the MaldocTrace binary installed with this package.""" + candidates = [] + for scheme in (None, f"{os.name}_user", "posix_user", "nt_user", "osx_framework_user"): + try: + path = sysconfig.get_path("scripts", scheme) if scheme else sysconfig.get_path("scripts") + except KeyError: + continue + if path: + candidates.append(os.path.join(path, _EXE)) + # Next to the interpreter (virtual environments, pipx, uv tool). + candidates.append(os.path.join(os.path.dirname(sys.executable), _EXE)) + for path in candidates: + if os.path.isfile(path): + return path + found = shutil.which(_EXE) + if found: + return found + raise FileNotFoundError( + "MaldocTrace binary not found; reinstall the package with " + "'pip install --force-reinstall maldoctrace'" + ) + + +def run(args: Iterable[str], **kwargs: Any) -> subprocess.CompletedProcess: + """Run the MaldocTrace binary with ``args`` and return the completed process.""" + return subprocess.run([find_binary(), *args], **kwargs) + + +def analyze( + path: str, + *, + timeout: Optional[str] = None, + passwords: Iterable[str] = (), + extra_args: Iterable[str] = (), +) -> Dict[str, Any]: + """Analyze the file at ``path`` and return the JSON report as a dict. + + ``timeout`` is passed as ``--timeout`` (for example ``"30s"``), each entry of + ``passwords`` as ``--password``. A malicious verdict is not an error. + """ + args = ["analyze", os.fspath(path), "--format", "json"] + if timeout: + args += ["--timeout", timeout] + for pw in passwords: + args += ["--password", pw] + args += list(extra_args) + proc = run(args, capture_output=True) + if proc.returncode != 0 or not proc.stdout.strip(): + msg = proc.stderr.decode("utf-8", "replace").strip() + raise RuntimeError(f"maldoctrace exited with status {proc.returncode}: {msg}") + return json.loads(proc.stdout) + + +def analyze_bytes(data: bytes, name: str = "sample.bin", **kwargs: Any) -> Dict[str, Any]: + """Analyze an in-memory file. ``name`` is used as the file name in the report.""" + base = os.path.basename(name) or "sample.bin" + with tempfile.TemporaryDirectory(prefix="maldoctrace-") as tmp: + path = os.path.join(tmp, base) + with open(path, "wb") as f: + f.write(data) + return analyze(path, **kwargs) diff --git a/python/maldoctrace/__main__.py b/python/maldoctrace/__main__.py new file mode 100644 index 0000000..9f4454e --- /dev/null +++ b/python/maldoctrace/__main__.py @@ -0,0 +1,13 @@ +"""Allow ``python -m maldoctrace ...`` as an alias for the ``maldoctrace`` command.""" + +import sys + +from . import run + + +def main() -> int: + return run(sys.argv[1:]).returncode + + +if __name__ == "__main__": + sys.exit(main()) From 12759fb8186161c9bb5e81921a5b4bd2fe02d7a6 Mon Sep 17 00:00:00 2001 From: debugactiveprocess <49375302+debugactiveprocess@users.noreply.github.com> Date: Thu, 19 Nov 2026 23:41:41 -0300 Subject: [PATCH 2/2] Size CFB FAT buffers from the file length, not the header A compound file header can declare billions of FAT or mini FAT sectors; the parser pre-allocated buffers from those counts and a crafted file crashed the process with an out-of-memory error. Found by the new CI fuzzing job; the crashing input is kept as a regression case. --- CHANGELOG.md | 1 + extractor/cfb.go | 11 +++++++++-- testdata/fuzz/FuzzAnalyzeBytes/1a9fafe8b7f6aa15 | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 testdata/fuzz/FuzzAnalyzeBytes/1a9fafe8b7f6aa15 diff --git a/CHANGELOG.md b/CHANGELOG.md index cd36f59..e3bb42c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ You can verify downloads against `checksums.txt` (SHA-256), or check that an arc - Encrypted or random data was reported as shellcode because two-byte XOR decoder patterns occur in it by chance; on high-entropy data only stubs at the start are considered. - VBA/VBScript runtime: `Dim a, b, c` and `Public a, b` declared only the first name; a module-level variable assigned inside a procedure became a local; `Split` with an empty delimiter returned characters instead of the whole string; `obj.Run (cmd), 0, True` failed to parse; `FileSystemObject.GetTempName` returned a path instead of a bare name and could not be read without parentheses. - URLs no longer swallow a following `|` or `^` (`...p.ps1|iex`). +- A compound file whose header declares a huge FAT or mini FAT sector count made the parser try to allocate terabytes and crash the process; buffers are now sized from the file length (found by fuzzing). ## [0.5.1] - 2026-11-14 diff --git a/extractor/cfb.go b/extractor/cfb.go index 992ed5a..1444f82 100644 --- a/extractor/cfb.go +++ b/extractor/cfb.go @@ -121,8 +121,11 @@ func parseCFB(data []byte, lim *Limits) (*cfbReader, error) { if numFatSectors == 0 { numFatSectors = uint32(len(difat)) } - fat := make([]uint32, 0, int(numFatSectors)*int(r.sectorSize/4)) + // The sector counts come from the header and cannot be trusted: a file + // can hold at most len(data)/sectorSize sectors, so size buffers from that. + maxSectors := uint32(len(data)/int(r.sectorSize)) + 1 maxFatEntries := int(lim.MaxContainerEntries) * 128 + fat := make([]uint32, 0, min(int(min(numFatSectors, maxSectors, uint32(len(difat))))*int(r.sectorSize/4), maxFatEntries)) for i := 0; i < len(difat) && i < int(numFatSectors); i++ { sect := difat[i] if sect > maxRegularSector { @@ -146,7 +149,8 @@ func parseCFB(data []byte, lim *Limits) (*cfbReader, error) { } // Read mini FAT. if numMiniFat > 0 && firstMiniFat <= maxRegularSector { - miniFat := make([]uint32, 0, int(numMiniFat)*int(r.sectorSize/4)) + numMiniFat = min(numMiniFat, maxSectors) + miniFat := make([]uint32, 0, min(int(numMiniFat)*int(r.sectorSize/4), maxFatEntries)) cur = firstMiniFat for i := 0; cur <= maxRegularSector && i < int(numMiniFat); i++ { b, err := r.readSectorBytes(cur) @@ -155,6 +159,9 @@ func parseCFB(data []byte, lim *Limits) (*cfbReader, error) { } for j := 0; j+4 <= len(b); j += 4 { miniFat = append(miniFat, binary.LittleEndian.Uint32(b[j:])) + if len(miniFat) > maxFatEntries { + return nil, Wrap("cfb", ErrLimitExceeded) + } } cur = r.nextSector(cur) } diff --git a/testdata/fuzz/FuzzAnalyzeBytes/1a9fafe8b7f6aa15 b/testdata/fuzz/FuzzAnalyzeBytes/1a9fafe8b7f6aa15 new file mode 100644 index 0000000..adf8bfa --- /dev/null +++ b/testdata/fuzz/FuzzAnalyzeBytes/1a9fafe8b7f6aa15 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\xd0\xcf\x11ࡱ\x1a\xe1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x00\x03\x00\xfe\xff\t\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\t\b\x10\x00\x00\x06\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x85\x00\x0e\x00f\x00\x00\x00\x00\x00\x06\x00Sheet1\x85\x00\t\x00\x8c\x00\x00\x00\x01\x01\x01\x00M\xae\x01\x04\x00\x02\x00\x01\x04\x17\x00\b\x00\x01\x00\x00\x00\x01\x00\x01\x00\x18\x00\x17\x00 \x00\x00\x01\a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01:\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\t\b\x10\x00\x00\x06\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x02\n\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00x\n\x00\x00\x00\t\b\x10\x00\x00\x06@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00!\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\v\x00\x17\x04\x00calcB\x01n\x00\x06\x00\x1e\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\b\x00D\x00\x00\x00\x00A5\x00\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00R\x00o\x00o\x00t\x00 \x00E\x00n\x00t\x00r\x00y\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x16\x00\x05\x01\xff\xff\xff\xff\xff\xff\xff\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00W\x00o\x00r\x00k\x00b\x00o\x00o\x00k\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x02\x01\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x05\x00\x00\x00\x06\x00\x00\x00\a\x00\x00\x00\xfe\xff\xff\xff\xfe\xff\xff\xff\xfd\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff")