Function at 0x140006600
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
xor r12d, r12d
mov rdi, r9
mov r15, rdx
mov r14, rcx
test r9, r9
je 0x140006635
mov dword [r9], r12d
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x61]
mov qword [rsp + 0x48], r12
lea r13, [0x14001bb78]
mov dword [rsp + 0x40], 0x60
lea r9, [rbp + 0xf]
xorps xmm0, xmm0
mov dword [rbp - 0x61], 0x180016
mov esi, 1
mov qword [rbp - 0x59], r13
mov dword [rsp + 0x38], esi
lea r8, [rbp - 0x31]
mov dword [rsp + 0x30], 7
lea rcx, [rbp - 0x51]
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov ebx, 0x18
mov dword [rbp - 0x31], 0x30
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x40
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jns 0x140006783
mov rdx, r14
lea rcx, [rbp - 0x61]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x61]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x1400066f1
mov r8d, eax
lea rcx, str.Failed_to_load_driver_service__ls._NtLoadDriver:__08X._n
mov rdx, r14
call fcn.140005de0
jmp 0x140006896
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x61]
mov qword [rsp + 0x48], r12
lea r9, [rbp + 0xf]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x31]
mov dword [rsp + 0x38], esi
lea rcx, [rbp - 0x51]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x61], 0x180016
mov qword [rbp - 0x59], r13
mov dword [rbp - 0x31], 0x30
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], 0x40
movdqu xmmword [rbp - 0x11], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
test eax, eax
jns 0x14000677e
mov r8d, eax
lea rdx, [rbp - 0x61]
lea rcx, str.Failed_to_obtain_handle_to_device__wZ:_NtCreateFile:__08X._n
call fcn.140005de0
jmp 0x140006896
mov ebx, 0x18
mov rax, qword gs:[0x30]
mov r13d, 0x23f0
mov rcx, qword [rax + 0x60]
mov eax, 4
movzx r14d, word [rcx + 0x120]
cmp r14w, r13w
cmovae esi, eax
movzx eax, byte [rbp + 0x77]
mov byte [rbp + 0x7f], al
test rdi, rdi
je 0x140006817
mov rcx, qword [rbp - 0x51]
lea rax, [rbp - 0x69]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rbp - 0x49], rax
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x69], r12d
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x39], esi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x140006812
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__READ_failed:_error__08X_n
jmp 0x140006885
mov eax, dword [rbp - 0x69]
mov dword [rdi], eax
mov dword [rsp + 0x48], r12d
lea rcx, [rbp + 0x7f]
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x77]
xorps xmm0, xmm0
mov qword [rbp - 0x49], r15
cmp r14w, r13w
mov dword [rbp - 0x39], esi
movups xmmword [rbp - 1], xmm0
cmovb rax, rcx
mov rcx, qword [rbp - 0x51]
mov qword [rbp - 0x41], rax
xor r9d, r9d
mov eax, 0x18
xor r8d, r8d
mov dword [rsp + 0x38], eax
xor edx, edx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x14000688c
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__WRITE_failed:_error__08X_n
mov edx, eax
call fcn.140005de0
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret