Function at 0x180001020
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x30]
sub rsp, 0x130
movups xmm0, xmmword [str.DeviceMyfault]
mov rsi, rdx
mov rbx, rcx
movups xmm1, xmmword [0x180003180]
lea rdx, [rbp + 8]
mov qword [rbp + 0x68], 0
movups xmmword [rbp + 8], xmm0
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str.DosDevicesMyfault]
movups xmmword [rbp + 0x18], xmm1
movups xmm1, xmmword [0x1800031a0]
movups xmmword [rbp - 0x20], xmm0
movsd xmm0, qword [0x1800031b0]
movsd qword [rbp], xmm0
movups xmmword [rbp - 0x10], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 0x68]
mov r9d, 0x8336
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 1
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
js 0x180001105
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
lea rax, [0x180001730]
mov qword [rbx + 0xe0], rax
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x70], rax
lea rax, [0x180001890]
mov qword [rbx + 0x68], rax
test edi, edi
jns 0x180001114
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x180001114
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
movzx edx, word [rsi]
mov ecx, 1
add rdx, 2
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x180001138
mov eax, 0xc000009a
jmp 0x180001276
movzx eax, word [rsi]
xor edx, edx
add ax, 2
mov rcx, rbx
movzx r8d, ax
call fcn.180002300
movzx r8d, word [rsi]
mov rcx, rbx
mov rdx, qword [rsi + 8]
call fcn.180002040
xorps xmm0, xmm0
mov dword [rbp + 0x60], 3
movups xmmword [rbp - 0x80], xmm0
lea rax, str.Start
mov dword [rbp + 0x58], 3
mov qword [rbp - 0x80], rax
lea rdx, str.RtlQueryRegistryValuesEx
movups xmmword [rbp - 0x70], xmm0
lea rax, [rbp + 0x58]
mov dword [rbp - 0x70], 4
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x60]
lea rax, [rbp + 0x60]
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x78], 0x20
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x60], 4
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], 0
test rax, rax
mov rdx, rbx
cmove rax, qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
xor r9d, r9d
xor ecx, ecx
call rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [rbp + 0x58], 3
je 0x18000124c
xor r8d, r8d
lea rdx, [0x180001f20]
lea rcx, [0x1800040a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
lea rcx, [0x180004060]
call qword [sym.imp.ntoskrnl.exe_KeInitializeTimer]
lea r8, [0x1800040a0]
mov rdx, 0xfffffffffd050f80
lea rcx, [0x180004060]
call qword [sym.imp.ntoskrnl.exe_KeSetTimer]
lea r9, str.Myfault_Color_Switcher
mov byte [0x1800041ec], 0
mov r8d, 1
lea rdx, [0x180001900]
lea rcx, [0x1800041c0]
call qword [sym.imp.ntoskrnl.exe_KeRegisterBugCheckReasonCallback]
mov eax, edi
mov rbx, qword [rsp + 0x150]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret