Function at 0x140001f30
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 - 0x40]
sub rsp, 0x140
xor r12d, r12d
mov rdi, r9
mov r15, rdx
test r9, r9
je 0x140001f67
mov dword [r9], r12d
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], r12
lea r14, str.DeviceGIO
mov dword [rsp + 0x40], 0x60
lea r9, [rbp + 0x20]
xorps xmm0, xmm0
mov dword [rbp - 0x70], 0x180016
mov esi, 1
mov qword [rbp - 0x68], r14
mov dword [rsp + 0x38], esi
lea r8, [rbp - 0x40]
mov dword [rsp + 0x30], 7
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov ebx, 0x18
mov dword [rbp - 0x40], 0x30
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x40
movdqu xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jns 0x1400020bf
lea rdx, [0x140005210]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x14000202c
mov r8d, eax
lea rdx, [0x140005210]
lea rcx, str.Failed_to_load_driver_service__ls._NtLoadDriver:__08X._n
call fcn.140001000
jmp 0x1400021f8
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], r12
lea r9, [rbp + 0x30]
mov dword [rsp + 0x40], 0x60
lea r8, [rbp - 0x10]
mov dword [rsp + 0x38], esi
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 7
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r12
mov dword [rbp - 0x80], 0x180016
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x10], 0x30
mov qword [rbp - 8], r12
mov qword [rbp], rax
mov dword [rbp + 8], 0x40
movdqu xmmword [rbp + 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov ebx, eax
test eax, eax
jns 0x1400020ba
mov r8d, eax
lea rdx, [rbp - 0x80]
lea rcx, str.Failed_to_obtain_handle_to_device__wZ:_NtCreateFile:__08X._n
call fcn.140001000
jmp 0x1400021f8
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 + 0x90]
mov byte [rbp + 0x80], al
test rdi, rdi
je 0x14000216a
mov rcx, qword [rsp + 0x60]
lea rax, [rbp + 0x98]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x98], r12d
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], esi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x140002162
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__READ_failed:_error__08X_n
jmp 0x1400021e6
mov eax, dword [rbp + 0x98]
mov dword [rdi], eax
mov dword [rsp + 0x48], r12d
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x90]
cmp r14w, r13w
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x78], esi
cmovb rax, rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
mov qword [rbp - 0x60], rax
xor edx, edx
mov qword [rbp - 0x58], rax
mov eax, 0x18
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x1400021ed
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__WRITE_failed:_error__08X_n
mov edx, eax
call fcn.140001000
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret