Function at 0x14006b2dc
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 [0x1400d7c88]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
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 rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006b372
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x14006b6d5
test byte [rcx + 0x1c], 1
je 0x14006b6d5
lea edx, [rsi + 0x11]
jmp 0x14006b6c2
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x234
call fcn.1400860f0
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14006b68d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp dword [rsp + 0x78], ebx
je 0x14006b3c4
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14006b3ce
jmp 0x14006b3aa
mov r13d, dword [rbp - 0x70]
cmp r13d, 0xffffffff
jne 0x14006b40d
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x14006b402
test byte [rcx + 0x1c], 1
je 0x14006b402
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bcc00]
mov edx, 0x11
mov r9d, 0x80004005
call fcn.140003d18
mov r14d, 0x80070002
jmp 0x14006b6d5
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14006b463
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x14006b6d5
test byte [rcx + 0x1c], 1
je 0x14006b6d5
lea edx, [rdi + 0x12]
jmp 0x14006b6c2
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, rdi
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.14002ba28
mov rbx, qword [rsp + 0x58]
mov r14d, eax
test eax, eax
js 0x14006b675
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], r15
lea r9d, [r12 - 0x2f]
mov qword [rsp + 0x38], rax
mov r8d, r12d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x14006b62d
mov ecx, dword [rsp + 0x54]
mov r12, r15
test ecx, ecx
je 0x14006b602
mov r15, rbx
mov rax, qword [rsp + 0x68]
cmp dword [rax], 1
je 0x14006b5ff
cmp dword [r15 + 0x2c], r13d
jne 0x14006b5ed
mov rcx, qword [r15]
lea rdx, [rsp + 0x58]
and qword [rsp + 0x58], 0
call fcn.14006b1a0
mov rcx, qword [rsp + 0x58]
mov r14d, eax
test eax, eax
js 0x14006b620
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov rcx, qword [rsp + 0x60]
lea r14, [0x1400d4100]
xor eax, eax
test byte [rax + r14], 0x10
je 0x14006b5b5
mov r8, qword [rax + r14 + 8]
test r8, r8
je 0x14006b5b5
mov rdx, rcx
sub r8, rcx
movzx r9d, word [rdx]
movzx r10d, word [rdx + r8]
sub r9d, r10d
jne 0x14006b5b0
add rdx, 2
test r10d, r10d
jne 0x14006b599
test r9d, r9d
je 0x14006b5c3
add rax, 0x10
cmp rax, 0x90
jae 0x14006b5ce
jmp 0x14006b582
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
test rcx, rcx
je 0x14006b5d9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14006b5e9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x54]
inc r12
mov eax, ecx
add r15, 0x38
cmp r12, rax
jb 0x14006b528
xor r15d, r15d
test rbx, rbx
je 0x14006b60f
mov rcx, rbx
call fcn.140083d40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14d, r15d
jmp 0x14006b6d5
test rcx, rcx
je 0x14006b675
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14006b675
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x14006b675
test byte [rcx + 0x1c], 1
je 0x14006b675
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bcc00]
mov edx, 0x13
mov r9d, r14d
call fcn.140003d18
test rbx, rbx
je 0x14006b682
mov rcx, rbx
call fcn.140083d40
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14006b6d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x14006b6d5
test byte [rcx + 0x1c], 1
je 0x14006b6d5
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bcc00]
mov r9d, r14d
call fcn.140003d18
test rsi, rsi
je 0x14006b6e3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140083d20
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