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

Disassembly:
mov r11, rsp
push rbp
push r13
lea rbp, [r11 - 0x418]
sub rsp, 0x508
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor eax, eax
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov r13d, eax
mov qword [r11 - 0x30], r12
mov edi, 0x1000
mov qword [rsp + 0x58], rdx
mov esi, eax
mov qword [r11 - 0x38], r14
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x68], rdi
mov r14d, 0xc0000004
mov r12d, r9d
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x58], eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x140002f83
mov edx, edi
mov qword [rsp + 0x500], rbx
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
mov rbx, rax
test rax, rax
je 0x140002f7b
mov qword [rsp + 0x4d8], r15
cmp r14d, 0xc0000004
jne 0x140002f73
lea r9, [rbp - 0x58]
mov r8d, edi
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x48], eax
mov r14d, eax
test eax, eax
js 0x140002f45
mov r15, rbx
mov r8d, dword [r15 + 0x50]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x60], rax
mov rbx, rax
test rax, rax
je 0x140002e10
lea r8, [rbp - 0x68]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002e07
mov rcx, qword [rbp - 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140002dfd
mov rcx, qword [rbp - 0x78]
lea rdx, [rsp + 0x50]
call fcn.140004030
test eax, eax
je 0x140002dee
xor edi, edi
lea rcx, [rbp - 0x40]
xor edx, edx
mov qword [rbp - 0x70], rdi
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x78]
lea rdx, [rbp - 0x70]
mov dword [rbp - 0x50], 0x100
mov dword [rbp - 0x54], 0x100
call fcn.140004030
mov rbx, qword [rbp - 0x70]
test eax, eax
je 0x140002cf2
lea rax, [rbp - 0x4c]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x50]
lea rax, [rbp - 0x54]
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x140002cac
lea rcx, str.LookupAccountSid
call fcn.140003900
jmp 0x140002cf2
mov edx, 0x402
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
je 0x140002cf2
lea rax, [rbp - 0x40]
mov edx, 0x201
lea r9, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r8, str._ws_ws
mov rcx, rsi
call fcn.140001070
mov edi, 1
test rbx, rbx
je 0x140002d00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x140002de9
mov r14, qword [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov rbx, qword [rbp - 0x60]
xor edi, edi
mov rcx, r14
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140002f25
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140002f25
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, qword [rbp - 0x80]
mov ebx, edi
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x140002dd7
mov r8, qword [r15 + 0x40]
lea rcx, str.Found_a_potential_Process_candidate:_PID_d___Image_ws___User_ws_n
mov edx, dword [r15 + 0x50]
mov r9, rsi
call fcn.140003c20
mov rsi, qword [rbp - 0x78]
lea rax, [rbp - 0x80]
mov rcx, rsi
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rbp - 0x80], edi
xor r8d, r8d
lea edx, [rdi + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140002e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140002e2c
lea rcx, [0x140008680]
call fcn.140003900
lea rcx, str.This_token_is_restricted._n
call fcn.140003c20
mov rsi, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x60]
test r13d, r13d
jne 0x140002dfd
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
jne 0x140002f36
mov eax, dword [r15]
test eax, eax
je 0x140002f36
add r15, rax
jmp 0x140002b94
mov edx, dword [rbp - 0x80]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140002e81
mov r9d, dword [rbp - 0x80]
lea rax, [rbp - 0x80]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 0xb
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140002e72
lea rcx, [0x140008680]
call fcn.140003900
jmp 0x140002e78
cmp dword [rbx], edi
sete dil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, str.This_token_is_restricted._n
test edi, edi
lea rcx, str.This_token_is_not_restricted._n
cmove rcx, rax
call fcn.140003c20
test edi, edi
je 0x140002dd2
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140002f1c
test r12d, r12d
je 0x140002f1c
xor edi, edi
test r12d, r12d
je 0x140002edf
mov rbx, rax
mov rsi, r12
nop
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, qword [rbp - 0x78]
call fcn.140004150
test eax, eax
je 0x140002ed5
inc edi
add rbx, 8
sub rsi, 1
jne 0x140002ec0
mov r8d, r12d
lea rcx, str.Found__d__d_required_privileges_in_token._n
mov edx, edi
call fcn.140003c20
cmp edi, r12d
jne 0x140002dd2
lea rcx, str.Found_a_valid_Token_candidate._n
call fcn.140003c20
mov rcx, qword [rsp + 0x58]
mov r13d, 1
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
jmp 0x140002dd2
lea rcx, str.Found_a_valid_Token._n
jmp 0x140002f00
lea rcx, str.ConvertSidToStringSid
call fcn.140003900
jmp 0x140002dd7
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r14d, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
mov ecx, 0x40
mov edx, edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x70], rax
mov rbx, rax
test rax, rax
jne 0x140002b60
mov r15, qword [rsp + 0x4d8]
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rbp - 0x60]
mov r14, qword [rsp + 0x4e0]
mov r12, qword [rsp + 0x4e8]
mov rdi, qword [rsp + 0x4f0]
mov rsi, qword [rsp + 0x4f8]
test rcx, rcx
je 0x140002fb2
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r13d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400043b0
add rsp, 0x508
pop r13
pop rbp
ret