Function at 0x1400550f0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r13
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400e06c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor r13d, r13d
mov r15, rcx
mov qword [rsp + 0x38], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005545f
mov rcx, qword [rsp + 0x38]
lea rax, [rbp + 0x8c]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x84]
mov qword [rsp + 0x1f8], rbx
mov edx, ntohs
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140055440
mov qword [rsp + 0x1c8], r12
lea r8, [rbp + 0xa0]
mov r12d, dword [rbp + 0x84]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
mov qword [rsp + 0x200], rsi
mov qword [rsp + 0x40], r13
mov dword [rbp + 0x98], 1
mov dword [rbp + 0x9c], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x140055364
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140055364
mov qword [rsp + 0x1c0], r14
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x130
mov r14d, r13d
mov ebx, 0x490
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140055351
mov qword [rsp + 0x208], rdi
nop dword [rax]
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jne 0x140055333
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140055333
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140055325
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x14005531a
cmp dword [rbp + 0x88], r13d
je 0x14005531a
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x90]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x80]
mov edx, ntohs
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14005531a
cmp dword [rbp + 0x80], r12d
jne 0x14005531a
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
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 0x140055312
mov ebx, r13d
jmp 0x14005531a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x140055349
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140055220
mov rdi, qword [rsp + 0x208]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x1c0]
jmp 0x14005536c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r12, qword [rsp + 0x1c8]
mov rsi, qword [rsp + 0x200]
test ebx, ebx
jne 0x140055448
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14005542b
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov edx, Ordinal_143
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140055410
mov rcx, qword [r15]
lea r8, [rbp + 0x80]
mov r9d, 4
mov dword [rbp + 0x80], 1
mov edx, reloc.WLDAP32.dll_Ordinal_26
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140055418
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [r15]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r15], r13
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055448
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x1f8]
jmp 0x140055465
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400b5570
add rsp, 0x1d0
pop r15
pop r13
pop rbp
ret