Function at 0x140006790
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r15d, r15d
mov dword [rsp + 0x38], 4
xor edx, edx
mov qword [rsp + 0x30], r15
mov esi, ecx
mov dword [rsp + 0x3c], r15d
mov r14d, r15d
mov dword [rsp + 0x60], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006a0d
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x140006a04
mov qword [rsp + 0x2c0], rbx
mov qword [rsp + 0x2c8], r12
lea r12, [0x1400de840]
nop word [rax + rax]
lea rdx, [0x1400db580]
lea rcx, [rsp + 0x50]
call fcn.14008f000
lea rdx, [rbp - 0x74]
mov rcx, qword [rax]
call fcn.14005ed64
mov rdx, qword [rsp + 0x50]
test eax, eax
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000688e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r12
jne 0x140006a38
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x140006937
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006937
lea r8, [rsp + 0x30]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000692e
mov r9d, dword [rsp + 0x38]
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x3c]
mov edx, ntohl
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400068f9
cmp esi, dword [rsp + 0x3c]
je 0x140006953
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000690e
call qword [0x1400f1cf8]
mov qword [rsp + 0x30], r15
mov rcx, rbx
call qword [0x1400f1cf8]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140006937
call qword [0x1400f1cf8]
mov qword [rsp + 0x30], r15
jmp 0x140006937
mov rcx, rbx
call qword [0x1400f1cf8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x140006830
jmp 0x1400069f4
xor edx, edx
mov dword [rsp + 0x40], r15d
mov r8d, 0x100
lea rcx, [rbp + 0x90]
call fcn.1400572a0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov r9d, 0x100
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x90]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400069d6
mov rcx, qword [rbp + 0x90]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x1400069d6
mov r8, qword [rsp + 0x48]
lea rdx, [0x1400db134]
lea rcx, [0x1400f1d40]
call fcn.14000d190
mov rcx, qword [rsp + 0x48]
mov r14d, 1
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400069eb
call qword [0x1400f1cf8]
mov qword [rsp + 0x30], r15
mov rcx, rbx
call qword [0x1400f1cf8]
mov rbx, qword [rsp + 0x2c0]
mov r12, qword [rsp + 0x2c8]
mov rcx, rdi
call qword [0x1400f1cf8]
mov eax, r14d
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400518f0
lea r11, [rsp + 0x2a0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call r8
jmp 0x14000688e