Function at 0x14000ffe0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rax, str.VBoxWddm
mov r8d, 5
mov qword [rbp - 0x59], rax
lea rdx, str.ServicesActive
lea rax, str.VBoxSF
xor ecx, ecx
mov qword [rbp - 0x51], rax
lea rax, str.VBoxMouse
mov qword [rbp - 0x49], rax
lea rax, str.VBoxGuest
mov qword [rbp - 0x41], rax
lea rax, str.vmci
mov qword [rbp - 0x39], rax
lea rax, str.vmhgfs
mov qword [rbp - 0x31], rax
lea rax, str.vmmouse
mov qword [rbp - 0x29], rax
lea rax, str.vmmemctl
mov qword [rbp - 0x21], rax
lea rax, str.vmusb
mov qword [rbp - 0x19], rax
lea rax, str.vmusbmouse
mov qword [rbp - 0x11], rax
lea rax, str.vmx_svga
mov qword [rbp - 9], rax
lea rax, str.vmxnet
mov qword [rbp - 1], rax
lea rax, str.vmx86
mov qword [rbp + 7], rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
je 0x140010259
mov ecx, 0xe000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [rbp + 0x17], 0
mov r15, rax
test rax, rax
je 0x140010242
mov rdi, rax
mov ecx, 0xe000
xor eax, eax
xor edx, edx
mov qword [rsp + 0x48], rax
mov r9d, 3
rep stosb byte [rdi], al
mov dword [rbp + 0x1b], eax
mov r8d, 0xb
mov dword [rbp + 0x1f], eax
mov rcx, r13
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xe000
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x14001013c
mov r14, r15
jmp 0x1400101c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001022b
mov esi, dword [rbp + 0x1b]
mov rcx, r15
add esi, 0xe000
mov edx, esi
mov r14d, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
je 0x140010239
mov rdi, rax
mov r15, rax
xor eax, eax
mov ecx, r14d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], rax
mov r9d, 3
rep stosb byte [rdi], al
lea rax, [rbp + 0x17]
mov r8d, 0xb
mov qword [rsp + 0x38], rax
mov rcx, r13
lea rax, [rbp + 0x1b]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x140010239
mov r14, rbx
xor ebx, ebx
mov qword [rsp + 0x110], r12
mov r12b, 1
cmp dword [rbp + 0x17], ebx
jbe 0x140010208
xor edi, edi
mov eax, ebx
imul rsi, rax, 0x38
nop word [rax + rax]
mov rdx, qword [rbp + rdi*8 - 0x59]
mov rcx, qword [rsi + r14]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400101fe
inc rdi
cmp rdi, 0xd
jl 0x1400101e0
jmp 0x140010201
xor r12b, r12b
inc ebx
cmp ebx, dword [rbp + 0x17]
jb 0x1400101d2
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r12b, r12b
mov r12, qword [rsp + 0x110]
je 0x14001024e
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14001026a
mov edx, eax
lea rcx, str.ERROR:__u_n
call fcn.140008d00
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.Failed_to_get_services_list._n
call fcn.140008d00
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010265
lea rcx, str.Failed_to_get_SCM_handle._n
call fcn.140008d00
mov eax, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140016050
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret