Function at 0x140044f20
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [0x140076140]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14004526c
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x19c]
mov r9d, 4
mov qword [rsp + 0x308], rbx
lea r8, [rbp + 0x194]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14004524d
mov qword [rsp + 0x2d0], r15
lea r8, [rbp + 0x1b0]
mov r15d, dword [rbp + 0x194]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
mov qword [rsp + 0x310], rsi
mov dword [rbp + 0x1a8], 1
mov dword [rbp + 0x1ac], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140045176
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140045176
mov qword [rsp + 0x2d8], r14
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x238
xor r14d, r14d
mov ebx, 0x490
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140045163
mov qword [rsp + 0x2e0], rdi
nop word [rax + rax]
lea rdx, str.winlogon.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140045145
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 0x140045140
lea r8, [rsp + 0x30]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140045137
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x198]
lea rdx, [rbp + 0x1a8]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x14004512c
cmp dword [rbp + 0x198], 0
je 0x14004512c
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1a0]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x190]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14004512c
cmp dword [rbp + 0x190], r15d
jne 0x14004512c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r14d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x20], 2
lea r9d, [r14 + 1]
lea edx, [r14 + 3]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140045124
xor ebx, ebx
jmp 0x14004512c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x14004515b
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140045040
mov rdi, qword [rsp + 0x2e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2d8]
jmp 0x14004517e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x2d0]
mov rsi, qword [rsp + 0x310]
test ebx, ebx
jne 0x140045255
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x140045238
mov rcx, qword [rsp + 0x40]
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 0x14004521d
mov rcx, qword [r12]
lea r9d, [rbx + 4]
lea r8, [rbp + 0x190]
mov dword [rbp + 0x190], 1
lea edx, [rbx + 0x1a]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140045225
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 + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140045255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140045255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140045255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x308]
jmp 0x140045272
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14005ed70
add rsp, 0x2e8
pop r12
pop rbp
ret