Function at 0x14005185f
Capabilities:
Enumerate services

Disassembly:
jmp 0x14005a8c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x288]
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, [0x14014d288]
call fcn.1400529c1
mov r8d, 5
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0
cmp qword [rbp + 8], 0
je 0x14005abff
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x64]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 3
mov r8d, 0xb
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jne 0x14005abf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14005abf3
mov eax, dword [rbp + 0x64]
mov edx, eax
mov ecx, 1
call fcn.1400510e9
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x14005abf3
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x44], eax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x64]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, 0xb
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
je 0x14005abe7
mov dword [rbp + 0xe4], 0
jmp 0x14005aa56
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0xe4], eax
jae 0x14005abe7
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0x38
mov r8d, 1
mov rcx, qword [rbp + 0xc8]
mov rdx, qword [rcx + rax]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0
je 0x14005abe2
call fcn.14005082e
mov ecx, dword [rbp + 0xe4]
imul rcx, rcx, 0x38
mov rdx, rax
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax + rcx]
call fcn.140050c1b
test eax, eax
je 0x14005abe2
lea r9, [rbp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
jne 0x14005abd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005abd5
mov eax, dword [rbp + 0x64]
mov edx, eax
mov ecx, 1
call fcn.1400510e9
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
je 0x14005abd5
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x44], eax
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
je 0x14005abc9
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rbp + 0x1f8], rax
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, qword [rbp + 0x1f8]
mov rdx, rcx
mov rcx, rax
call fcn.140050c1b
test eax, eax
jne 0x14005abc9
mov dword [rbp + 0x24], 1
cmp qword [rbp + 0x238], 0
je 0x14005abc9
mov eax, dword [rbp + 0xe4]
imul rax, rax, 0x38
mov rcx, qword [rbp + 0xc8]
mov rcx, qword [rcx + rax]
call fcn.140050504
mov rcx, qword [rbp + 0x238]
mov qword [rcx], rax
mov rcx, qword [rbp + 0x128]
call fcn.14005049b
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14005aa48
mov rcx, qword [rbp + 0xc8]
call fcn.14005049b
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14005ac17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_IsDriverServiceRunning___OpenSCManager_create___0x_08x__n
call fcn.14004f249
xor eax, eax
jmp 0x14005ac1a
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret