Function at 0x14001137f
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 [0x140038040]
xor rax, rbp
mov qword [rbp + 0x6f0], rax
lea rcx, [0x140040015]
call fcn.140011933
nop
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.140011316
test eax, eax
jne 0x14001a700
jmp 0x14001ac63
xor eax, eax
cmp eax, 1
je 0x14001ac63
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 0x14001a735
cmp dword [rbp + 0x164], 0xc0000004
je 0x14001a73a
jmp 0x14001ac63
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 0x14001ac45
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x68], rax
xor eax, eax
cmp eax, 1
je 0x14001ac45
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x50]
call fcn.140011299
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 0x14001ac19
lea r8, [rbp + 0xa8]
mov edx, 0xa
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001ac0b
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 0x14001abfd
lea r8, [rbp + 0x148]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.1400110f0
test eax, eax
je 0x14001abe9
lea r8, [rbp + 0x188]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.1400110f5
test eax, eax
je 0x14001abe9
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x720]
call fcn.14001122b
test eax, eax
je 0x14001abcd
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.140011299
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.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x488]
call fcn.1400113b6
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, [0x1400384e0]
call fcn.14001100f
nop
lea rcx, [rbp + 0x448]
call fcn.1400111b8
nop
mov dword [rbp + 0x1a4], 0
lea r8, [rbp + 0x1a4]
mov rdx, qword [rbp + 0xc8]
mov rcx, qword [rbp + 0x720]
call fcn.14001166d
nop
cmp dword [rbp + 0x1a4], 0
je 0x14001a994
lea rdx, str.This_token_is_not_restricted.
lea rcx, [rbp + 0x4b8]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x4f8]
call fcn.1400113b6
lea r9, [rbp + 0x4b8]
lea r8, [rbp + 0x4f8]
mov edx, 9
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x4b8]
call fcn.1400111b8
nop
jmp 0x14001a9e8
lea rdx, str.This_token_is_restricted.
lea rcx, [rbp + 0x528]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x568]
call fcn.1400113b6
lea r9, [rbp + 0x528]
lea r8, [rbp + 0x568]
mov edx, 9
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x528]
call fcn.1400111b8
nop
cmp dword [rbp + 0x1a4], 0
je 0x14001abcd
cmp qword [rbp + 0x738], 0
je 0x14001ab61
cmp dword [rbp + 0x740], 0
je 0x14001ab61
mov dword [rbp + 0x1c4], 0
mov dword [rbp + 0x1e4], 0
jmp 0x14001aa34
mov eax, dword [rbp + 0x1e4]
inc eax
mov dword [rbp + 0x1e4], eax
mov eax, dword [rbp + 0x740]
cmp dword [rbp + 0x1e4], eax
jae 0x14001aa7d
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.1400110c3
test eax, eax
je 0x14001aa7b
mov eax, dword [rbp + 0x1c4]
inc eax
mov dword [rbp + 0x1c4], eax
jmp 0x14001aa26
lea rdx, str.Found__d__d_required_privileges_in_token.
lea rcx, [rbp + 0x598]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x5d8]
call fcn.1400113b6
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, [0x1400384e0]
call fcn.14001128a
nop
lea rcx, [rbp + 0x598]
call fcn.1400111b8
nop
mov eax, dword [rbp + 0x740]
cmp dword [rbp + 0x1c4], eax
jne 0x14001ab5f
lea rdx, str.Found_a_valid_Token_candidate.
lea rcx, [rbp + 0x608]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x648]
call fcn.1400113b6
lea r9, [rbp + 0x608]
lea r8, [rbp + 0x648]
mov edx, 9
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x608]
call fcn.1400111b8
nop
mov rax, qword [rbp + 0x730]
mov rcx, qword [rbp + 0xc8]
mov qword [rax], rcx
mov dword [rbp + 4], 1
jmp 0x14001abcd
lea rdx, str.Found_a_valid_Token.
lea rcx, [rbp + 0x678]
call fcn.14001141f
nop
lea rdx, str.c_impersonate::find_process_token_and_duplicate
lea rcx, [rbp + 0x6b8]
call fcn.1400113b6
lea r9, [rbp + 0x678]
lea r8, [rbp + 0x6b8]
mov edx, 9
lea rcx, [0x1400384e0]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x678]
call fcn.1400111b8
nop
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]
nop
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
cmp dword [rbp + 4], 0
jne 0x14001abfd
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 4], 0
je 0x14001ac21
jmp 0x14001ac45
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
jne 0x14001ac2c
jmp 0x14001ac45
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 0x14001a772
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, dword [rbp + 0x104]
shl eax, 1
mov dword [rbp + 0x104], eax
jmp 0x14001a700
cmp qword [rbp + 0x28], 0
je 0x14001ac75
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14002ea00]
call fcn.1400117b7
mov eax, edi
mov rcx, qword [rbp + 0x6f0]
xor rcx, rbp
call fcn.140011497
lea rsp, [rbp + 0x708]
pop rdi
pop rbp
ret