Function at 0x140003bf0
Capabilities:
Enumerate services

Disassembly:
push r12
push r13
push r15
sub rsp, 0x90
mov rax, qword [0x140036008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, rdx
mov qword [rsp + 0x58], rcx
lea rdx, str.ServicesActive
xor ecx, ecx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
xor r15d, r15d
mov r13, rax
test rax, rax
je 0x140003ea9
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x40], r15
lea r9d, [r15 + 3]
mov qword [rsp + 0x38], rax
lea r8d, [r15 + 0xb]
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, r13
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x140003e9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140003e9b
mov edx, dword [rsp + 0x60]
lea ecx, [r15 + 1]
mov qword [rsp + 0xc0], rbx
call fcn.140008418
mov qword [rsp + 0x50], rax
mov rbx, rax
test rax, rax
je 0x140003e93
mov ecx, dword [rsp + 0x60]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x48], r15
lea r9d, [r15 + 3]
mov qword [rsp + 0x40], r15
lea r8d, [r15 + 0xb]
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x140003e8b
mov qword [rsp + 0x80], rsi
mov esi, r15d
cmp dword [rsp + 0x64], r15d
jbe 0x140003e83
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r14
mov eax, esi
mov r8d, 1
imul r14, rax, 0x38
mov rcx, r13
add r14, rbx
mov rdx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x140003e65
mov rax, qword [0x140038678]
test rax, rax
je 0x140003d6f
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140003d60
test rcx, rcx
jne 0x140003d7b
call fcn.140005e90
mov qword [0x140038678], rax
mov rcx, qword [r14]
sub rax, rcx
movzx r8d, word [rcx]
movzx edx, word [rcx + rax]
sub r8d, edx
jne 0x140003d96
add rcx, 2
test edx, edx
jne 0x140003d81
test r8d, r8d
je 0x140003e65
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140003e5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003e5c
mov edx, dword [rsp + 0x60]
lea ecx, [rax - 0x79]
call fcn.140008418
mov rdi, rax
test rax, rax
je 0x140003e5c
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x60]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140003e54
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, qword [rdi + 0x10]
mov rbx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub rbx, rax
nop word [rax + rax]
movzx r8d, word [rax]
movzx edx, word [rax + rbx]
sub r8d, edx
jne 0x140003e35
add rax, 2
test edx, edx
jne 0x140003e20
test r8d, r8d
jne 0x140003e4f
lea r15d, [r8 + 1]
test r12, r12
je 0x140003e4f
mov rcx, qword [r14]
call fcn.14000c154
mov qword [r12], rax
mov rbx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14000bcb0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
cmp esi, dword [rsp + 0x64]
jb 0x140003d20
mov r14, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rcx, rbx
call fcn.14000bcb0
mov rbx, qword [rsp + 0xc0]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, r15d
jmp 0x140003ebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_IsDriverServiceRunning___OpenSCManager_create___0x_08x__n
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006640
add rsp, 0x90
pop r15
pop r13
pop r12
ret