Function at 0x18000c990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x18004e020]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13d, r8d
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov rsi, rcx
mov byte [rsp + 0x40], 0
xor r14d, r14d
mov dword [rsp + 0x44], r14d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x18000cb35
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000cb35
mov ecx, dword [rsp + 0x44]
call fcn.18000ef40
mov r15, rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
mov r8, r15
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000cb28
mov rdi, qword [r15]
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x48], r14d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x18000cb28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000cb28
mov ecx, dword [rsp + 0x4c]
inc ecx
mov eax, 2
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.18000ef40
mov r12, rax
xor eax, eax
mov word [r12], ax
mov edx, dword [rsp + 0x48]
inc edx
mov eax, 2
mul rdx
cmovo rax, r14
mov rcx, rax
call fcn.18000ef40
mov r14, rax
xor eax, eax
mov word [r14], ax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x4c]
mov r8, r12
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x18000cb68
lea edx, [rax + 2]
mov rcx, r12
call fcn.18000e8e0
mov edx, 2
mov rcx, r14
call fcn.18000e8e0
mov edx, 0x10
mov rcx, r15
call fcn.18000e8e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.18000e8c0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.NT_AUTHORITY
mov rcx, r14
call fcn.180015244
test eax, eax
je 0x18000ccf0
lea rdx, str.Window_Manager
mov rcx, r14
call fcn.180015244
test eax, eax
je 0x18000ccf0
mov rbx, qword [rsi]
cmp rbx, qword [rsi + 8]
je 0x18000cbd1
nop
mov rdi, qword [rbx]
mov rdx, r14
mov rcx, qword [rdi + 0x18]
call fcn.180015244
test eax, eax
jne 0x18000cbc7
mov rdx, r12
mov rcx, qword [rdi + 0x20]
call fcn.180015244
test eax, eax
je 0x18000cceb
add rbx, 8
cmp rbx, qword [rsi + 8]
jne 0x18000cba0
lea rcx, str.NON_EXISTENT_PROCESS
call fcn.180001780
mov rdi, rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000cc5d
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call fcn.1800111d0
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000cc54
cmp dword [rsp + 0x78], r13d
je 0x18000cc3b
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000cc20
jmp 0x18000cc54
mov edx, 2
mov rcx, rdi
call fcn.18000e8e0
lea rcx, [rbp - 0x64]
call fcn.180001780
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x38
call fcn.18000eb84
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rcx, qword [rsi + 8]
sub rcx, qword [rsi]
sar rcx, 3
mov dword [rax], ecx
xor eax, eax
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x10], rax
mov rcx, r14
call fcn.180001780
mov qword [rbx + 0x18], rax
mov rcx, r12
call fcn.180001780
mov qword [rbx + 0x20], rax
mov dword [rbx + 0x28], r13d
mov rcx, rdi
call fcn.180001780
mov qword [rbx + 0x30], rax
mov qword [rsp + 0x60], rbx
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x18000cccc
mov qword [rdx], rbx
add qword [rsi + 8], 8
jmp 0x18000ccd9
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.180007f00
mov edx, 2
mov rcx, rdi
call fcn.18000e8e0
mov byte [rsp + 0x40], 1
mov rbx, qword [rsp + 0x58]
mov edx, 2
mov rcx, r12
call fcn.18000e8e0
mov edx, 2
mov rcx, r14
call fcn.18000e8e0
mov edx, 0x10
mov rcx, r15
call fcn.18000e8e0
cmp byte [rsp + 0x40], 0
jne 0x18000cb3e
jmp 0x18000cb35