Function at 0x140002aa0
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 0x140002f73
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 0x140002f6b
mov qword [rsp + 0x4d8], r15
cmp r14d, 0xc0000004
jne 0x140002f63
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 0x140002f35
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 0x140002e00
lea r8, [rbp - 0x68]
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002df7
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 0x140002ded
mov rcx, qword [rbp - 0x78]
lea rdx, [rsp + 0x50]
call fcn.140004020
test eax, eax
je 0x140002dde
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], pe_nt_image_headers64
mov dword [rbp - 0x54], pe_nt_image_headers64
call fcn.140004020
mov rbx, qword [rbp - 0x70]
test eax, eax
je 0x140002ce2
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 0x140002c9c
lea rcx, str.LookupAccountSid
call fcn.1400038f0
jmp 0x140002ce2
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 0x140002ce2
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 0x140002cf0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x140002dd9
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 0x140002f15
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140002f15
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 0x140002dc7
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.140003c10
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 0x140002e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140002e1c
lea rcx, [0x140008670]
call fcn.1400038f0
lea rcx, str.This_token_is_restricted._n
call fcn.140003c10
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 0x140002ded
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 0x140002f26
mov eax, dword [r15]
test eax, eax
je 0x140002f26
add r15, rax
jmp 0x140002b84
mov edx, dword [rbp - 0x80]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140002e71
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 0x140002e62
lea rcx, [0x140008670]
call fcn.1400038f0
jmp 0x140002e68
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.140003c10
test edi, edi
je 0x140002dc2
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x140002f0c
test r12d, r12d
je 0x140002f0c
xor edi, edi
test r12d, r12d
je 0x140002ecf
mov rbx, rax
mov rsi, r12
nop
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, qword [rbp - 0x78]
call fcn.140004140
test eax, eax
je 0x140002ec5
inc edi
add rbx, 8
sub rsi, 1
jne 0x140002eb0
mov r8d, r12d
lea rcx, str.Found__d__d_required_privileges_in_token._n
mov edx, edi
call fcn.140003c10
cmp edi, r12d
jne 0x140002dc2
lea rcx, str.Found_a_valid_Token_candidate._n
call fcn.140003c10
mov rcx, qword [rsp + 0x58]
mov r13d, 1
mov rax, qword [rbp - 0x78]
mov qword [rcx], rax
jmp 0x140002dc2
lea rcx, str.Found_a_valid_Token._n
jmp 0x140002ef0
lea rcx, str.ConvertSidToStringSid
call fcn.1400038f0
jmp 0x140002dc7
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 0x140002b50
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 0x140002fa2
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r13d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400043a0
add rsp, 0x508
pop r13
pop rbp
ret