Function at 0x1400d09f4
Capabilities:
Create service
Query service configuration
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [0x140135630], rax
xor esi, esi
test rax, rax
jne 0x1400d0a81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
cmp eax, 5
jne 0x1400d0a66
lea rdx, str.e_0m_se_1_33mto_write_MSR_registers_Administrator_privileges_required.
lea ecx, [rsi + 4]
call fcn.14001bfac
jmp 0x1400d0a7a
mov r9d, eax
lea rdx, str.e_0m_se_0_31mfailed_to_open_service_control_manager__error__u
mov ecx, 3
call fcn.14001bfac
xor eax, eax
jmp 0x1400d0e3f
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
lea r8, [rbp - 0x31]
mov edx, 0x104
lea rcx, [rbp - 0x31]
call fcn.1400cff78
mov rdx, qword [rbp - 0x29]
sub rdx, qword [rbp - 0x31]
sar rdx, 1
add rdx, rdx
lea r8, [rbp - 0x31]
lea rcx, [rbp - 0x31]
call fcn.1400cff78
mov r8, qword [rbp - 0x29]
mov rdx, qword [rbp - 0x31]
sub r8, rdx
sar r8, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400d0a9f
test eax, eax
je 0x1400d0b02
mov r9d, eax
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
lea rdx, str.e_0m_se_0_31mfailed_to_get_path_to_driver__error__u
mov ecx, 3
call fcn.14001bfac
mov rdi, rsi
jmp 0x1400d0cfc
mov rax, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
jmp 0x1400d0b1c
cmp word [rax], 0x5c
je 0x1400d0b23
cmp word [rax], 0x2f
je 0x1400d0b23
sub rax, 2
cmp rax, rbx
jne 0x1400d0b0c
jmp 0x1400d0b2b
mov word [rax + 2], si
mov rbx, qword [rbp - 0x31]
movdqa xmm0, xmmword [0x14010b910]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.1400d0384
nop
lea rcx, str.WinRing0x64.sys
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r8, rax
lea rdx, str.WinRing0x64.sys
lea rcx, [rbp + 7]
call fcn.1400d0308
mov r8d, 0xf01ff
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [0x140135630]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [0x140135638], rax
mov ebx, 3
test rax, rax
je 0x1400d0d4f
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
lea rdx, str.e_0m_se_0_33mservice_e_0me_1_33mWinRing0_1_2_0e_0me_0_33m_is_already_existse_0m
lea ecx, [rbx + 1]
call fcn.14001bfac
lea rdx, [rbp + 0x27]
mov rcx, qword [0x140135638]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400d0d46
cmp dword [0x14012c7a4], esi
jbe 0x1400d0c8f
lea r9, [rbp - 0x35]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x140135638]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400d0c8f
mov edx, dword [rbp - 0x35]
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.14002e8f4
nop
mov r8, qword [rbp - 0x11]
mov rdi, qword [rbp - 0x19]
sub r8, rdi
lea r9, [rbp - 0x35]
mov rdx, rdi
mov rcx, qword [0x140135638]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1400d0c53
mov r9, qword [rdi + 0x10]
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
lea rdx, str.e_0m_se_0_33mservice_path:_e_0me_1_33m__s_e_0m
lea ecx, [rbx + 3]
call fcn.14001bfac
nop
test rdi, rdi
je 0x1400d0c8f
mov rdx, qword [rbp - 9]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400d0c87
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d0c87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400f2e1c
cmp dword [rbp + 0x2b], 4
jne 0x1400d0d46
mov byte [0x140135628], 1
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
jne 0x1400d0cf2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.e_0m_se_0_31mfailed_to_connect_to_WinRing0_driver__error__u
mov r9d, eax
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
mov ecx, ebx
call fcn.14001bfac
mov rdi, rsi
lea rcx, [rbp + 7]
call fcn.140061b38
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400d0e3c
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d0e37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d0e37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400d0e64
test al, al
je 0x1400d0cef
cmp byte [0x140135628], sil
jne 0x1400d0ca0
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
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 [0x140135630]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [0x140135638], rax
test rax, rax
jne 0x1400d0ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.e_0m_se_0_31mfailed_to_install_WinRing0_driver__error__u
jmp 0x1400d0cde
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400d0ca0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400d0ca0
mov r8, qword [str.e_43_1me_1_37m_msr_e_0m]
mov ecx, ebx
cmp eax, 2
jne 0x1400d0e1e
lea rdx, str.e_0m_se_0_31mfailed_to_start_WinRing0_driver:_e_0me_1_31m_WinRing0x64.sys_not_found_e_0m
call fcn.14001bfac
jmp 0x1400d0e2d
mov r9d, eax
lea rdx, str.e_0m_se_0_31mfailed_to_start_WinRing0_driver__error__u
call fcn.14001bfac
call fcn.1400d0e64
jmp 0x1400d0cef
call fcn.1400f2e1c
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400f3170
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret