Function at 0x140083440
Capabilities:
Install driver

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x14030ff40]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r12d, r12d
mov dword [rbp - 0x60], r8d
mov rdi, r9
mov r14, rdx
test r9, r9
je 0x140083479
mov dword [r9], r12d
mov dword [rsp + 0x50], r12d
lea rax, [0x1401feb98]
mov qword [rsp + 0x48], r12
lea r9, [rbp - 0x20]
mov dword [rsp + 0x40], 0x60
lea r8, [rsp + 0x68]
mov qword [rbp - 0x50], rax
lea rcx, [rsp + 0x60]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x140], rbx
xorps xmm0, xmm0
mov dword [rbp - 0x58], 0x180016
mov esi, 1
mov dword [rsp + 0x68], Ordinal_50
mov dword [rsp + 0x38], esi
mov edx, 0x100000
mov dword [rsp + 0x30], 7
mov r13d, Ordinal_27
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x40
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
jns 0x14008355d
lea rdx, [0x14031a9e0]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov ebx, eax
test eax, eax
jns 0x140083547
mov r8d, eax
lea rdx, [0x14031a9e0]
lea rcx, str.Failed_to_load_driver_service__ls._NtLoadDriver:__08X._n
call fcn.140082ae0
jmp 0x140083684
movzx edx, sil
lea rcx, [rsp + 0x60]
call fcn.140083360
test eax, eax
js 0x140083686
mov rax, qword gs:[0x30]
mov qword [rsp + 0x100], r15
mov rcx, qword [rax + 0x60]
mov eax, 4
movzx r15d, word [rcx + 0x120]
mov ecx, 0x23f0
cmp r15w, cx
cmovae esi, eax
movzx eax, byte [rbp - 0x60]
mov byte [rbp - 0x68], al
test rdi, rdi
je 0x1400835fa
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x64]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rbp - 0x48], rax
xor edx, edx
mov dword [rsp + 0x38], r13d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x64], r12d
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], esi
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x1400835f5
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__READ_failed:_error__08X_n
jmp 0x14008366a
mov eax, dword [rbp - 0x64]
mov dword [rdi], eax
mov dword [rsp + 0x48], r12d
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x60]
mov dword [rsp + 0x38], r13d
mov edx, 0x23f0
cmp r15w, dx
mov qword [rbp - 0x48], r14
xorps xmm0, xmm0
mov dword [rbp - 0x38], esi
cmovb rax, rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rbp - 0x40], rax
xor edx, edx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0xc3502808
mov qword [rsp + 0x20], rax
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x140083671
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__WRITE_failed:_error__08X_n
mov edx, eax
call fcn.140082ae0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0x100]
mov eax, ebx
mov rbx, qword [rsp + 0x140]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401cb920
add rsp, 0x108
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret