Function at 0x10006d40
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value
Start service
Stop service

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rax, qword [0x1001f320]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov qword [r11 + 0x10], rbx
mov rbx, rcx
lea rcx, [r11 - 0xb8]
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x20], r14
lea r14, [0x10000000]
lea rdi, [r11 - 0xb8]
xor esi, esi
mov rax, qword [r14 + 0x166e8]
mov qword [rcx], rax
mov rax, qword [r14 + 0x166f0]
mov qword [rcx + 8], rax
mov rax, qword [r14 + 0x166f8]
mov qword [rcx + 0x10], rax
mov rax, qword [r14 + 0x16700]
mov qword [rcx + 0x18], rax
movzx eax, word [r14 + 0x16708]
mov word [rcx + 0x20], ax
movzx eax, byte [r14 + 0x1670a]
mov byte [rcx + 0x22], al
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rbx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x10006de0
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x190]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x230], r13
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10007118
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [0x100166dc]
xor r8d, r8d
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10006e9b
cmp dword [rsp + 0x4c], 4
jne 0x10006e9b
mov rcx, qword [rsp + 0x38]
bts dword [rsp + 0x30], 8
lea rax, [rsp + 0x30]
lea rdx, [0x100166dc]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [0x100166d0]
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10006ecd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1000711a
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR80.dll_memset
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x4c]
lea rdx, [0x100166c0]
xor r8d, r8d
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea rcx, [rsp + 0x80]
mov edx, 0x5c
call qword [sym.imp.MSVCR80.dll_strrchr]
lea r13, [0x1001f284]
test rax, rax
je 0x10006f6b
lea rcx, [rax + 1]
mov rdx, r13
call qword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
jne 0x10006f6b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1000711a
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x260], rbp
mov qword [rsp + 0x238], r12
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r8d, 0xf003f
mov rdx, rbx
mov rcx, rax
mov r12, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbp, rax
je 0x10006fbb
lea r8, [rsp + 0x60]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rax, qword [r14 + 0x166b0]
mov rcx, qword [r14 + 0x166a8]
lea rdx, [rsp + 0x80]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov eax, dword [r14 + 0x166b8]
mov dword [rdx + 0x10], eax
movzx eax, word [r14 + 0x166bc]
lea rdi, [rsp + 0x80]
mov word [rdx + 0x14], ax
movzx eax, byte [r14 + 0x166be]
mov rcx, 0xffffffffffffffff
mov byte [rdx + 0x16], al
xor eax, eax
repne scasb al, byte [rdi]
xor edx, edx
nop
movzx eax, byte [r13 + rdx]
add rdx, 1
test al, al
mov byte [rdi + rdx - 2], al
jne 0x10007010
xor eax, eax
lea rdi, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rax, [rsp + 0x80]
lea rdx, [0x100166c0]
not rcx
mov r9d, 2
xor r8d, r8d
sub rcx, 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
lea rdx, [0x10016698]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
lea rdx, [0x10016680]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
lea rdx, [0x10016674]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x50], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbp, rbp
je 0x100070f6
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rbp
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x238]
mov rbp, qword [rsp + 0x260]
mov eax, esi
mov r14, qword [rsp + 0x228]
mov r13, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.10010cd0
add rsp, 0x248
ret