Function at 0x140002710
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14013d010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400027b0
mov r8d, 0x10020
lea rdx, str.mhyprotect
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400027a7
xor eax, eax
lea r8, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov rcx, rdi
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x50], xmm0
lea edx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000279e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140003cf0
test al, al
jne 0x1400027ca
lea rcx, str.____failed_to_initialize_vulnerable_driver_n
call fcn.1400026b0
jmp 0x140002964
mov edx, 0x10
mov dword [rsp + 0x74], 0xbaebaeec
movabs rax, 0xebbaaef4fff89042
mov qword [rsp + 0x78], rax
lea ecx, [rdx - 0xf]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002953
mov rcx, qword [0x14013e420]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9d, 0x10
mov dword [rsp + 0x28], 0x10
mov edx, 0x80034000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
mov eax, dword [rsp + 0x40]
setne dil
test eax, eax
je 0x140002856
mov r8d, eax
lea rcx, [rsp + 0x70]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
je 0x140002953
mov qword [rsp + 0x58], 0xb
lea rax, str.mhyprot.sys
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140004ee0
mov rdi, rax
test rax, rax
je 0x140002953
mov edx, 0xc
lea ecx, [rdx - 0xb]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x1400028e7
lea rcx, [rdi + 0xa0e8]
mov dword [rax + 8], 8
mov qword [rax], rcx
mov r8d, 0xc
mov ecx, 0x83064000
mov rdx, rax
call fcn.1400042c0
test al, al
je 0x1400028e7
cmp dword [rbx], 0
jne 0x1400028e7
mov rdi, qword [rbx + 4]
jmp 0x1400028ec
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140002953
mov edx, 0x9c4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x140002953
mov r8d, 0x9c4
mov qword [rax], rdi
mov rdx, rax
mov dword [rax + 8], 0x9c0
mov ecx, 0x83064000
call fcn.1400042c0
test al, al
je 0x140002953
cmp dword [rbx], 0
jne 0x140002953
lea rcx, [0x14013da60]
mov r8d, 0x9c0
lea rdx, [rbx + 4]
call sub.VCRUNTIME140.dll_memcpy
call fcn.1400029f0
call fcn.1400041e0
xor eax, eax
jmp 0x140002969
lea rcx, str.____failed_to_initialize_driver_properly_n
call fcn.1400026b0
call fcn.1400041e0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140005710
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret