Function at 0x140008d30
Capabilities:
Create device object
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
sub rsp, 0x1a0
lea rax, [0x140001080]
mov rbp, rcx
xor r12d, r12d
mov rbx, rdx
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x1b0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140008d8a
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, str.Devicedev_df257bdd_847c_490e_9ef9_1d7dc883d3c0
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rbp + 0x70]
lea rcx, [0x1400086e0]
mov eax, 3
nop dword [rax]
mov qword [r11], rcx
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rcx
add r11, 0x40
dec rax
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
mov qword [r11 - 8], rcx
jne 0x140008db0
mov qword [r11], rcx
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rcx
mov qword [r11 + 0x18], rcx
lea rax, [0x140008660]
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0x68], rax
lea rax, [0x14000ebf0]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9d, 0x22
xor edx, edx
mov rcx, rbp
mov byte [rsp + 0x28], r12b
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400091c9
mov rax, qword [0x14000ebf0]
test rax, rax
jne 0x140008e43
mov eax, 0xc00000e9
jmp 0x1400091c9
or dword [rax + 0x30], 0x10
mov rax, qword [0x14000ebf0]
mov dl, 0x10
mov cl, 1
mov qword [rsp + 0x1b8], rdi
mov dword [rax + 0x98], 1
call qword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
test al, al
je 0x140008e82
lea rdx, str.DosDevicesGlobaldf257bdd_847c_490e_9ef9_1d7dc883d3c0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
jmp 0x140008e94
lea rdx, str.DosDevicesdf257bdd_847c_490e_9ef9_1d7dc883d3c0
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r11, qword [0x14000ebf0]
mov rdx, rbx
and dword [r11 + 0x30], 0xffffff7f
mov rcx, rbp
call fcn.140006820
mov rbx, qword [rbp + 0x28]
lea rdx, str.kbdclass.sys
lea rcx, [rsp + 0x40]
mov rdi, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.SystemRootSystem32driverskbdclass.sys
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax]
cmp qword [rbx + 0x50], r12
je 0x140008f12
cmp qword [rbx + 0x60], r12
je 0x140008f12
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008f1d
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x140008ef0
jmp 0x140008f3d
movzx r8d, word [rbx + 0x5a]
mov rcx, qword [rbx + 0x60]
xor edx, edx
call fcn.14000aca0
movzx r8d, word [rbx + 0x4a]
mov rcx, qword [rbx + 0x50]
xor edx, edx
call fcn.14000aca0
mov rbx, qword [rbp + 0x28]
lea rdx, str.mouclass.sys
lea rcx, [rsp + 0x40]
mov rdi, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.SystemRootSystem32driversmouclass.sys
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp qword [rbx + 0x50], r12
je 0x140008f8a
cmp qword [rbx + 0x60], r12
je 0x140008f8a
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140008f95
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x140008f68
jmp 0x140008fb5
movzx r8d, word [rbx + 0x5a]
mov rcx, qword [rbx + 0x60]
xor edx, edx
call fcn.14000aca0
movzx r8d, word [rbx + 0x4a]
mov rcx, qword [rbx + 0x50]
xor edx, edx
call fcn.14000aca0
xor eax, eax
lea rcx, [rsp + 0x84]
xor edx, edx
mov r8d, 0x118
mov word [rsp + 0x40], r12w
mov dword [rsp + 0x80], 0x11c
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call fcn.14000aca0
lea rdx, str.RtlGetVersion
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test rax, rax
je 0x140009021
lea rcx, [rsp + 0x80]
call rax
test eax, eax
js 0x1400091bf
jmp 0x14000904a
lea r8, [rsp + 0x8c]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x84]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
test al, al
je 0x1400091bf
cmp dword [rsp + 0x8c], 0x1770
jb 0x140009111
lea rax, [0x140006ff0]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140009099
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rbp + 0x28]
lea rdx, str.nsiproxy.sys
lea rcx, [rsp + 0x40]
mov rdi, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.SystemRootSystem32drivers_nsiproxy.sys
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp qword [rbx + 0x50], r12
je 0x1400090e6
cmp qword [rbx + 0x60], r12
je 0x1400090e6
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1400090f1
mov rbx, qword [rbx + 8]
cmp rbx, rdi
jne 0x1400090c4
jmp 0x140009111
movzx r8d, word [rbx + 0x5a]
mov rcx, qword [rbx + 0x60]
xor edx, edx
call fcn.14000aca0
movzx r8d, word [rbx + 0x4a]
mov rcx, qword [rbx + 0x50]
xor edx, edx
call fcn.14000aca0
cmp dword [rsp + 0x8c], 0x2800
jb 0x140009136
lea rcx, str.SystemRootTemp0d47c9bc_7b04_4d81_9ad8_b2e00681de8e
call fcn.140008290
lea rcx, str.SystemRootSystem32drivershidmouse.sys
call fcn.140008290
cmp dword [rsp + 0x8c], 0x2580
jbe 0x140009181
lea rax, [0x140008ac0]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140009181
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rax, [0x140009980]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x1400091bf
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rdi, qword [rsp + 0x1b8]
xor eax, eax
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret