About TESTSIGNING mode: https://docs.microsoft.com/en-us/windows-hardware/drivers/install/the-testsigning-boot-configuration-option
- Run cmd.exe with administrator rights and enter: bcdedit.exe /set TESTSIGNING ON
- Reboot your PC
- In user-mode app load CI.dll with LoadLibraryEx and get kernel address of g_CiOptions flag
- Create shared memory buffer with information for kernel driver
- Load the driver to kernel with service or ZwLoadDriver
- Driver patch g_CiOptions to off TESTSIGNING mode
- In your user-mode app, run bcdedit.exe /set TESTSIGNING OFF
- Clear traces in registry