Public sample driver (WHQL, old). I reversed the IOCTL table statically before attaching WinDbg.
DeviceIoControl codes were METHOD_BUFFERED and the input length was the whole story. When do you actually attach?
Lab / educational. Public binaries and patched classes only. Isolated VM.