Function at 0x140001771
Capabilities:
Enumerate services
Start service

Disassembly:
jmp 0x1400108b0
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 [0x1401dc280]
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.140001dc5
test rax, rax
je 0x140010962
mov dword [rsp + 0x228], 1
jmp 0x14001096d
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 0x1400109a9
lea rax, [0x14016d760]
test rax, rax
je 0x1400109a9
mov dword [rsp + 0x22c], 1
jmp 0x1400109b4
mov dword [rsp + 0x22c], 0
mov eax, dword [rsp + 0x22c]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jne 0x1400109f4
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x1d4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1d0], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x1d0]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010989
xor eax, eax
test eax, eax
jne 0x140010946
mov eax, dword [rsp + 0x2d0]
or eax, 4
mov dword [rsp + 0x2d0], eax
cmp dword [rsp + 0x2d8], 1
jne 0x140010a30
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.140001dc5
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.140001dc5
test rax, rax
je 0x140010a98
mov dword [rsp + 0x238], 1
jmp 0x140010aa3
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 0x140010adf
lea rax, [0x14016d768]
test rax, rax
je 0x140010adf
mov dword [rsp + 0x23c], 1
jmp 0x140010aea
mov dword [rsp + 0x23c], 0
mov eax, dword [rsp + 0x23c]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jne 0x140010b2a
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x1dc]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1d8], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x1d8]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010abf
xor eax, eax
test eax, eax
jne 0x140010a7c
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.140001e1f
nop
cmp dword [rsp + 0x2d8], 1
jne 0x1400110a5
lea rcx, [rsp + 0xc8]
call fcn.140001a46
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x68]
call fcn.140001dc5
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 0x1400110a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140010bec
mov dword [rsp + 0x248], 1
jmp 0x140010bf7
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 0x140010c3c
lea rax, str.GetLastError____234L
test rax, rax
je 0x140010c3c
mov dword [rsp + 0x24c], 1
jmp 0x140010c47
mov dword [rsp + 0x24c], 0
mov eax, dword [rsp + 0x24c]
mov dword [rsp + 0x11c], eax
cmp dword [rsp + 0x11c], 0
jne 0x140010c90
mov edx, dword [rsp + 0x118]
lea rcx, [rsp + 0x1e4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1e0], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x1e0]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010c19
xor eax, eax
test eax, eax
jne 0x140010bd2
mov eax, dword [rsp + 0xe4]
mov ecx, eax
call fcn.14004f5f0
mov qword [rsp + 0x1e8], rax
mov rdx, qword [rsp + 0x1e8]
lea rcx, [rsp + 0xc8]
call fcn.140001ef1
lea rcx, [rsp + 0xc8]
call fcn.140001a46
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x68]
call fcn.140001dc5
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 0x140010d36
mov dword [rsp + 0x258], 1
jmp 0x140010d41
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 0x140010d86
lea rax, str.::EnumDependentServicesW_hService__0x00000001__pDependencies__dwBytesNeeded__dwBytesNeeded__dwCount_
test rax, rax
je 0x140010d86
mov dword [rsp + 0x25c], 1
jmp 0x140010d91
mov dword [rsp + 0x25c], 0
mov eax, dword [rsp + 0x25c]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
jne 0x140010dda
mov edx, dword [rsp + 0x124]
lea rcx, [rsp + 0x1f4]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1f0], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x1f0]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010d63
xor eax, eax
test eax, eax
jne 0x140010ccb
mov dword [rsp + 0x12c], 0
jmp 0x140010e07
mov eax, dword [rsp + 0x12c]
inc eax
mov dword [rsp + 0x12c], eax
mov eax, dword [rsp + 0x104]
cmp dword [rsp + 0x12c], eax
jae 0x1400110a5
lea rcx, [rsp + 0xc8]
call fcn.140001a46
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.140001dc5
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.140001dc5
test rax, rax
je 0x140010eaf
mov dword [rsp + 0x264], 1
jmp 0x140010eba
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 0x140010eff
lea rax, str.hDepService
test rax, rax
je 0x140010eff
mov dword [rsp + 0x268], 1
jmp 0x140010f0a
mov dword [rsp + 0x268], 0
mov eax, dword [rsp + 0x268]
mov dword [rsp + 0x19c], eax
cmp dword [rsp + 0x19c], 0
jne 0x140010f53
mov edx, dword [rsp + 0x198]
lea rcx, [rsp + 0x1fc]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x1f8], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x1f8]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010edc
xor eax, eax
test eax, eax
jne 0x140010e90
lea rcx, [rsp + 0x188]
call fcn.140001dc5
lea r8, [rsp + 0x88]
mov edx, dword [rsp + 0x2c8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140010f99
mov dword [rsp + 0x26c], 1
jmp 0x140010fa4
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 0x140010fe9
lea rax, str.::ControlService_hDepService__dwControl__status_
test rax, rax
je 0x140010fe9
mov dword [rsp + 0x270], 1
jmp 0x140010ff4
mov dword [rsp + 0x270], 0
mov eax, dword [rsp + 0x270]
mov dword [rsp + 0x1a8], eax
cmp dword [rsp + 0x1a8], 0
jne 0x14001103d
mov edx, dword [rsp + 0x1a4]
lea rcx, [rsp + 0x204]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x200], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x200]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140010fc6
xor eax, eax
test eax, eax
jne 0x140010f63
lea rcx, [rsp + 0x188]
call fcn.140001dc5
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.140001221
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x188]
call fcn.1400021bc
jmp 0x140010df7
cmp dword [rsp + 0x2c0], 0
je 0x1400111c3
lea rcx, [rsp + 0x68]
call fcn.140001dc5
mov r8, qword [rsp + 0x2e8]
mov edx, dword [rsp + 0x2e0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400110e6
mov dword [rsp + 0x274], 1
jmp 0x1400110f1
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 0x140011136
lea rax, str.::StartServiceW_hService__dwArgc__lpszArgv_
test rax, rax
je 0x140011136
mov dword [rsp + 0x278], 1
jmp 0x140011141
mov dword [rsp + 0x278], 0
mov eax, dword [rsp + 0x278]
mov dword [rsp + 0x1b4], eax
cmp dword [rsp + 0x1b4], 0
jne 0x14001118a
mov edx, dword [rsp + 0x1b0]
lea rcx, [rsp + 0x20c]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x208], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x208]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140011113
xor eax, eax
test eax, eax
jne 0x1400110b3
mov dword [rsp + 0x8c], 2
mov dword [rsp + 0x9c], 0
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0xa0], eax
jmp 0x1400112aa
lea rcx, [rsp + 0x68]
call fcn.140001dc5
lea r8, [rsp + 0x88]
mov edx, dword [rsp + 0x2c8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400111f6
mov dword [rsp + 0x27c], 1
jmp 0x140011201
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 0x140011246
lea rax, str.::ControlService_hService__dwControl__status_
test rax, rax
je 0x140011246
mov dword [rsp + 0x280], 1
jmp 0x140011251
mov dword [rsp + 0x280], 0
mov eax, dword [rsp + 0x280]
mov dword [rsp + 0x1c0], eax
cmp dword [rsp + 0x1c0], 0
jne 0x14001129a
mov edx, dword [rsp + 0x1bc]
lea rcx, [rsp + 0x214]
call fcn.14000159b
mov eax, dword [rax]
mov dword [rsp + 0x210], eax
lea rdx, [0x1401db250]
lea rcx, [rsp + 0x210]
call fcn.1400a1400
xor eax, eax
test eax, eax
jne 0x140011223
xor eax, eax
test eax, eax
jne 0x1400111c3
lea rcx, [rsp + 0x68]
call fcn.140001dc5
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.140001221
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.1400021bc
nop
lea rcx, [rsp + 0x48]
call fcn.1400021bc
mov eax, dword [rsp + 0x218]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14016ba00]
call fcn.14009d1e0
mov rax, rdi
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400a2180
add rsp, 0x298
pop rdi
pop rsi
ret