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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140396618]
xor rax, rsp
mov qword [rbp + 8], rax
mov r14, rcx
mov ecx, 0x20
call fcn.140283d20
xor r15d, r15d
mov dword [rax + 1], r15d
mov word [rax + 5], r15w
mov byte [rax + 7], r15b
mov byte [rax], r15b
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [r14], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov rax, qword [r14]
mov qword [rax + 0x10], rcx
mov rax, qword [r14]
cmp qword [rax + 0x10], r15
jne 0x140108a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.e_43_1me_1_37m_msr_____e_0m
cmp eax, 5
jne 0x140108a2a
lea rdx, str._s_e_1_33mto_access_MSR_registers_Administrator_privileges_required.e_0m
lea ecx, [rax - 1]
call fcn.140025dc0
jmp 0x140108b63
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_open_service_control_manager__error__ue_0m
mov ecx, 3
call fcn.140025dc0
jmp 0x140108b63
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov r9, r15
mov qword [rbp - 0x78], r15
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
cmp rdx, rcx
jne 0x140108a75
mov eax, 0x104
jmp 0x140108a81
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 0x140108a99
lea rcx, [rdx + rax*2]
mov qword [rbp - 0x80], rcx
jmp 0x140108ad9
jbe 0x140108ad9
sub r9, rdx
sar r9, 1
cmp rax, r9
jbe 0x140108ab9
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1401092a0
mov rcx, qword [rbp - 0x80]
jmp 0x140108ad4
sub rax, r8
lea rbx, [rcx + rax*2]
mov r8, rbx
sub r8, rcx
xor edx, edx
call fcn.140286a40
mov rcx, rbx
mov qword [rbp - 0x80], rbx
mov rdx, qword [rsp + 0x78]
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 0x140108afe
mov r9, qword [rbp - 0x78]
jmp 0x140108a60
test eax, eax
je 0x140108b8f
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.140025dc0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140108b63
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108b5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109101
call fcn.140283d5c
mov rax, r14
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140283d00
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rax, qword [rbp - 0x80]
add rax, 0xfffffffffffffffe
mov rdx, qword [rsp + 0x78]
cmp rax, rdx
je 0x140108bc5
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140108bbb
cmp cx, 0x2f
je 0x140108bbb
sub rax, 2
cmp rax, rdx
jne 0x140108ba1
jmp 0x140108bc5
mov word [rax + 2], r15w
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x38]
call fcn.140006700
nop
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.WinRing0x64.sys
mov rcx, rax
call fcn.140109120
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140108c4f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108c4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109107
call fcn.140283d5c
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rcx, qword [r14]
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 [r14]
mov qword [rax + 0x18], rcx
mov rax, qword [r14]
cmp qword [rax + 0x18], 0
je 0x140108df4
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.140025dc0
mov rcx, qword [r14]
lea rdx, [rbp - 0x18]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140108ef4
mov dword [rsp + 0x70], r15d
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
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 0x140108de4
mov esi, dword [rsp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov rdi, r15
mov qword [rbp - 0x60], r15
test rsi, rsi
je 0x140108d68
cmp rsi, 0x1000
jb 0x140108d38
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x14010910d
call fcn.140283d20
test rax, rax
je 0x140109113
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140108d43
mov rcx, rsi
call fcn.140283d20
mov rbx, rax
mov qword [rbp - 0x70], rbx
lea rdi, [rbx + rsi]
mov qword [rbp - 0x60], rdi
mov r8, rdi
sub r8, rbx
xor edx, edx
mov rcx, rbx
call fcn.140286a40
mov rax, rdi
mov qword [rbp - 0x68], rax
jmp 0x140108d70
mov rax, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
sub rax, rbx
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, eax
mov rdx, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140108dac
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.140025dc0
nop
test rbx, rbx
je 0x140108de4
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140108dd9
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109113
mov rdx, rdi
mov rcx, rbx
call fcn.140283d5c
cmp dword [rbp - 0x14], 4
jne 0x140108ef4
mov rax, qword [r14]
mov byte [rax], 1
mov rcx, qword [r14]
cmp byte [rcx], 0
jne 0x140109000
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
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 [r14]
mov qword [rax + 0x18], rcx
mov rax, qword [r14]
mov rcx, qword [rax + 0x18]
test rcx, rcx
jne 0x140108f9e
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.140025dc0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140108ede
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140108ed9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401090f5
call fcn.140283d5c
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
jmp 0x140108b22
mov rcx, qword [r14]
call fcn.1401088b0
test al, al
jne 0x140108df4
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140108f44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108f3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109119
call fcn.140283d5c
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140108b63
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108b5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401090fb
jmp 0x140108b5e
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140109000
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140109000
lea r8, str.e_43_1me_1_37m_msr_____e_0m
mov ecx, 3
cmp eax, 2
jne 0x140108fe4
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver:_e_0me_1_31m_WinRing0x64.sys_not_found_e_0m
call fcn.140025dc0
mov rcx, qword [r14]
call fcn.1401088b0
jmp 0x140108e9e
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver__error__ue_0m
call fcn.140025dc0
mov rcx, qword [r14]
call fcn.1401088b0
jmp 0x140108e9e
mov qword [rsp + 0x30], r15
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 [r14]
mov qword [rax + 8], rcx
mov rax, qword [r14]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x140109063
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.140025dc0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14010909f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010909a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401090f5
call fcn.140283d5c
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140108b63
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108b5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140109101
jmp 0x140108b5e
call fcn.14028f5e0
nop
call fcn.14028f5e0
int3
call fcn.14028f5e0
nop
call fcn.14028f5e0
int3
call fcn.140002f40
int3
call fcn.14028f5e0
nop
call fcn.14028f5e0
int3