Function at 0x140001f40
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
xor r12d, r12d
mov rdi, r9
mov r15, rdx
test r9, r9
je 0x140001f77
mov dword [r9], r12d
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x59]
mov qword [rsp + 0x48], r12
lea r14, [0x1400036f0]
mov dword [rsp + 0x40], 0x60
lea r9, [rbp + 0x17]
xorps xmm0, xmm0
mov dword [rbp - 0x59], 0x180016
mov esi, 1
mov qword [rbp - 0x51], r14
mov dword [rsp + 0x38], esi
lea r8, [rbp - 0x29]
mov dword [rsp + 0x30], 7
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov ebx, 0x18
mov dword [rbp - 0x29], 0x30
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x40
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jns 0x1400020cd
lea rdx, [0x14000b860]
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x59]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x14000203b
mov r8d, eax
lea rdx, [0x14000b860]
lea rcx, str.Failed_to_load_driver_service__ls._NtLoadDriver:__08X._n
call fcn.140001000
jmp 0x1400021e0
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x59]
mov qword [rsp + 0x48], r12
lea r9, [rbp + 0x17]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x29]
mov dword [rsp + 0x38], esi
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x59], 0x180016
mov qword [rbp - 0x51], r14
mov dword [rbp - 0x29], 0x30
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], 0x40
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
test eax, eax
jns 0x1400020c8
mov r8d, eax
lea rdx, [rbp - 0x59]
lea rcx, str.Failed_to_obtain_handle_to_device__wZ:_NtCreateFile:__08X._n
call fcn.140001000
jmp 0x1400021e0
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 + 0x67], al
test rdi, rdi
je 0x140002161
mov rcx, qword [rbp - 0x49]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rbp - 0x41], rax
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x7f], r12d
mov qword [rbp - 0x39], r15
mov dword [rbp - 0x31], esi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x14000215c
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__READ_failed:_error__08X_n
jmp 0x1400021cf
mov eax, dword [rbp + 0x7f]
mov dword [rdi], eax
mov dword [rsp + 0x48], r12d
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x77]
xorps xmm0, xmm0
mov qword [rbp - 0x41], r15
cmp r14w, r13w
mov dword [rbp - 0x31], esi
movups xmmword [rbp + 7], xmm0
cmovb rax, rcx
mov rcx, qword [rbp - 0x49]
mov qword [rbp - 0x39], rax
xor r9d, r9d
mov eax, 0x18
xor r8d, r8d
mov dword [rsp + 0x38], eax
xor edx, edx
lea rax, [rbp - 0x41]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x1400021d6
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__WRITE_failed:_error__08X_n
mov edx, eax
call fcn.140001000
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret