Function at 0x140004e5c
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21a8]
mov eax, 0x22a8
call fcn.140016f70
sub rsp, rax
mov rax, qword [0x1400315a0]
xor rax, rsp
mov qword [rbp + 0x2190], rax
mov r12, qword [rbp + 0x2210]
mov r13, qword [rbp + 0x2218]
and qword [rsp + 0x50], 0
mov esi, ecx
mov ebx, 2
mov r14, r9
mov ecx, ebx
mov r15, r8
mov dword [rsp + 0x60], edx
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea edi, [rbx + 0x26]
lea r9, [rsp + 0x50]
mov rcx, rax
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140004f0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x140004f0e
mov ecx, ebx
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
je 0x140004f0e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140004f56
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140004f46
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rbx
call fcn.14000528c
test eax, eax
jne 0x140004f5c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004f56
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x50], 0
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140005015
lea rcx, str.DbgHelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140005007
lea rcx, [rsp + 0x70]
call qword [sym.imp.BugSplat64.dll_public:_void___cdecl_BugSplatImp::constructor_void____ptr64]
lea rcx, [rsp + 0x70]
mov rdx, rbx
call qword [sym.imp.BugSplat64.dll_public:_void___cdecl_BugSplatImp::SuspendAllThreadsInProcess_void____ptr64____ptr64]
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x40], 0x104
lea rax, [rbp + 0x1f80]
lea rcx, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
and qword [rsp + 0x28], 0
mov rdx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.BugSplat64.dll_public:_int___cdecl_BugSplatImp::CreateMiniDump_struct_HINSTANCE______ptr64__unsigned_long_int__void____ptr64__unsigned_long_int__struct__EXCEPTION_POINTERS____ptr64__wchar_t_const____ptr64__wchar_t____ptr64__unsigned_long_int____ptr64]
test eax, eax
je 0x140005007
mov al, byte [rbp + 0x2220]
lea rcx, [rbp + 0x1f80]
mov r9, r12
mov byte [rsp + 0x28], al
mov r8, r14
mov rdx, r15
mov qword [rsp + 0x20], r13
call fcn.140005084
mov edx, 0xfffffffd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140005051
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140005046
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.14000528c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14000505f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x2190]
xor rcx, rsp
call fcn.14000ada0
add rsp, 0x22a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret