Function at 0x14008e150
Capabilities:
Create service
Start service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400b89e8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [0x1400c2410], rax
test rax, rax
jne 0x14008e1c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140042690
mov rcx, rax
mov r9d, ebx
lea r8, str.Failed_to_open_service_control_manager__error__u
xor edx, edx
call fcn.140047680
xor eax, eax
jmp 0x14008e4da
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
xor edi, edi
mov qword [rbp + 0x17], rdi
lea r8, [rbp + 7]
mov edx, 0x104
lea rcx, [rbp + 7]
call fcn.14008d9e0
mov rdx, qword [rbp + 0xf]
sub rdx, qword [rbp + 7]
sar rdx, 1
add rdx, rdx
lea r8, [rbp + 7]
lea rcx, [rbp + 7]
call fcn.14008d9e0
mov r8, qword [rbp + 0xf]
mov rdx, qword [rbp + 7]
sub r8, rdx
sar r8, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
je 0x14008e1e1
test eax, eax
je 0x14008e244
call fcn.140042690
mov rcx, rax
mov r9d, ebx
lea r8, str.Failed_to_get_path_to_driver__error__u
xor edx, edx
call fcn.140047680
mov rbx, rdi
jmp 0x14008e494
mov rax, qword [rbp + 0xf]
mov rdx, qword [rbp + 7]
cmp rax, rdx
je 0x14008e273
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14008e26b
cmp cx, 0x2f
je 0x14008e26b
sub rax, 2
cmp rax, rdx
jne 0x14008e251
jmp 0x14008e273
mov word [rax + 2], di
mov rdx, qword [rbp + 7]
movdqa xmm0, xmmword [0x1400a0650]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], di
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14008e290
lea rcx, [rbp + 0x27]
call fcn.14008e020
nop
mov r8d, select
lea rdx, str.WinRing0x64.sys
lea rcx, [rbp + 0x27]
call fcn.14008dea0
mov r8d, 0xf01ff
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [0x1400c2410]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [0x1400c2418], rax
test rax, rax
je 0x14008e3c6
call fcn.14008e790
test al, al
je 0x14008e43d
mov rcx, qword [0x1400c2418]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [0x1400c2418], rdi
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
lea r8, str.WinRing0_1_2_0
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [0x1400c2410]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [0x1400c2418], rax
test rax, rax
jne 0x14008e397
call fcn.140042690
mov rcx, rax
mov r9d, ebx
lea r8, str.Failed_to_install_WinRing0_driver__error__u
xor edx, edx
call fcn.140047680
mov rax, qword [0x1400c2418]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x14008e3e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x420
je 0x14008e3e7
call fcn.140042690
lea r8, str.Failed_to_start_WinRing0_driver__error__u
jmp 0x14008e430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x424
je 0x14008e306
call fcn.140042690
lea r8, str.Failed_to_open_WinRing0_driver__error__u
jmp 0x14008e430
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
jne 0x14008e440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140042690
lea r8, str.Failed_to_connect_to_WinRing0_driver__error__u
mov r9d, ebx
xor edx, edx
mov rcx, rax
call fcn.140047680
mov rbx, rdi
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x14008e483
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e47e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e47e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008c5c0
movdqa xmm0, xmmword [0x1400a0650]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], di
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14008e4d7
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008e4d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008e4d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008c5c0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14008ccd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret