Function at 0x140011398
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
jmp 0x14001a610
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x748
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x132
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x768]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0x6f0], rax
lea rcx, [0x140041018]
call fcn.140011956
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x104], 0x1000
mov dword [rbp + 0x124], 0
mov qword [rbp + 0x148], 0
mov dword [rbp + 0x164], 0xc0000004
mov qword [rbp + 0x188], 0
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x728]
call fcn.140011325
test eax, eax
jne 0x14001a6ff
jmp 0x14001ac55
xor eax, eax
cmp eax, 1
je 0x14001ac55
mov eax, dword [rbp + 0x104]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14001a734
cmp dword [rbp + 0x164], 0xc0000004
je 0x14001a739
jmp 0x14001ac55
lea r9, [rbp + 0xe4]
mov r8d, dword [rbp + 0x104]
mov rdx, qword [rbp + 0x48]
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x164], eax
cmp dword [rbp + 0x164], 0
jl 0x14001ac38
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x68], rax
xor eax, eax
cmp eax, 1
je 0x14001ac38
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x50]
call fcn.1400112a3
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
je 0x14001ac0c
lea r8, [rbp + 0xa8]
mov edx, 0xa
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001abff
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001abf2
lea r8, [rbp + 0x148]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.1400110ff
test eax, eax
je 0x14001abdf
lea r8, [rbp + 0x188]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.140011104
test eax, eax
je 0x14001abdf
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x720]
call fcn.14001123a
test eax, eax
je 0x14001abc5
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x6d8], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x40]
mov qword [rbp + 0x6e0], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x50]
call fcn.1400112a3
mov dword [rbp + 0x6e8], eax
lea rdx, str.Found_a_potential_Process_candidate:_PID_d___Image_ws___User_ws
lea rcx, [rbp + 0x448]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x488]
call fcn.1400113d4
mov rax, qword [rbp + 0x6d8]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x6e0]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x6e8]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x448]
lea r8, [rbp + 0x488]
mov edx, 9
lea rcx, [0x140039450]
call fcn.140011014
nop
lea rcx, [rbp + 0x448]
call fcn.1400111d1
mov dword [rbp + 0x1a4], 0
lea r8, [rbp + 0x1a4]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.140011686
cmp dword [rbp + 0x1a4], 0
je 0x14001a990
lea rdx, str.This_token_is_not_restricted.
lea rcx, [rbp + 0x4b8]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x4f8]
call fcn.1400113d4
lea r9, [rbp + 0x4b8]
lea r8, [rbp + 0x4f8]
mov edx, 9
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x4b8]
call fcn.1400111d1
jmp 0x14001a9e3
lea rdx, str.This_token_is_restricted.
lea rcx, [rbp + 0x528]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x568]
call fcn.1400113d4
lea r9, [rbp + 0x528]
lea r8, [rbp + 0x568]
mov edx, 9
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x528]
call fcn.1400111d1
cmp dword [rbp + 0x1a4], 0
je 0x14001abc5
cmp qword [rbp + 0x738], 0
je 0x14001ab5a
cmp dword [rbp + 0x740], 0
je 0x14001ab5a
mov dword [rbp + 0x1c4], 0
mov dword [rbp + 0x1e4], 0
jmp 0x14001aa2f
mov eax, dword [rbp + 0x1e4]
inc eax
mov dword [rbp + 0x1e4], eax
mov eax, dword [rbp + 0x740]
cmp dword [rbp + 0x1e4], eax
jae 0x14001aa78
mov eax, dword [rbp + 0x1e4]
xor r9d, r9d
mov rcx, qword [rbp + 0x738]
mov r8, qword [rcx + rax*8]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.1400110d2
test eax, eax
je 0x14001aa76
mov eax, dword [rbp + 0x1c4]
inc eax
mov dword [rbp + 0x1c4], eax
jmp 0x14001aa21
lea rdx, str.Found__d__d_required_privileges_in_token.
lea rcx, [rbp + 0x598]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x5d8]
call fcn.1400113d4
mov eax, dword [rbp + 0x740]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x1c4]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x598]
lea r8, [rbp + 0x5d8]
mov edx, 9
lea rcx, [0x140039450]
call fcn.140011299
nop
lea rcx, [rbp + 0x598]
call fcn.1400111d1
mov eax, dword [rbp + 0x740]
cmp dword [rbp + 0x1c4], eax
jne 0x14001ab58
lea rdx, str.Found_a_valid_Token_candidate.
lea rcx, [rbp + 0x608]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x648]
call fcn.1400113d4
lea r9, [rbp + 0x608]
lea r8, [rbp + 0x648]
mov edx, 9
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x608]
call fcn.1400111d1
mov rax, qword [rbp + 0x730]
mov rcx, qword [rbp + 0xc8]
mov qword [rax], rcx
mov dword [rbp + 4], 1
jmp 0x14001abc5
lea rdx, str.Found_a_valid_Token.
lea rcx, [rbp + 0x678]
call fcn.14001143d
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x6b8]
call fcn.1400113d4
lea r9, [rbp + 0x678]
lea r8, [rbp + 0x6b8]
mov edx, 9
lea rcx, [0x140039450]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x678]
call fcn.1400111d1
mov rax, qword [rbp + 0x730]
mov rcx, qword [rbp + 0xc8]
mov qword [rax], rcx
mov dword [rbp + 4], 1
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rbp + 4], 0
jne 0x14001abf2
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 4], 0
je 0x14001ac14
jmp 0x14001ac38
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
jne 0x14001ac1f
jmp 0x14001ac38
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
jmp 0x14001a771
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rbp + 0x104]
shl eax, 1
mov dword [rbp + 0x104], eax
jmp 0x14001a6ff
cmp qword [rbp + 0x28], 0
je 0x14001ac66
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14002e8e8]
call fcn.1400117cb
mov eax, edi
mov rcx, qword [rbp + 0x6f0]
xor rcx, rbp
call fcn.1400114b0
lea rsp, [rbp + 0x708]
pop rdi
pop rbp
ret