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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14049e608]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, rcx
mov ecx, 0x20
call fcn.1403195d4
xor r12d, r12d
mov dword [rax + 1], r12d
mov word [rax + 5], r12w
mov byte [rax + 7], r12b
mov byte [rax], r12b
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov qword [rsi], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x10], rcx
mov rax, qword [rsi]
cmp qword [rax + 0x10], r12
jne 0x140159f59
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.e_43_1me_1_37m_msr_____e_0m
cmp eax, 5
jne 0x140159f40
lea rdx, str._s_e_1_33mto_access_MSR_registers_Administrator_privileges_required.e_0m
lea ecx, [rax - 1]
call fcn.1400265c0
jmp 0x14015a077
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_open_service_control_manager__error__ue_0m
mov ecx, 3
call fcn.1400265c0
jmp 0x14015a077
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov r9, r12
mov qword [rbp - 0x80], r12
nop dword [rax]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
cmp rdx, rcx
jne 0x140159f86
mov eax, 0x104
jmp 0x140159f92
mov rax, rcx
sub rax, rdx
sar rax, 1
add rax, rax
mov r8, rcx
sub r8, rdx
sar r8, 1
cmp rax, r8
jae 0x140159fab
lea rcx, [rdx + rax*2]
mov qword [rsp + 0x78], rcx
jmp 0x140159fed
jbe 0x140159fed
sub r9, rdx
sar r9, 1
cmp rax, r9
jbe 0x140159fcc
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14015a750
mov rcx, qword [rsp + 0x78]
jmp 0x140159fe8
sub rax, r8
lea rbx, [rcx + rax*2]
mov r8, rbx
sub r8, rcx
xor edx, edx
call fcn.140338240
mov rcx, rbx
mov qword [rsp + 0x78], rbx
mov rdx, qword [rsp + 0x70]
sub rcx, rdx
sar rcx, 1
mov r8d, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14015a012
mov r9, qword [rbp - 0x80]
jmp 0x140159f70
test eax, eax
je 0x14015a0a2
mov r9d, eax
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_31mfailed_to_get_path_to_driver__error__ue_0m
mov ecx, 3
call fcn.1400265c0
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14015a077
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a072
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a698
call fcn.140319610
mov rax, rsi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1403195b0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x78]
add rax, 0xfffffffffffffffe
mov rdx, qword [rsp + 0x70]
cmp rax, rdx
je 0x14015a0d9
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14015a0cf
cmp cx, 0x2f
je 0x14015a0cf
sub rax, 2
cmp rax, rdx
jne 0x14015a0b5
jmp 0x14015a0d9
mov word [rax + 2], r12w
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140007a40
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x14015a12a
lea r14, [rcx + 0xf]
mov qword [rbx + 0x10], r14
mov rdi, rbx
cmp rdx, 8
jb 0x14015a10d
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1e
lea rdx, str.WinRing0x64.sys
call fcn.140337e30
mov word [rdi + r14*2], r12w
jmp 0x14015a14c
mov qword [rsp + 0x20], reloc.WS2_32.dll_ntohs
lea r9, str.WinRing0x64.sys
xor r8d, r8d
lea edx, [r8 + 0xf]
mov rcx, rbx
call fcn.14015a870
mov rbx, rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14015a1b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a1ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a69e
call fcn.140319610
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov rcx, qword [rsi]
mov r8d, 0xf01ff
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x18], rcx
mov rax, qword [rsi]
cmp qword [rax + 0x18], 0
je 0x14015a32b
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_33mservice_e_0me_1_33mWinRing0_1_2_0e_0me_0_33m_already_existse_0m
mov ecx, 4
call fcn.1400265c0
mov rcx, qword [rsi]
lea rdx, [rbp - 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14015a3e4
mov dword [rbp - 0x78], r12d
mov rcx, qword [rsi]
lea r9, [rbp - 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14015a31b
mov r14d, dword [rbp - 0x78]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov rdi, r12
mov r15, r12
test r14, r14
je 0x14015a29e
mov ecx, r14d
call fcn.140003d40
mov rbx, rax
mov qword [rbp - 0x70], rax
lea rdi, [r14 + rax]
mov qword [rbp - 0x60], rdi
mov r8, rdi
sub r8, rax
xor edx, edx
mov rcx, rax
call fcn.140338240
mov rax, rdi
mov qword [rbp - 0x68], rax
mov r15, rdi
jmp 0x14015a2a6
mov rax, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
sub rax, rbx
mov rcx, qword [rsi]
lea r9, [rbp - 0x78]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x14015a2e3
mov r9, qword [rbx + 0x10]
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_33mservice_path:_e_0me_1_33m__s_e_0m
mov ecx, 6
call fcn.1400265c0
mov rdi, r15
test rbx, rbx
je 0x14015a31b
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14015a310
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a6a4
mov rdx, rdi
mov rcx, rbx
call fcn.140319610
cmp dword [rbp - 0xc], 4
jne 0x14015a3e4
mov rax, qword [rsi]
mov byte [rax], 1
mov qword [rsp + 0x30], r12
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 rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rcx, qword [rsi]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14015a48e
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_33mservice_e_0me_1_33mWinRing0_1_2_0e_0me_0_33m_already_exists__but_with_a_different_service_namee_0m
mov ecx, 4
call fcn.1400265c0
mov rax, qword [rsi]
mov byte [rax], 1
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14015a3ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14015a3c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a68c
call fcn.140319610
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
jmp 0x14015a036
mov rcx, qword [rsi]
call fcn.140159dc0
test al, al
jne 0x14015a32b
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14015a434
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a42f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a6aa
call fcn.140319610
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14015a077
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a072
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a692
jmp 0x14015a072
cmp byte [rcx], 0
jne 0x14015a597
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
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 [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x18], rcx
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
jne 0x14015a535
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_31mfailed_to_install_WinRing0_driver__error__ue_0m
mov ecx, 3
call fcn.1400265c0
jmp 0x14015a38e
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14015a597
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14015a597
lea r8, str.e_43_1me_1_37m_msr_____e_0m
mov ecx, 3
cmp eax, 2
jne 0x14015a57b
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver:_e_0me_1_31m_WinRing0x64.sys_not_found_e_0m
call fcn.1400265c0
mov rcx, qword [rsi]
call fcn.140159dc0
jmp 0x14015a38e
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver__error__ue_0m
call fcn.1400265c0
mov rcx, qword [rsi]
call fcn.140159dc0
jmp 0x14015a38e
mov qword [rsp + 0x30], r12
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 rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rax, qword [rsi]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x14015a5fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.e_43_1me_1_37m_msr_____e_0m
lea rdx, str._s_e_0_31mfailed_to_connect_to_WinRing0_driver__error__ue_0m
mov ecx, 3
call fcn.1400265c0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14015a636
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a631
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a68c
call fcn.140319610
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14015a077
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14015a072
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14015a698
jmp 0x14015a072
call fcn.14033b11c
nop
call fcn.14033b11c
int3
call fcn.14033b11c
nop
call fcn.14033b11c
int3
call fcn.14033b11c
nop
call fcn.14033b11c
int3