There ain't msvcrt.dll in kernel mode, as far as I can remember.
If you have the DDK, try first to build the driver with
the ASM file using the standard rules for `*.asm` files
via the SOURCES file.
When the driver correctly builds and loads, you can then analyze
and attempt to replicate the result using other unsupported build mechanism.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at