Function at 0x1400031a0
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 0x1400031d5
mov dword [r9], r12d
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x61]
mov qword [rsp + 0x48], r12
lea r13, [0x14008d228]
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, Ordinal_26
mov dword [rbp - 0x31], gethostbyname
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 0x140003323
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 0x140003291
mov r8d, eax
lea rcx, str.Failed_to_load_driver_service__ls._NtLoadDriver:__08X._n
mov rdx, r14
call fcn.140002970
jmp 0x140003435
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], gethostbyname
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 0x14000331e
mov r8d, eax
lea rdx, [rbp - 0x61]
lea rcx, str.Failed_to_obtain_handle_to_device__wZ:_NtCreateFile:__08X._n
call fcn.140002970
jmp 0x140003435
mov ebx, Ordinal_26
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 0x1400033b7
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 0x1400033b2
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__READ_failed:_error__08X_n
jmp 0x140003424
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]
mov dword [rsp + 0x38], Ordinal_30
xorps xmm0, xmm0
cmp r14w, r13w
mov qword [rbp - 0x49], r15
mov dword [rbp - 0x39], esi
cmovb rax, rcx
xor r9d, r9d
mov rcx, qword [rbp - 0x51]
xor r8d, r8d
mov qword [rbp - 0x41], rax
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
movups xmmword [rbp - 1], xmm0
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
test eax, eax
jns 0x14000342b
lea rcx, str.NtDeviceIoControlFile_IOCTL_GIO_MEMCPY__WRITE_failed:_error__08X_n
mov edx, eax
call fcn.140002970
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