Function at 0x14016d120
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x120
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rax, [0x1402c3430]
mov rsi, rcx
test al, 0xf
jne 0x14016d470
mov qword [r11 + 0x18], rbp
xorps xmm0, xmm0
movaps xmmword [0x1402c3430], xmm0
lea rbp, [0x1402bc0e0]
mov dword [0x1402c3444], 0x10
mov qword [0x1402c3448], 0x1000
mov qword [r11 + 0x20], rdi
xor edi, edi
mov dword [0x1402c3440], edi
mov rax, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x30]
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.14018e360
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14016d425
cmp eax, 0xc0000510
je 0x14016d425
nop word [rax + rax]
cmp byte [rsi + 0x38], dil
jne 0x14016d44e
cmp byte [rsi + 0x39], dil
jne 0x14016d44e
mov qword [rsp + 0x138], rbx
lfence
mov rax, qword [rsi + 8]
lea rbx, [0x140231658]
test rax, rax
je 0x14016d1f5
mov r8, qword [rax + 8]
jmp 0x14016d1f8
mov r8, rbx
mov edx, 0x10
lea rcx, [rsp + 0x50]
call sym.SystemInformer.exe_PhOpenService
test eax, eax
js 0x14016d245
mov rcx, qword [rsp + 0x50]
call fcn.14016b700
mov rcx, qword ds:[rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
js 0x14016d41b
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.14018e360
mov edi, eax
jmp 0x14016d41b
mov rax, qword [rsi]
test rax, rax
je 0x14016d253
mov rcx, qword [rax + 8]
jmp 0x14016d256
mov rcx, rbx
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
jne 0x14016d269
mov edi, 0xc000000f
jmp 0x14016d41b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14016d278
mov rdx, qword [rax + 8]
jmp 0x14016d27b
mov rdx, rbx
mov rax, qword ds:[rsi]
test rax, rax
je 0x14016d28b
mov rcx, qword [rax + 8]
jmp 0x14016d28e
mov rcx, rbx
mov rax, qword [rsi + 8]
test rax, rax
je 0x14016d2a2
mov r8, qword ds:[rax + 8]
mov rbx, r8
jmp 0x14016d2a5
mov r8, rbx
mov qword [rsp + 0x48], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rdx
mov rdx, rbx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call fcn.14016b200
mov edi, eax
test eax, eax
js 0x14016d41b
call fcn.140182ac0
mov edx, 1
lea rcx, [rsp + 0x60]
mov rdi, rax
movzx ebx, byte [rax + 1]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, ds:[rbx*4 + 0x4c]
mov r8d, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [0x14023dd10]
mov edx, 2
mov r8d, 0xf01ff
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r9, rdi
lea rcx, [rsp + 0x88]
mov edx, 2
mov r8d, 0xf01ff
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [0x14023dcd0]
mov edx, 2
mov r8d, 0x100b5
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
lea r8, [rsp + 0x88]
mov dl, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov rbx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rcx, rbx
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
test eax, eax
jne 0x14016d3c6
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call fcn.14016d480
mov edi, eax
test eax, eax
js 0x14016d3fa
mov rcx, rbx
call fcn.14016b700
mov edi, eax
test eax, eax
js 0x14016d3fa
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.14018e360
mov rbx, qword [rsp + 0x50]
mov edi, eax
test rbx, rbx
je 0x14016d41b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14016d412
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x138]
mov eax, edi
mov rbp, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1401dd6a0
add rsp, 0x120
pop rsi
ret
lfence
mov dl, 1
mov rcx, rsi
call fcn.14016d820
test eax, eax
js 0x14016d425
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.14018e360
jmp 0x14016d425
mov ecx, 0x80000002
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3