Function at 0x140003850
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 [0x14003c180]
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 0x140003afd
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 0x140003afd
mov qword [rsp + 0x140], rdi
cmp dword [rbp + 0x10], ebx
jbe 0x140003abe
nop
movdqa xmm0, xmmword [0x140031e70]
lea rcx, [rsp + 0x40]
movdqa xmm1, xmmword [0x140031e40]
xor eax, eax
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [0x140032150]
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.14000f3f0
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 0x140003af6
movdqa xmm1, xmmword [0x1400322f0]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm1
movdqa xmm1, xmmword [0x140032310]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [0x140031fc0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140032300]
movdqa xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [0x140032320]
movdqa xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x58], 0x14
mov dword [rbp - 0x54], 0x78
movdqa xmmword [rbp - 0x20], xmm1
mov dword [rbp], 0xffffffe3
call fcn.14000edf0
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140003af6
movdqa xmm1, xmmword [0x140031f50]
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x140032280]
movups xmmword [rsp + 0x40], xmm0
mov dword [rbp - 0x80], 0x7e
movdqa xmm0, xmmword [0x140031d30]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x7c], 0x18
mov dword [rbp - 0x78], 0x6a
call fcn.14000ea00
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140003af6
movdqa xmm1, xmmword [0x1400320b0]
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov byte [rbp - 0x60], al
movups xmmword [rbp - 0x70], xmm0
mov dword [rbp - 0x5c], 0x57
movdqa xmm0, xmmword [0x1400322a0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm0, xmmword [0x140031cd0]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x58], 0x43
mov dword [rbp - 0x54], 0x6f
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x20], 0x16
call fcn.14000e5a0
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140003af6
inc ebx
cmp ebx, dword [rbp + 0x10]
jb 0x140003900
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.14002aa20
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 0x140003ac9
mov eax, 0xffffffff
jmp 0x140003ad1