Function at 0x14000f8d0
Capabilities:
Modify service

Disassembly:
push rdi
push r15
sub rsp, 0x88
movzx r15d, dl
mov rdi, rcx
test rcx, rcx
jne 0x14000f8f5
lea eax, [rcx + 1]
add rsp, 0x88
pop r15
pop rdi
ret
and dword [rcx + 0x8428], 0x100
or dword [rcx + 0x8428], 0x10
mov ecx, dword [rcx + 0x8400]
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r14
sub ecx, 2
je 0x14000f94a
cmp ecx, 1
je 0x14000f942
mov r14d, 2
jmp 0x14000f950
mov r14d, 4
jmp 0x14000f950
mov r14d, 3
lea r12, [rdi + 0x202]
cmp word [r12], 0
lea rbp, [rdi + 2]
jne 0x14000f983
lea r9, [0x14002ecd8]
mov qword [rsp + 0x20], rbp
mov edx, 0x100
mov r8, 0xffffffffffffffff
mov rcx, r12
call fcn.140001d80
xor ebx, ebx
mov esi, ebx
mov qword [rsp + 0xb0], rbx
mov r13d, ebx
cmp qword [rdi + 0x8410], rbx
je 0x14000fb12
mov rsi, qword [rdi + 0x8408]
mov rcx, rbp
mov rdx, rsi
call fcn.140001550
test eax, eax
je 0x14000faec
mov rax, qword [rdi + 0x8410]
lea rbx, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x14000fa15
lea ecx, [rax + 2]
call fcn.14001c1d0
mov rcx, rax
lea r9, str.edit_service__
lea r8, str.canon
mov edx, 0xc00001fa
call fcn.140002950
lea eax, [r13 + 5]
jmp 0x14000fcac
mov r8, qword [rdi + 0x8410]
mov rdx, rsi
mov rcx, rax
lea r8, [r8*2 + 2]
call fcn.140019060
xor ebx, ebx
lea rax, [0x14002ee04]
cmp dword [rdi + 0x40428], 0
mov rcx, rbx
mov edx, dword [rdi + 0x8428]
mov r9d, 0xffffffff
mov qword [rsp + 0x50], r12
cmove rcx, rax
mov rax, qword [rsp + 0xb0]
mov r8d, r14d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x704f0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000fba3
cmp qword [rsp + 0xb0], rsi
je 0x14000fab8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002510
mov ecx, 2
mov rbx, rax
call fcn.14001c1d0
mov rcx, rax
mov r8, rbx
mov edx, 0x4000020b
call fcn.140002950
mov eax, 5
jmp 0x14000fcac
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call fcn.140001030
test eax, eax
jne 0x14000fae2
cmp qword [rdi + 0x8420], rbx
je 0x14000fb26
mov r13, qword [rdi + 0x8418]
jmp 0x14000fb26
test r15b, r15b
je 0x14000fb26
lea rsi, str.LocalSystem
mov qword [rsp + 0xb0], rsi
mov rcx, qword [rsp + 0xb0]
call fcn.140001d00
test rax, rax
je 0x14000fb47
lea rax, [0x14002ee04]
mov r13, rax
jmp 0x14000fa38
mov rcx, qword [rsp + 0xb0]
call fcn.140001280
test eax, eax
je 0x14000fa31
cmp qword [rsp + 0xb0], rsi
je 0x14000fb7f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 2
call fcn.14001c1d0
mov rcx, rax
mov r8, rsi
mov edx, 0x40000205
call fcn.140002950
mov eax, 5
jmp 0x14000fcac
cmp qword [rsp + 0xb0], rsi
je 0x14000fbc6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [rdi + 0x40428], 0
je 0x14000fbed
mov r8, qword [rdi + 0x40420]
mov rcx, rbp
mov rdx, qword [rdi + 0x704f0]
call fcn.1400133c0
test eax, eax
jne 0x14000fae2
lea r8, [rdi + 0x402]
cmp word [r8], 0
jne 0x14000fc00
test r15b, r15b
je 0x14000fc0f
mov rdx, qword [rdi + 0x704f0]
mov rcx, rbp
call fcn.140013950
cmp dword [rdi + 0x8400], 1
lea r8, [rsp + 0xa0]
mov rcx, qword [rdi + 0x704f0]
mov eax, ebx
sete al
mov edx, 3
mov dword [rsp + 0xa0], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x14000fc6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
je 0x14000fc6f
mov ecx, eax
call fcn.140002510
mov r9, rax
mov qword [rsp + 0x20], rbx
mov eax, 1
mov r8, rbp
movzx ecx, ax
mov edx, 0x40000429
call fcn.140002610
cmp byte [rdi], 0
jne 0x14000fcaa
movzx edx, r15b
mov rcx, rdi
call fcn.14000bd80
test eax, eax
je 0x14000fca2
mov ecx, 2
call fcn.14001c1d0
mov rcx, rax
mov edx, 0x4000021d
call fcn.140002950
mov eax, 6
jmp 0x14000fcac
mov rcx, rdi
call fcn.140013a40
xor eax, eax
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x60]
add rsp, 0x88
pop r15
pop rdi
ret