Function at 0x14000f500
Capabilities:
Modify service
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r15d, r15d
mov rsi, r8
mov rbp, rdx
lea r13, [0x140026dbc]
mov r14d, r15d
test r8, r8
je 0x14000f95d
cmp word [r8], r14w
je 0x14000f95d
lea ecx, [r15 + 5]
call fcn.14000ee10
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14000f580
call fcn.140017f4c
mov edx, 0x400001fb
lea rcx, [rax + 0x60]
call fcn.1400026b0
lea eax, [rbx + 1]
jmp 0x14000fa31
movzx ecx, word [rsi]
mov r12, r15
mov rax, rsi
test cx, cx
je 0x14000f794
inc r14d
cmp cx, 0x2b
jne 0x14000f5a0
mov r12, rax
jmp 0x14000f5a5
test cx, cx
je 0x14000f5af
add rax, 2
cmp word [rax], r15w
jne 0x14000f5a5
mov cx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x14000f592
test r12, r12
je 0x14000f794
lea rax, [rsp + 0x60]
lea rdx, str.SYSTEMCurrentControlSetControlServiceGroupOrder
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000f629
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov rdi, rax
call fcn.140017f4c
lea r8, str.SYSTEMCurrentControlSetControlServiceGroupOrder
lea rdx, str._s:__s_n
lea rcx, [rax + 0x60]
mov r9, rdi
call fcn.140018cf0
mov eax, 2
jmp 0x14000fa31
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rdx, str.List
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f737
mov edi, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x14000f6a5
call fcn.140017f4c
lea r9, str.set_service_dependencies__
lea r8, str.groups
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.1400026b0
lea eax, [r12 + 3]
jmp 0x14000fa31
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rdx, str.List
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000f789
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov rdi, rax
call fcn.140017f4c
lea r9, str.List
lea r8, str.SYSTEMCurrentControlSetControlServiceGroupOrder
lea rdx, str._s_s:__s
lea rcx, [rax + 0x60]
mov qword [rsp + 0x20], rdi
call fcn.140018cf0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
jmp 0x14000fa31
cmp eax, 2
je 0x14000f789
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov rdi, rax
call fcn.140017f4c
lea r9, str.List
lea r8, str.SYSTEMCurrentControlSetControlServiceGroupOrder
lea rdx, str._s_s:__s
lea rcx, [rax + 0x60]
mov qword [rsp + 0x20], rdi
call fcn.140018cf0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 4
jmp 0x14000fa31
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, r14d
shl edi, 8
add edi, 2
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
cmp word [rsi], r15w
je 0x14000f938
cmp word [rsi], 0x2b
jne 0x14000f8bc
cmp word [rsi + 2], 0
je 0x14000f814
cmp word [r12], 0
mov rbx, r12
je 0x14000f814
lea rdx, [rsi + 2]
mov rcx, rbx
call fcn.140009b50
test eax, eax
jne 0x14000f873
cmp word [rbx], ax
je 0x14000f80a
nop dword [rax]
add rbx, 2
cmp word [rbx], 0
jne 0x14000f800
add rbx, 2
cmp word [rbx], 0
jne 0x14000f7e0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x14000f841
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 0x433
call fcn.140002430
mov rdi, rax
call fcn.140017f4c
lea rdx, str._s:__s
lea rcx, [rax + 0x60]
mov r9, rdi
mov r8, rsi
call fcn.140018cf0
mov eax, 5
jmp 0x14000fa31
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8, [rcx + rcx - 2]
lea rcx, [rsi + 2]
call fcn.140018230
lea r9, [0x140026d3c]
lea rcx, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov edx, 0x100
mov qword [rsp + 0x20], rsi
call fcn.140018170
mov rbx, qword [rsp + 0x70]
jmp 0x14000f8e6
lea r9, [rsp + 0x80]
mov r8d, 4
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call fcn.14000ee50
test rax, rax
je 0x14000f9db
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x80]
not rcx
mov rdi, rcx
lea r8, [rcx + rcx]
lea rcx, [r13 + r15*2]
call fcn.140018230
add r15, rdi
cmp word [rsi], 0
je 0x14000f92a
nop dword [rax]
add rsi, 2
cmp word [rsi], 0
jne 0x14000f920
add rsi, 2
cmp word [rsi], 0
jne 0x14000f7c4
test r12, r12
je 0x14000f951
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
or r9d, 0xffffffff
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r15
mov rcx, rbp
or r8d, r9d
or edx, r9d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14000fa16
test r14d, r14d
je 0x14000f9b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
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.140002430
mov rdi, rax
call fcn.140017f4c
mov r8, rdi
lea rcx, [rax + 0x60]
mov edx, 0x4000020b
call fcn.1400026b0
or eax, 0xffffffff
jmp 0x14000fa31
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x14000fa08
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000f841
test r14d, r14d
je 0x14000fa2f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140018800
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret