Function at 0x1800015b0
Capabilities:
Enumerate services

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x298
mov rax, qword [0x18011fcf8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebp, dword [rcx]
mov rdi, rcx
test ebp, ebp
je 0x1800018fe
mov qword [r11 + 0x10], rbx
mov ecx, ebp
mov qword [r11 - 0x20], r14
call qword [sym.imp.msvcrt.dll_malloc]
mov r14, rax
test rax, rax
je 0x1800018ee
lea rdx, [rdi + 4]
mov qword [rsp + 0x2c0], rsi
mov r8d, ebp
mov rcx, rax
call sub.ntdll.dll_memcpy
mov ecx, 0xa88
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1800018e6
mov qword [rsp + 0x2c8], r12
xor edx, edx
mov qword [rsp + 0x290], r13
mov r8d, 0xa88
mov rcx, rax
mov qword [rsp + 0x280], r15
call sub.ntdll.dll_memset
mov ecx, dword [rdi]
xor r15d, r15d
test ecx, ecx
jne 0x18000165b
mov ebx, r15d
jmp 0x18000169b
add ecx, 4
mov edx, dword [rcx + rdi]
test edx, edx
jne 0x18000166a
mov ebx, r15d
jmp 0x18000169b
lea ebx, [rcx + 4]
add ebx, edx
mov eax, ebx
add ebx, 4
cmp dword [rax + rdi], 0xa88
je 0x180001682
mov ebx, r15d
jmp 0x18000169b
mov edx, ebx
mov rcx, rsi
add rdx, rdi
mov r8d, 0xa88
call sub.ntdll.dll_memcpy
add ebx, 0xa88
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.ntdll.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r13d, [rbx + 0x20c]
mov ecx, r13d
mov esi, r13d
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
test rax, rax
je 0x1800018ce
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call sub.ntdll.dll_memcpy
lea rcx, [r12 + 4]
mov dword [rbx + r12], 0x208
add rcx, rbx
lea rax, [rsp + 0x60]
mov edx, 4
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180001720
mov rax, qword [rax]
lea r8d, [rdx + 5]
mov qword [rcx], rax
xor ecx, ecx
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x58], r15d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1800018ce
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor edx, edx
mov qword [rsp + 0x38], rax
mov rcx, rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
lea r9d, [rdx + 3]
lea r8d, [rdx + 0x30]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov esi, dword [rsp + 0x50]
add esi, 0x38
mov ecx, esi
mov r15d, esi
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800018ce
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
xor r15d, r15d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov rcx, rbx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [r15 + 3]
mov dword [rsp + 0x28], esi
lea r8d, [r15 + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov rcx, rbx
test eax, eax
jne 0x180001856
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x1800018ce
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, r15d
cmp dword [rsp + 0x58], ebx
jbe 0x1800018ce
nop word [rax + rax]
mov esi, ebx
lea rdx, str.Schedule
imul rcx, rsi, 0x38
mov rcx, qword [rcx + rdi]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180001895
inc ebx
cmp ebx, dword [rsp + 0x58]
jb 0x180001870
jmp 0x1800018ce
imul rax, rsi, 0x38
mov rcx, rdi
mov ebx, dword [rax + rdi + 0x2c]
call qword [sym.imp.msvcrt.dll_free]
test ebx, ebx
je 0x1800018ce
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x28], rax
mov r9, r12
mov r8d, ebp
mov dword [rsp + 0x20], r13d
mov rdx, r14
mov ecx, ebx
call fcn.180008ec0
mov r12, qword [rsp + 0x2c8]
mov r13, qword [rsp + 0x290]
mov r15, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2b8]
mov r14, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180112460
add rsp, 0x298
pop rdi
pop rbp
ret