Function at 0x18005c5e0
Capabilities:
Create service
Start service

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800aad48]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [0x1800b02d0], rax
test rax, rax
jne 0x18005c659
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1800393a0
mov rcx, rax
mov r9d, ebx
lea r8, str.Failed_to_open_service_control_manager__error__u
xor edx, edx
call fcn.180047d30
xor eax, eax
jmp 0x18005c9f3
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
xor r14d, r14d
mov qword [rbp + 7], r14
lea r8, [rbp - 9]
mov edx, 0x104
lea rcx, [rbp - 9]
call fcn.18005bf30
nop word [rax + rax]
mov rdx, qword [rbp - 1]
sub rdx, qword [rbp - 9]
sar rdx, 1
add rdx, rdx
lea r8, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.18005bf30
mov r8, qword [rbp - 1]
mov rdx, qword [rbp - 9]
sub r8, rdx
sar r8, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
je 0x18005c680
movabs r15, 0x7fffffffffffffff
test eax, eax
je 0x18005c6ed
call fcn.1800393a0
mov rcx, rax
mov r9d, esi
lea r8, str.Failed_to_get_path_to_driver__error__u
xor edx, edx
call fcn.180047d30
mov rbx, r14
jmp 0x18005c9a1
mov rax, qword [rbp - 1]
mov rdx, qword [rbp - 9]
cmp rax, rdx
je 0x18005c723
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18005c71a
cmp cx, 0x2f
je 0x18005c71a
sub rax, 2
cmp rax, rdx
jne 0x18005c700
jmp 0x18005c723
mov word [rax + 2], r14w
mov rdx, qword [rbp - 9]
movdqa xmm0, xmmword [0x180091d30]
movdqu xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x17], r14w
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18005c740
lea rcx, [rbp + 0x17]
call fcn.18005c450
nop
mov rcx, qword [rbp + 0x27]
mov rdx, qword [rbp + 0x2f]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x18005c79b
lea rdi, [rcx + 0xf]
mov qword [rbp + 0x27], rdi
lea rbx, [rbp + 0x17]
cmp rdx, 8
cmovae rbx, qword [rbp + 0x17]
lea rcx, [rbx + rcx*2]
mov r8d, 0x1e
lea rdx, str.WinRing0x64.sys
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r14w
jmp 0x18005c7bd
xor eax, eax
mov qword [rsp + 0x20], 0xf
lea r9, str.WinRing0x64.sys
movzx r8d, al
lea edx, [rax + 0xf]
lea rcx, [rbp + 0x17]
call fcn.18005bdc0
mov r8d, 0xf01ff
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [0x1800b02d0]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [0x1800b02d8], rax
test rax, rax
je 0x18005c806
call fcn.18005ccc0
test al, al
je 0x18005c93f
mov rcx, qword [0x1800b02d8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [0x1800b02d8], r14
jmp 0x18005c829
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x424
je 0x18005c829
call fcn.1800393a0
mov r9d, esi
lea r8, str.Failed_to_open_WinRing0_driver__error__u
jmp 0x18005c935
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rax, qword [rbp + 0x17]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
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 [0x1800b02d0]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [0x1800b02d8], rax
test rax, rax
jne 0x18005c8ba
call fcn.1800393a0
mov rcx, rax
mov r9d, esi
lea r8, str.Failed_to_install_WinRing0_driver__error__u
xor edx, edx
call fcn.180047d30
mov rax, qword [0x1800b02d8]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x18005c8e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x420
je 0x18005c8e9
call fcn.1800393a0
lea r8, str.Failed_to_start_WinRing0_driver__error__u
jmp 0x18005c932
mov qword [rsp + 0x30], r14
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 0x18005c942
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1800393a0
lea r8, str.Failed_to_connect_to_WinRing0_driver__error__u
mov r9d, ebx
xor edx, edx
mov rcx, rax
call fcn.180047d30
mov rbx, r14
mov rax, qword [rbp + 0x2f]
cmp rax, 8
jb 0x18005c98f
inc rax
mov rcx, qword [rbp + 0x17]
cmp rax, r15
ja 0x18005c988
add rax, rax
cmp rax, 0x1000
jb 0x18005c981
test cl, 0x1f
jne 0x18005c988
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18005c988
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x18005c988
mov rcx, rax
call fcn.18005a7bc
jmp 0x18005c98f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movdqa xmm0, xmmword [0x180091d30]
movdqu xmmword [rbp + 0x27], xmm0
mov word [rbp + 0x17], r14w
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x18005c9f0
mov rax, qword [rbp + 7]
sub rax, rcx
sar rax, 1
cmp rax, r15
ja 0x18005c9e9
add rax, rax
cmp rax, 0x1000
jb 0x18005c9e2
test cl, 0x1f
jne 0x18005c9e9
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18005c9e9
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x18005c9e9
mov rcx, rax
call fcn.18005a7bc
jmp 0x18005c9f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18005aca0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret