AxisFilter.dll / Windows user mode
The input filter behind a 16-byte interface
AxisBench loads a DLL to calibrate one axis. Its named export returns a table. Following the last eight bytes of that table reveals the function that clips a sample, applies a dead zone and scales what remains.
- Host
- AxisBench.exe
- Module
- AxisFilter.dll
- Format
- Windows x64 PE32+
The boundary sample
With the dead zone set to 80, the comparison at DLL-relative address 0x102D puts 80 inside the dead zone. An input of 81 is the first positive value to survive.
Beyond the threshold, the filter rescales the remaining range and restores the sign. For someone reviewing an input trace, a run of calibrated zeros can include movement on either side of center.
| Raw input | Output | Status |
|---|---|---|
| 80 | 0 | Dead zone |
| 81 | 1 | Active |
| −540 | −500 | Active |
| 1,250 | 1,000 | Clipped |
The outputs follow from the comparison and integer arithmetic in the DLL.
From export to callback
The host uses LoadLibraryExW to open its neighboring DLL, then asks QueryAxisFilter for a version 1 interface. The returned table holds a four-byte version, a four-byte size and an eight-byte function pointer.
The host validates all three fields and places the pointer in R15. The instruction call r15 at EXE-relative address 0x131E reaches the filter at DLL-relative address 0x1000. That call connects the host’s input sample to the arithmetic above.
The table shows outputs predicted from the disassembly. Native Windows execution remains unverified.