Function at 0x140002660
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x80], 2
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x98], 0
mov dword [rsp + 0xb0], 0x238
xor edx, edx
mov ecx, dword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400026f5
mov eax, 1
jmp 0x140002a65
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140002716
mov eax, 1
jmp 0x140002a65
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140002a55
mov qword [rsp + 0x70], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsp + 0xb8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140002a45
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
add rcx, rax
mov rax, rcx
mov r8d, 0x103
lea rdx, [rsp + 0xdc]
mov rcx, rax
call fcn.14000b4d8
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
mov edx, dword [rsp + 0xb8]
mov dword [rcx + rax + 0x1f4], edx
lea r8, [rsp + 0x90]
mov edx, 0x20008
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
je 0x140002a1c
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0xa0]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1400029e2
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x4c]
shl eax, 1
mov eax, eax
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x48]
shl eax, 1
mov eax, eax
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x4e
jne 0x1400029ab
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x54
jne 0x1400029ab
mov eax, 2
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x41
jne 0x1400029ab
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
mov dword [rcx + rax + 0x1f8], 1
jmp 0x1400029ca
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
mov dword [rcx + rax + 0x1f8], 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140002a01
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
mov dword [rcx + rax + 0x1f8], 5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140002a3b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x1fc
mov rcx, qword [rsp + 0x300]
mov dword [rcx + rax + 0x1f8], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002716
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x2f8
ret