Function at 0x140005a80
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14004c180]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140005d47
xor ebx, ebx
mov edx, 0x10000
mov dword [rbp + 0x38], ebx
mov dword [rbp + 0x30], ebx
mov dword [rbp + 0x34], ebx
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [rbx + 0x30]
mov rcx, rsi
mov r14, rax
lea r8d, [rbx + 3]
lea rax, [rbp + 0x34]
mov r9, r14
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140005d47
mov qword [rsp + 0x160], rdi
cmp dword [rbp + 0x30], ebx
jbe 0x140005d08
nop
movdqa xmm0, xmmword [0x140041db0]
lea rcx, [rsp + 0x40]
movdqa xmm1, xmmword [0x140041fe0]
xor eax, eax
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x140041a70]
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], al
movdqa xmmword [rsp + 0x60], xmm1
call fcn.140012780
lea rdi, [rbx + rbx*2]
mov rdx, rax
shl rdi, 4
add rdi, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140005d40
movdqa xmm1, xmmword [0x140042070]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x140042080]
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp + 0x20], 0xffffff96
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x24], 0xffffffc0
movdqa xmm0, xmmword [0x140041e50]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140042050]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [0x140042040]
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmm0, xmmword [0x140042030]
movdqa xmmword [rbp - 0x20], xmm1
movdqa xmm1, xmmword [0x140042060]
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp], xmm1
mov dword [rbp + 0x28], 0xfffffff0
call fcn.140011f70
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140005d40
movdqa xmm1, xmmword [0x140041f00]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x140041bf0]
movups xmmword [rsp + 0x40], xmm0
mov dword [rbp - 0x80], 0x2c
movdqa xmm0, xmmword [0x140041d40]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x7c], 0x45
mov dword [rbp - 0x78], 0x18
call fcn.140011b80
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140005d40
movdqa xmm1, xmmword [0x140041d50]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov byte [rbp - 0x60], al
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x5c], 0x2a
movdqa xmm0, xmmword [0x140041ef0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140041e70]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x58], 0x52
mov dword [rbp - 0x54], 0x79
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x20], 0x2d
call fcn.140011730
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140005d40
inc ebx
cmp ebx, dword [rbp + 0x30]
jb 0x140005b30
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140034940
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov eax, 1
jmp 0x140005d13
mov eax, 0xffffffff
jmp 0x140005d1b