Function at 0x140001e90
Capabilities:
Acquire debug privileges
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
lea rax, str.SeImpersonatePrivilege
lea r15, str.SeDebugPrivilege
mov qword [rbp - 0x18], r14
mov ebx, r14d
mov dword [rbp - 0x30], r14d
mov dword [rbp - 0x10], r14d
mov r13d, r14d
mov r12d, r14d
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x18]
lea edx, [r14 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001f0b
lea ebx, [rax + 1]
jmp 0x140001f59
mov edi, r14d
lea rsi, [rbp - 0x28]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, qword [rbp - 0x18]
call fcn.140004150
test eax, eax
jne 0x140001f44
inc ebx
lea rcx, str.____A_privilege_is_missing:__ws_n
mov rdx, r15
call fcn.140001010
inc edi
add rsi, 8
cmp edi, 2
jb 0x140001f20
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x30]
call fcn.140002350
cmp dword [rbp - 0x30], r12d
jne 0x14000207e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov qword [rbp - 0x28], r14
mov r8d, eax
mov dword [rbp - 0x30], r14d
mov ecx, 0x400
mov r15d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000203c
lea r8, [rbp - 0x28]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000203c
mov r9d, dword [rbp - 0x30]
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x19]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000203c
mov edx, dword [rbp - 0x30]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000203c
mov r9d, dword [rbp - 0x30]
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov r8, rdi
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140002033
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov rcx, qword [rdi]
movzx edx, byte [rax]
dec edx
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov r15d, 1
mov r12d, dword [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000204b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140002059
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x140002067
lea rcx, str.____Failed_to_get_process_integrity_level_n
jmp 0x140002077
cmp r12d, 0x3000
jae 0x14000207e
lea rcx, str.____Insufficient_process_integrity_level_n
inc ebx
call fcn.140001010
mov edx, 3
lea ecx, [rdx + 3]
call fcn.140001130
test al, al
jne 0x14000209d
inc ebx
lea rcx, str.____This_version_of_Windows_is_not_supported_n
call fcn.140001010
mov rcx, qword [0x14000b670]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400020c4
mov rdx, qword [0x14000b670]
lea rcx, str.____The_target_dump_file__ws_already_exists_n
inc ebx
call fcn.140001010
mov rcx, qword [0x14000b680]
test rcx, rcx
je 0x1400020e4
lea rdx, [rbp - 0x10]
call fcn.140003db0
mov esi, dword [rbp - 0x10]
test eax, eax
jne 0x1400020f2
inc ebx
jmp 0x1400020f2
mov esi, dword [0x14000b66c]
test esi, esi
je 0x14000231b
test esi, esi
je 0x14000231b
mov r8d, esi
mov dword [rbp - 0x10], r14d
xor edx, edx
mov ecx, 0x1000
mov r15d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140002138
lea rcx, [0x1400081e8]
call fcn.140003900
mov edx, esi
lea rcx, str.____Failed_to_get_the_protection_level_of_process_with_PID__d_n
call fcn.140001010
jmp 0x14000231d
mov r9d, 4
lea r8, [rbp - 0x10]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_GetProcessInformation]
test eax, eax
jne 0x140002161
lea rcx, [0x140008200]
call fcn.140003900
jmp 0x14000216b
mov r13d, dword [rbp - 0x10]
mov r15d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
jne 0x14000218c
mov edx, esi
lea rcx, str.____Failed_to_get_the_protection_level_of_process_with_PID__d_n
call fcn.140001010
jmp 0x14000231d
mov r8d, esi
mov dword [rbp - 0x10], r14d
xor edx, edx
mov ecx, 0x1000
mov edi, r14d
mov r15d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
jne 0x1400021c2
lea rcx, [0x1400081e8]
call fcn.140003900
xor r8d, r8d
jmp 0x1400022eb
mov r9d, 4
lea r8, [rbp - 0x10]
mov rcx, r12
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_GetProcessInformation]
test eax, eax
jne 0x1400021eb
lea rcx, [0x140008200]
call fcn.140003900
jmp 0x1400021f4
mov edi, dword [rbp - 0x10]
mov r15d, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15d, r15d
je 0x1400022e5
mov edx, 0x80
lea ecx, [rdx - 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
test rax, rax
je 0x1400022e8
cmp edi, 5
ja 0x140002275
je 0x14000226c
test edi, edi
je 0x140002263
sub edi, 1
je 0x14000225a
sub edi, 1
je 0x140002251
sub edi, 1
je 0x140002248
cmp edi, 1
jne 0x140002289
lea r9, str.PsProtectedSignerLsa_Light
jmp 0x1400022b4
lea r9, str.PsProtectedSignerAntimalware_Light
jmp 0x1400022b4
lea r9, str.PsProtectedSignerWindows_Light
jmp 0x1400022b4
lea r9, str.PsProtectedSignerWindows
jmp 0x1400022b4
lea r9, str.PsProtectedSignerWinTcb_Light
jmp 0x1400022b4
lea r9, str.PsProtectedSignerWinTcb
jmp 0x1400022b4
cmp edi, 6
je 0x1400022ad
cmp edi, 7
je 0x1400022a4
cmp edi, 8
je 0x14000229b
cmp edi, 0xfffffffe
je 0x140002292
lea r9, str.Unknown
jmp 0x1400022b4
lea r9, str.None
jmp 0x1400022b4
lea r9, str.PsProtectedSignerPplApp
jmp 0x1400022b4
lea r9, str.PsProtectedSignerAuthenticode
jmp 0x1400022b4
lea r9, str.PsProtectedSignerCodegen_Light
lea r8, [0x140007528]
mov edx, 0x40
mov rcx, r15
call fcn.140001070
mov r8, r15
lea rcx, str.Target_process_protection_level:__d____ws_n
mov edx, r13d
call fcn.140003c20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400022fa
mov r15, r14
mov r8, r15
mov edx, r13d
lea rcx, str.Target_process_protection_level:__d____ws_n
call fcn.140003c20
cmp r13d, 8
ja 0x14000230b
mov eax, 0x15d
bt eax, r13d
jb 0x14000231d
mov edx, esi
lea rcx, str.____Process_with_ID__d_is_not_a_PPL_n
call fcn.140001010
jmp 0x14000231d
inc ebx
test ebx, ebx
sete r14b
mov eax, r14d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400043b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret