Function at 0x2d9e3cee60
Capabilities:
Enumerate services
Start service

Disassembly:
mov rax, rsp
push rbx
push r14
sub rsp, 0x78
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rax + 0x18], ebx
mov r8d, 0xf003f
mov dword [rax + 8], ebx
mov dword [rax + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x2d9e3ceee9
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea r9d, [rbx + 2]
lea rax, [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r8d, [rbx + 0x30]
lea rax, [rsp + 0xa0]
mov rcx, r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov eax, dword [rsp + 0xa0]
test eax, eax
jne 0x2d9e3ceef3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
add rsp, 0x78
pop r14
pop rbx
ret
mov qword [rsp + 0x60], rdi
mov ecx, 0x40
lea edi, [rax + 0x38]
mov qword [rsp + 0x58], r15
mov edx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
mov rcx, r14
test rax, rax
jne 0x2d9e3cef32
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov r15, qword [rsp + 0x58]
add rsp, 0x78
pop r14
pop rbx
ret
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
xor edx, edx
lea rax, [rsp + 0x90]
mov dword [rsp + 0x98], ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
lea r9d, [rdx + 2]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x2d9e3cefa8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov r15, qword [rsp + 0x58]
add rsp, 0x78
pop r14
pop rbx
ret
mov edx, 0x2000
mov qword [rsp + 0x70], rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, ebx
mov rbp, rax
mov dword [rsp + 0xa8], ebx
cmp dword [rsp + 0x90], ebx
jbe 0x2d9e3cf071
mov qword [rsp + 0x68], rsi
nop dword [rax + rax]
mov eax, edi
mov r8d, 0x15
imul rdx, rax, 0x38
mov rcx, r14
mov rdx, qword [rdx + r15]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x2d9e3cf05d
lea r9, [rsp + 0xa8]
mov r8d, 0x2000
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x2d9e3cf054
cmp dword [rbp + 4], 2
jne 0x2d9e3cf054
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x2d9e3cf054
lea rdx, [0x2d9e409e08]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x2d9e3cf054
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x2d9e3cf054
inc ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc edi
cmp edi, dword [rsp + 0x90]
jb 0x2d9e3cefe0
mov rsi, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rdi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
add rsp, 0x78
pop r14
pop rbx
ret