Function at 0x1400e8dd4
Capabilities:
Enumerate processes
Enumerate services

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov rax, qword [0x140173950]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r14, rdx
mov qword [rsp + 0x68], rdx
xor r15d, r15d
mov dword [rdx], r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e8e84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400e8e42
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x1400e8e73
test byte [rcx + 0x1c], 1
je 0x1400e8e73
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401481e8]
mov edx, 0x10
mov r9d, ebx
call fcn.140044380
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400e9242
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x234
call fcn.140032e00
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400e91ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
cmp dword [rsp + 0x78], edi
je 0x1400e8ed6
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400e8ebc
jmp 0x1400e8ee0
mov r13d, dword [rbp - 0x70]
cmp r13d, 0xffffffff
jne 0x1400e8f2c
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x1400e8f14
test byte [rcx + 0x1c], 1
je 0x1400e8f14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401481e8]
mov edx, 0x11
mov r9d, 0x80004005
call fcn.140044380
test rbx, rbx
je 0x1400e8f22
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80070002
jmp 0x1400e9242
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400e8f82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400e8f57
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x1400e9232
test byte [rcx + 0x1c], 1
je 0x1400e9232
mov edx, 0x12
jmp 0x1400e921f
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], r15
mov r9d, 1
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0x30], rax
mov rcx, rsi
lea r12d, [r9 + 0x2f]
mov dword [rsp + 0x28], r15d
mov r8d, r12d
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], r15
call fcn.140044870
mov edi, eax
test eax, eax
jns 0x1400e9002
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e8ff4
call fcn.140030ba0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400e9232
mov rdi, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x48], r15
mov r9d, 1
mov qword [rsp + 0x40], r15
mov r8d, r12d
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x1400e91a1
mov ecx, dword [rsp + 0x54]
mov r12, r15
test ecx, ecx
je 0x1400e9131
mov r15, rdi
cmp dword [r14], 1
je 0x1400e9131
cmp dword [r15 + 0x2c], r13d
jne 0x1400e911f
mov rcx, qword [r15]
lea rdx, [rsp + 0x58]
and qword [rsp + 0x58], 0
call fcn.1400e9274
mov rcx, qword [rsp + 0x58]
mov r14d, eax
test eax, eax
js 0x1400e916a
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov rcx, qword [rsp + 0x60]
lea r11, [0x14016d350]
xor eax, eax
test byte [r11 + rax], 0x10
je 0x1400e90ef
lea r8, [0x14016d358]
mov r8, qword [rax + r8]
test r8, r8
je 0x1400e90ef
mov rdx, rcx
sub r8, rcx
movzx r9d, word [rdx]
movzx r10d, word [rdx + r8]
sub r9d, r10d
jne 0x1400e90ea
add rdx, 2
test r10d, r10d
jne 0x1400e90d3
test r9d, r9d
je 0x1400e915c
add rax, 0x10
cmp rax, 0xa0
jb 0x1400e90b6
mov r14, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e910b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e911b
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x54]
inc r12
mov eax, ecx
add r15, 0x38
cmp r12, rax
jb 0x1400e9060
test rdi, rdi
je 0x1400e913e
mov rcx, rdi
call fcn.140030ba0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400e9155
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400e9242
mov r14, qword [rsp + 0x68]
mov dword [r14], 1
jmp 0x1400e9100
test rcx, rcx
je 0x1400e9175
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400e9182
mov rcx, rdi
call fcn.140030ba0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400e9199
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
jmp 0x1400e9242
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test eax, eax
jle 0x1400e91b9
movzx r14d, ax
or r14d, 0x80070000
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x1400e9175
test byte [rcx + 0x1c], 1
je 0x1400e9175
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401481e8]
mov edx, 0x13
mov r9d, r14d
call fcn.140044380
jmp 0x1400e9175
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x1400e9201
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [0x14016d280]
lea rax, [0x14016d280]
cmp rcx, rax
je 0x1400e9232
test byte [rcx + 0x1c], 1
je 0x1400e9232
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401481e8]
mov r9d, edi
call fcn.140044380
test rbx, rbx
je 0x1400e9240
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140030b80
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret