Function at 0x14000176c
Capabilities:
Enumerate services
Start service

Disassembly:
jmp 0x1400121f0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x298
mov rdi, rsp
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b0]
mov qword [rsp + 0x220], 0xfffffffffffffffe
mov rax, qword [0x1401e0280]
xor rax, rsp
mov qword [rsp + 0x288], rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x2b0]
add rax, 8
mov rcx, rax
call fcn.14000110e
mov r8d, 0xf003f
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x48]
call fcn.140001dc0
test rax, rax
je 0x1400122a2
mov dword [rsp + 0x228], 1
jmp 0x1400122ad
mov dword [rsp + 0x228], 0
mov eax, dword [rsp + 0x228]
mov dword [rsp + 0x54], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x54], 0
je 0x1400122e9
lea rax, [0x140171b40]
test rax, rax
je 0x1400122e9
mov dword [rsp + 0x22c], 1
jmp 0x1400122f4
mov dword [rsp + 0x22c], 0
mov eax, dword [rsp + 0x22c]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x140012334
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x1d4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1d0], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x1d0]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x1400122c9
xor eax, eax
test eax, eax
jne 0x140012286
mov eax, dword [rsp + 0x2d0]
or eax, 4
mov dword [rsp + 0x2d0], eax
cmp dword [rsp + 0x2d8], 1
jne 0x140012370
mov eax, dword [rsp + 0x2d0]
or eax, 8
mov dword [rsp + 0x2d0], eax
mov rax, qword [rsp + 0x2b0]
mov rcx, rax
call fcn.14000110e
mov qword [rsp + 0x230], rax
lea rcx, [rsp + 0x48]
call fcn.140001dc0
mov r8d, dword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x230]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x68]
call fcn.140001dc0
test rax, rax
je 0x1400123d8
mov dword [rsp + 0x238], 1
jmp 0x1400123e3
mov dword [rsp + 0x238], 0
mov eax, dword [rsp + 0x238]
mov dword [rsp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x74], 0
je 0x14001241f
lea rax, [0x140171b48]
test rax, rax
je 0x14001241f
mov dword [rsp + 0x23c], 1
jmp 0x14001242a
mov dword [rsp + 0x23c], 0
mov eax, dword [rsp + 0x23c]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x14001246a
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x1dc]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1d8], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x1d8]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x1400123ff
xor eax, eax
test eax, eax
jne 0x1400123bc
mov dword [rsp + 0x88], 0
lea rax, [rsp + 0x8c]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xc8]
call fcn.140001e1a
nop
cmp dword [rsp + 0x2d8], 1
jne 0x1400129e5
lea rcx, [rsp + 0xc8]
call fcn.140001a41
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x68]
call fcn.140001dc0
lea rcx, [rsp + 0x104]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xe4]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x240]
mov r8, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x1400129e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001252c
mov dword [rsp + 0x248], 1
jmp 0x140012537
mov dword [rsp + 0x248], 0
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x114], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x118], eax
cmp dword [rsp + 0x114], 0
je 0x14001257c
lea rax, str.GetLastError____234L
test rax, rax
je 0x14001257c
mov dword [rsp + 0x24c], 1
jmp 0x140012587
mov dword [rsp + 0x24c], 0
mov eax, dword [rsp + 0x24c]
mov dword [rsp + 0x11c], eax
cmp dword [rsp + 0x11c], 0
jne 0x1400125d0
mov edx, dword [rsp + 0x118]
lea rcx, [rsp + 0x1e4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1e0], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x1e0]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x140012559
xor eax, eax
test eax, eax
jne 0x140012512
mov eax, dword [rsp + 0xe4]
mov ecx, eax
call fcn.140050cc0
mov qword [rsp + 0x1e8], rax
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0xc8]
call fcn.140001eec
lea rcx, [rsp + 0xc8]
call fcn.140001a41
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x68]
call fcn.140001dc0
lea rcx, [rsp + 0x104]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xe4]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0xe4]
mov rcx, qword [rsp + 0x250]
mov r8, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
je 0x140012676
mov dword [rsp + 0x258], 1
jmp 0x140012681
mov dword [rsp + 0x258], 0
mov eax, dword [rsp + 0x258]
mov dword [rsp + 0x120], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x124], eax
cmp dword [rsp + 0x120], 0
je 0x1400126c6
lea rax, str.::EnumDependentServicesW_hService__0x00000001__pDependencies__dwBytesNeeded__dwBytesNeeded__dwCount_
test rax, rax
je 0x1400126c6
mov dword [rsp + 0x25c], 1
jmp 0x1400126d1
mov dword [rsp + 0x25c], 0
mov eax, dword [rsp + 0x25c]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
jne 0x14001271a
mov edx, dword [rsp + 0x124]
lea rcx, [rsp + 0x1f4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1f0], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x1f0]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x1400126a3
xor eax, eax
test eax, eax
jne 0x14001260b
mov dword [rsp + 0x12c], 0
jmp 0x140012747
mov eax, dword [rsp + 0x12c]
inc eax
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x104]
cmp dword [rsp + 0x12c], eax
jae 0x1400129e5
lea rcx, [rsp + 0xc8]
call fcn.140001a41
mov ecx, dword [rsp + 0x12c]
imul rcx, rcx, 0x30
lea rdx, [rsp + 0x138]
mov rdi, rdx
lea rsi, [rax + rcx]
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x2d0]
and eax, 0xfffffff7
mov dword [rsp + 0x260], eax
lea rcx, [rsp + 0x48]
call fcn.140001dc0
mov ecx, dword [rsp + 0x260]
mov r8d, ecx
mov rdx, qword [rsp + 0x138]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdx, rax
lea rcx, [rsp + 0x188]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x188]
call fcn.140001dc0
test rax, rax
je 0x1400127ef
mov dword [rsp + 0x264], 1
jmp 0x1400127fa
mov dword [rsp + 0x264], 0
mov eax, dword [rsp + 0x264]
mov dword [rsp + 0x194], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x194], 0
je 0x14001283f
lea rax, str.hDepService
test rax, rax
je 0x14001283f
mov dword [rsp + 0x268], 1
jmp 0x14001284a
mov dword [rsp + 0x268], 0
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0x19c], eax
cmp dword [rsp + 0x19c], 0
jne 0x140012893
mov edx, dword [rsp + 0x198]
lea rcx, [rsp + 0x1fc]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1f8], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x1f8]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x14001281c
xor eax, eax
test eax, eax
jne 0x1400127d0
lea rcx, [rsp + 0x188]
call fcn.140001dc0
lea r8, [rsp + 0x88]
mov edx, dword [rsp + 0x2c8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400128d9
mov dword [rsp + 0x26c], 1
jmp 0x1400128e4
mov dword [rsp + 0x26c], 0
mov eax, dword [rsp + 0x26c]
mov dword [rsp + 0x1a0], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x1a4], eax
cmp dword [rsp + 0x1a0], 0
je 0x140012929
lea rax, str.::ControlService_hDepService__dwControl__status_
test rax, rax
je 0x140012929
mov dword [rsp + 0x270], 1
jmp 0x140012934
mov dword [rsp + 0x270], 0
mov eax, dword [rsp + 0x270]
mov dword [rsp + 0x1a8], eax
cmp dword [rsp + 0x1a8], 0
jne 0x14001297d
mov edx, dword [rsp + 0x1a4]
lea rcx, [rsp + 0x204]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x200], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x200]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x140012906
xor eax, eax
test eax, eax
jne 0x1400128a3
lea rcx, [rsp + 0x188]
call fcn.140001dc0
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x2b8]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x2d8]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call fcn.14000121c
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x188]
call fcn.1400021b7
jmp 0x140012737
cmp dword [rsp + 0x2c0], 0
je 0x140012b03
lea rcx, [rsp + 0x68]
call fcn.140001dc0
mov r8, qword [rsp + 0x2e8]
mov edx, dword [rsp + 0x2e0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140012a26
mov dword [rsp + 0x274], 1
jmp 0x140012a31
mov dword [rsp + 0x274], 0
mov eax, dword [rsp + 0x274]
mov dword [rsp + 0x1ac], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x1b0], eax
cmp dword [rsp + 0x1ac], 0
je 0x140012a76
lea rax, str.::StartServiceW_hService__dwArgc__lpszArgv_
test rax, rax
je 0x140012a76
mov dword [rsp + 0x278], 1
jmp 0x140012a81
mov dword [rsp + 0x278], 0
mov eax, dword [rsp + 0x278]
mov dword [rsp + 0x1b4], eax
cmp dword [rsp + 0x1b4], 0
jne 0x140012aca
mov edx, dword [rsp + 0x1b0]
lea rcx, [rsp + 0x20c]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x208], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x208]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x140012a53
xor eax, eax
test eax, eax
jne 0x1400129f3
mov dword [rsp + 0x8c], 2
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0xa0], eax
jmp 0x140012bea
lea rcx, [rsp + 0x68]
call fcn.140001dc0
lea r8, [rsp + 0x88]
mov edx, dword [rsp + 0x2c8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140012b36
mov dword [rsp + 0x27c], 1
jmp 0x140012b41
mov dword [rsp + 0x27c], 0
mov eax, dword [rsp + 0x27c]
mov dword [rsp + 0x1b8], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x1bc], eax
cmp dword [rsp + 0x1b8], 0
je 0x140012b86
lea rax, str.::ControlService_hService__dwControl__status_
test rax, rax
je 0x140012b86
mov dword [rsp + 0x280], 1
jmp 0x140012b91
mov dword [rsp + 0x280], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
jne 0x140012bda
mov edx, dword [rsp + 0x1bc]
lea rcx, [rsp + 0x214]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x210], eax
lea rdx, [0x1401df3b8]
lea rcx, [rsp + 0x210]
call fcn.1400a2ad0
xor eax, eax
test eax, eax
jne 0x140012b63
xor eax, eax
test eax, eax
jne 0x140012b03
lea rcx, [rsp + 0x68]
call fcn.140001dc0
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x2b8]
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x2d8]
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call fcn.14000121c
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x218], eax
lea rcx, [rsp + 0xc8]
call fcn.1400020c7
nop
lea rcx, [rsp + 0x68]
call fcn.1400021b7
nop
lea rcx, [rsp + 0x48]
call fcn.1400021b7
mov eax, dword [rsp + 0x218]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14016fde0]
call fcn.14009e8b0
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400a3850
add rsp, 0x298
pop rdi
pop rsi
ret