Function at 0x140004570
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14004c180]
xor rax, rsp
mov qword [rbp + 0x20], 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 0x14000481d
xor ebx, ebx
mov edx, 0x10000
mov dword [rbp + 0x18], ebx
mov dword [rbp + 0x10], ebx
mov dword [rbp + 0x14], 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 + 0x14]
mov r9, r14
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x14000481d
mov qword [rsp + 0x140], rdi
cmp dword [rbp + 0x10], ebx
jbe 0x1400047de
nop
movdqa xmm0, xmmword [0x1400400d0]
lea rcx, [rsp + 0x40]
movdqa xmm1, xmmword [0x14003ff50]
xor eax, eax
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x140040240]
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.140010080
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 0x140004816
movdqa xmm1, xmmword [0x140040580]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x1400405a0]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [0x140040160]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140040590]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [0x140040570]
movdqa xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x58], 0x58
mov dword [rbp - 0x54], 0xe
movdqa xmmword [rbp - 0x20], xmm1
mov dword [rbp], 0xffffffcd
call fcn.14000fa90
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140004816
movdqa xmm1, xmmword [0x140040250]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x140040530]
movups xmmword [rsp + 0x40], xmm0
mov dword [rbp - 0x80], 0x35
movdqa xmm0, xmmword [0x140040230]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x7c], 0x5e
mov dword [rbp - 0x78], 0x47
call fcn.14000f6a0
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140004816
movdqa xmm1, xmmword [0x14003ff40]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov byte [rbp - 0x60], al
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x5c], 1
movdqa xmm0, xmmword [0x140040090]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140040310]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x58], 7
mov dword [rbp - 0x54], 0x46
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x20], 0x54
call fcn.14000f250
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140004816
inc ebx
cmp ebx, dword [rbp + 0x10]
jb 0x140004620
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rdi, qword [rsp + 0x140]
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140034b40
lea r11, [rsp + 0x130]
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 0x1400047e9
mov eax, 0xffffffff
jmp 0x1400047f1