Cpuz143-x64.sys
// Load driver via service SC_HANDLE hScm = OpenSCManager(...); CreateService(..., "cpuz143", ..., cpuz143.sys); StartService(...); // Send IOCTL DeviceIoControl(hDevice, 0x80002008, &input, ...); This paper is for educational and defensive research only. Do not deploy on production systems without authorization.
| IOCTL Code | Legitimate use | |------------|------------------------------------------| | 0x80002004 | Read MSR (Model Specific Register) | | 0x80002008 | Write MSR (only allowed if MSR is "safe")| | 0x80002010 | Read PCI config space (bus/dev/func) | | 0x80002014 | Map physical memory into user-mode | | 0x80002018 | Read physical memory (via mapping) | cpuz143-x64.sys
; cpuz143-x64.sys+0x2a4f cmp dword ptr [rdi+0Ch], 0DEADBEEFh jz short skip_check call msr_whitelist_check test al, al jz access_denied skip_check: wrmsr // Load driver via service SC_HANDLE hScm = OpenSCManager(
