Function at 0x14000b5d0
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140050088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x20], rdx
xor eax, eax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
lea rcx, [r11 - 0x48]
call fcn.140013c70
nop
lea rcx, [rsp + 0x30]
call fcn.140013f60
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14000b67f
cmp eax, 0x80070002
je 0x14000b67f
mov eax, 0xfffe
and word [rsi], ax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000b65c
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edi, edi
mov qword [rsp + 0x38], rdi
jmp 0x14000b65e
xor edi, edi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000b673
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
jmp 0x14000b86a
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000b698
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edi, edi
mov qword [rsp + 0x38], rdi
jmp 0x14000b69a
xor edi, edi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000b6af
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
or word [rsi], 1
mov ebx, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x14000b6de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000b741
mov r8d, 0xf01ff
lea rdx, [0x140043508]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x14000b706
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000b72f
mov r8, r15
mov rdx, r14
call fcn.1400137d0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000b726
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
sete al
test al, al
jne 0x14000b753
cmp ebx, 0x424
je 0x14000b753
mov eax, edi
mov r14d, 1
jmp 0x14000b75c
mov r14d, 1
mov eax, r14d
mov ecx, 0xfffd
and word [rsi], cx
and ax, 1
add ax, ax
or word [rsi], ax
mov ebx, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
jne 0x14000b792
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000b7f5
mov r8d, 0xf01ff
lea rdx, str.WinDivert1.2
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
jne 0x14000b7ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000b7e3
mov r8, r15
mov rdx, r12
call fcn.1400137d0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000b7da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
sete al
test al, al
jne 0x14000b800
cmp ebx, 0x424
je 0x14000b800
mov r14d, edi
mov eax, 0xfffb
and word [rsi], ax
and r14w, 1
shl r14w, 2
or word [rsi], r14w
mov rcx, qword [r13]
call fcn.14000bed0
mov ecx, 0xfff7
and word [rsi], cx
mov ecx, edi
test eax, eax
sete cl
shl cx, 3
or word [rsi], cx
mov rax, qword [r13]
cmp byte [rax + 2], 0
jne 0x14000b84b
cmp byte [rax + 1], 0
mov r9d, 0x100
jne 0x14000b84e
mov r9d, edi
call fcn.14000e7e0
mov ecx, 0xffef
and word [rsi], cx
test al, al
setne dil
shl di, 4
or word [rsi], di
jmp 0x14000b86a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400164d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret