Function at 0x1400f2a80
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x140137040]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400f2db9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x2f8], rbx
mov edx, recv
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400f2d9a
mov qword [rsp + 0x2c0], r15
lea r8, [rbp + 0x1a8]
mov r15d, dword [rsp + 0x40]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
mov qword [rsp + 0x300], rsi
mov dword [rbp + 0x1a0], 1
mov dword [rbp + 0x1a4], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400f2cc3
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400f2cc3
mov qword [rsp + 0x2c8], r14
lea rdx, [rsp + 0x60]
mov rcx, rax
mov dword [rsp + 0x60], 0x238
xor r14d, r14d
mov ebx, 0x490
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400f2cb0
mov qword [rsp + 0x2d0], rdi
lea rdx, str.winlogon.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400f2c92
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400f2c8d
lea r8, [rsp + 0x38]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400f2c84
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x44]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x1400f2c79
cmp dword [rsp + 0x44], 0
je 0x1400f2c79
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x5c]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov edx, recv
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400f2c79
cmp dword [rsp + 0x30], r15d
jne 0x1400f2c79
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 4
mov r14d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400f2c71
xor ebx, ebx
jmp 0x1400f2c79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x1400f2ca8
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400f2b94
mov rdi, qword [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2c8]
jmp 0x1400f2ccb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x2c0]
mov rsi, qword [rsp + 0x300]
test ebx, ebx
jne 0x1400f2da2
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x1400f2d85
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov edx, 0x8b
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1400f2d6a
mov rcx, qword [r12]
lea r8, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x30], 1
mov edx, 0x1a
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400f2d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [r12]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400f2da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400f2da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400f2da2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x2f8]
jmp 0x1400f2dbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.1400f3ce0
add rsp, 0x2d8
pop r12
pop rbp
ret