Function at 0x14003d790
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14010e0c0]
xor rax, rsp
mov qword [rbp + 0xb0], 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 0x14003dae8
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x8c]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x84]
mov qword [rsp + 0x1f8], rbx
mov edx, recv
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003dac9
mov qword [rsp + 0x1c0], r15
lea r8, [rbp + 0xa0]
mov r15d, dword [rbp + 0x84]
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
mov qword [rsp + 0x200], rsi
mov dword [rbp + 0x98], 1
mov dword [rbp + 0x9c], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x14003d9ee
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003d9ee
mov qword [rsp + 0x1c8], r14
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x130
xor r14d, r14d
mov ebx, 0x490
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14003d9db
mov qword [rsp + 0x1d0], 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__stricmp]
test eax, eax
jne 0x14003d9bd
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 0x14003d9b8
lea r8, [rsp + 0x30]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14003d9af
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
test eax, eax
je 0x14003d9a4
cmp dword [rbp + 0x88], 0
je 0x14003d9a4
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x90]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x80]
mov edx, recv
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14003d9a4
cmp dword [rbp + 0x80], r15d
jne 0x14003d9a4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
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 0x14003d99c
xor ebx, ebx
jmp 0x14003d9a4
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 0x14003d9d3
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14003d8b0
mov rdi, qword [rsp + 0x1d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x1c8]
jmp 0x14003d9f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x200]
test ebx, ebx
jne 0x14003dad1
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x14003dab4
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], r12
xor r8d, r8d
mov edx, Ordinal_143
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14003da99
mov rcx, qword [r12]
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 0x14003daa1
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 0x14003dad1
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 0x14003dad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003dad1
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 + 0x1f8]
jmp 0x14003daee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400d7c30
add rsp, 0x1d8
pop r12
pop rbp
ret