Function at 0x140006d70
Capabilities:
Create service
Delete service
Modify service
Start service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4d0
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
mov rbp, qword [rsp + 0x520]
mov rbx, rcx
lea r12, [rcx + 8]
or rcx, 0xffffffffffffffff
mov rdi, r8
xor eax, eax
repne scasw ax, word [rdi]
mov rdx, r8
mov rsi, r9
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.140001b50
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r13, [rbx + 0x30]
mov rdx, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r13
call fcn.140001b50
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rsi, [rbx + 0x58]
mov rdx, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rsi
call fcn.140001b50
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa0], 0
call fcn.14000bf20
lea rdx, [rsp + 0x2b0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x2b0]
mov dx, 0x5c
call fcn.14000bad0
xor ebp, ebp
mov word [rax + 2], 0
mov rcx, rbp
nop
nop
movzx eax, word [rsp + rcx + 0x2b0]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x9e], ax
jne 0x140006e60
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
mov rax, qword [str.Util32.exe]
or rcx, 0xffffffffffffffff
mov qword [rdi - 2], rax
mov rax, qword [0x140035c40]
mov qword [rdi + 6], rax
mov eax, dword [0x140035c48]
mov dword [rdi + 0xe], eax
movzx eax, word [0x140035c4c]
mov word [rdi + 0x12], ax
xor eax, eax
lea rdi, [rsp + 0xa0]
repne scasw ax, word [rdi]
cmp qword [r12 + 0x20], 8
mov rax, qword [str.__RunService]
mov qword [rdi - 2], rax
mov rax, qword [0x1400363b0]
mov qword [rdi + 6], rax
mov rax, qword [0x1400363b8]
mov qword [rdi + 0xe], rax
movzx eax, word [0x1400363c0]
mov word [rdi + 0x16], ax
jb 0x140006f00
mov rbx, qword [r12 + 8]
jmp 0x140006f05
lea rbx, [r12 + 8]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x140006f65
mov r8d, 0x10020
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbx, rax
je 0x140006f5c
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x14000700b
cmp qword [r13 + 0x20], 8
jb 0x140006f8e
mov r8, qword [r13 + 8]
jmp 0x140006f92
lea r8, [r13 + 8]
cmp qword [r12 + 0x20], 8
jb 0x140006fa1
mov rdx, qword [r12 + 8]
jmp 0x140006fa6
lea rdx, [r12 + 8]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x58], rbp
lea rax, [0x1400356f4]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0xa0]
mov r9d, 0xf01ff
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rbx, rax
jne 0x140007012
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14000715d
cmp qword [rsi + 0x20], 8
jb 0x14000701f
mov rax, qword [rsi + 8]
jmp 0x140007023
lea rax, [rsi + 8]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x1400070be
cmp qword [r12 + 0x20], 8
jb 0x140007074
mov rdx, qword [r12 + 8]
jmp 0x140007079
lea rdx, [r12 + 8]
mov r8d, 0xf003f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400070be
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400070b5
lea rdx, str.CRunServiceOperate::StartService
lea rcx, [0x1400357cc]
call fcn.14000a320
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.CRunServiceOperate::DoStartService
lea rcx, [0x1400357cc]
call fcn.14000a320
mov ecx, 0x4e20
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [r12 + 0x20], 8
jb 0x1400070f4
mov r12, qword [r12 + 8]
jmp 0x1400070f8
add r12, 8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x140007158
mov r8d, 0x10020
mov rdx, r12
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbx, rax
je 0x14000714f
lea r8, [rsp + 0x78]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.14000c100
mov rbx, qword [rsp + 0x508]
add rsp, 0x4d0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret