Function at 0x1401a2bd0
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14051f680]
xor rax, rsp
mov qword [rbp + 8], rax
mov r15, rcx
xor r13d, r13d
lea ecx, [r13 + 0x20]
call fcn.14036d370
mov dword [rax + 1], r13d
mov word [rax + 5], r13w
mov byte [rax + 7], r13b
mov byte [rax], r13b
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [r15], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov rax, qword [r15]
mov qword [rax + 0x10], rcx
mov rax, qword [r15]
cmp qword [rax + 0x10], r13
jne 0x1401a2c96
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.e_43_1me_1_37m_msr_____e_0m
cmp eax, 5
jne 0x1401a2c7d
lea rdx, str._s_e_1_33mto_access_MSR_registers_Administrator_privileges_required.e_0m
lea ecx, [rax - 1]
call fcn.140026b60
jmp 0x1401a2db0
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_open_service_control_manager__error__ue_0m
mov ecx, 3
call fcn.140026b60
jmp 0x1401a2db0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov rsi, r13
mov qword [rbp - 0x78], r13
mov r14, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
nop
cmp rdi, r14
jne 0x1401a2cbc
mov ecx, 0x104
jmp 0x1401a2cc9
mov rax, r14
sub rax, rdi
sar rax, 1
lea rcx, [rax + rax]
mov rdx, r14
sub rdx, rdi
sar rdx, 1
cmp rcx, rdx
jae 0x1401a2ce1
lea r14, [rdi + rcx*2]
mov qword [rbp - 0x80], r14
jmp 0x1401a2d2b
jbe 0x1401a2d2b
mov rax, rsi
sub rax, rdi
sar rax, 1
cmp rcx, rax
jbe 0x1401a2d0d
mov rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.1401a3410
mov rsi, qword [rbp - 0x78]
mov r14, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
jmp 0x1401a2d2b
sub rcx, rdx
lea rbx, [r14 + rcx*2]
mov r8, rbx
sub r8, r14
xor edx, edx
mov rcx, r14
call fcn.14039f8d0
mov r14, rbx
mov qword [rbp - 0x80], rbx
mov r8, r14
sub r8, rdi
sar r8, 1
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1401a2cb0
test eax, eax
je 0x1401a2de0
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.140026b60
nop
test rdi, rdi
je 0x1401a2db0
sub rsi, rdi
sar rsi, 1
add rsi, rsi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1401a2da5
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33ef
mov rdx, rsi
mov rcx, rdi
call fcn.14036d3ac
mov rax, r15
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14036d350
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, [r14 - 2]
cmp rax, rdi
je 0x1401a2e0f
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1401a2e0a
cmp cx, 0x2f
je 0x1401a2e0a
sub rax, 2
cmp rax, rdi
jne 0x1401a2df0
jmp 0x1401a2e0f
mov word [rax + 2], r13w
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140007c80
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x1401a2e63
lea r12, [rcx + 0xf]
mov qword [rbx + 0x10], r12
mov r14, rbx
cmp rdx, 7
jbe 0x1401a2e46
mov r14, qword [rbx]
lea rcx, [r14 + rcx*2]
mov r8d, 0x1e
lea rdx, str.WinRing0x64.sys
call fcn.14039f230
mov word [r14 + r12*2], r13w
jmp 0x1401a2e83
mov qword [rsp + 0x20], reloc.WS2_32.dll_ntohs
lea r9, str.WinRing0x64.sys
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call fcn.1401a3540
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x1401a2ef1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a2eec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33f5
call fcn.14036d3ac
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r13w
mov rcx, qword [r15]
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 [r15]
mov qword [rax + 0x18], rcx
mov rax, qword [r15]
cmp qword [rax + 0x18], 0
je 0x1401a3094
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.140026b60
mov rcx, qword [r15]
lea rdx, [rbp - 0x18]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1401a314d
mov dword [rsp + 0x70], r13d
mov rcx, qword [r15]
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 0x1401a3084
mov r13d, dword [rsp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
xor r14d, r14d
mov qword [rbp - 0x60], r14
test r13, r13
je 0x1401a3008
cmp r13, 0x1000
jb 0x1401a2fdb
lea rcx, [r13 + 0x27]
cmp rcx, r13
jbe 0x1401a33fb
call fcn.14036d370
test rax, rax
je 0x1401a3401
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1401a2fe6
mov rcx, r13
call fcn.14036d370
mov rbx, rax
mov qword [rbp - 0x70], rbx
lea r14, [rbx + r13]
mov qword [rbp - 0x60], r14
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.14039f8d0
mov r8, r14
mov qword [rbp - 0x68], r14
jmp 0x1401a3010
mov r8, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
sub r8, rbx
mov rcx, qword [r15]
lea r9, [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x1401a3049
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.140026b60
nop
test rbx, rbx
je 0x1401a3081
sub r14, rbx
mov rax, rbx
cmp r14, 0x1000
jb 0x1401a3076
add r14, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a3401
mov rdx, r14
mov rcx, rbx
call fcn.14036d3ac
xor r13d, r13d
cmp dword [rbp - 0x14], 4
jne 0x1401a314d
mov rax, qword [r15]
mov byte [rax], 1
mov qword [rsp + 0x30], r13
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 [r15]
mov qword [rax + 8], rcx
mov rcx, qword [r15]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1401a31ee
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.140026b60
mov rax, qword [r15]
mov byte [rax], 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1401a3137
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1401a3132
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33e3
call fcn.14036d3ac
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r13w
jmp 0x1401a2d72
mov rcx, qword [r15]
call fcn.1401a2b00
test al, al
jne 0x1401a3094
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1401a319d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a3198
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a3407
call fcn.14036d3ac
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r13w
test rdi, rdi
je 0x1401a2db0
sub rsi, rdi
sar rsi, 1
add rsi, rsi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1401a2da5
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33e9
jmp 0x1401a2da5
cmp byte [rcx], 0
jne 0x1401a32f7
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rax, qword [rbp - 0x58]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
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 [r15]
mov qword [rax + 0x18], rcx
mov rax, qword [r15]
mov rcx, qword [rax + 0x18]
test rcx, rcx
jne 0x1401a3295
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.140026b60
jmp 0x1401a30f7
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1401a32f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1401a32f7
lea r8, str.e_43_1me_1_37m_msr_____e_0m
mov ecx, 3
cmp eax, 2
jne 0x1401a32db
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver:_e_0me_1_31m_WinRing0x64.sys_not_found_e_0m
call fcn.140026b60
mov rcx, qword [r15]
call fcn.1401a2b00
jmp 0x1401a30f7
mov r9d, eax
lea rdx, str._s_e_0_31mfailed_to_start_WinRing0_driver__error__ue_0m
call fcn.140026b60
mov rcx, qword [r15]
call fcn.1401a2b00
jmp 0x1401a30f7
mov qword [rsp + 0x30], r13
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 [r15]
mov qword [rax + 8], rcx
mov rax, qword [r15]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x1401a335a
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.140026b60
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x1401a3396
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401a3391
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33e3
call fcn.14036d3ac
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r13w
test rdi, rdi
je 0x1401a2db0
sub rsi, rdi
sar rsi, 1
add rsi, rsi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1401a2da5
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401a33ef
jmp 0x1401a2da5
call fcn.1403749fc
nop
call fcn.1403749fc
int3
call fcn.1403749fc
nop
call fcn.1403749fc
int3
call fcn.140004280
int3
call fcn.1403749fc
nop
call fcn.1403749fc
int3