Function at 0x180001280
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 - 0x580]
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [r14 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001303
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x14]
lea r9d, [r14 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], r14d
lea edx, [r14 + 0x14]
mov dword [rbp - 0x14], 4
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rbp - 0x18]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180001313
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x690], rsi
mov qword [rsp + 0x698], rdi
test ebx, ebx
je 0x18000188b
mov qword [rsp + 0x60], r14
mov qword [rbp - 0xc], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800013a2
lea r8, [rbp - 0xc]
mov dword [rbp - 0x10], 1
lea rdx, str.SeDebugPrivilege
mov dword [rbp - 4], 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x18000139c
mov qword [rsp + 0x28], r14
lea r8, [rbp - 0x10]
mov r9d, 0x10
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x40
lea ecx, [rdx - 0x3f]
call fcn.1800062ac
lea rcx, str.ntdll.dll
mov dword [rbp + 0x30], 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]
test rax, rax
je 0x18000188b
lea rcx, [rbp + 0x30]
call rax
mov ecx, dword [rbp + 0x38]
lea r8, str._u._u
mov r9d, dword [rbp + 0x34]
mov edx, 8
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call fcn.180001010
mov eax, dword [rbp + 0x3c]
lea rdx, str.10.0
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.180008a50
test eax, eax
jne 0x18000143e
mov dword [rbx + 0x38], 0x3f
lea rax, [0x180001a25]
lea rcx, [0x1800019e3]
lea rdx, [0x1800019d8]
jmp 0x1800014dc
lea rdx, [0x18001e680]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x180001478
cmp dword [rbp + 0x3c], 0x1db1
jne 0x180001478
mov dword [rbx + 0x38], 0x3c
lea rax, [0x18000191d]
lea rcx, [0x1800018db]
lea rdx, [0x1800018d0]
jmp 0x1800014dc
lea rdx, [0x18001e688]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x1800014a9
mov dword [rbx + 0x38], 0x3d
lea rax, [0x180001975]
lea rcx, [0x180001933]
lea rdx, [0x180001928]
jmp 0x1800014dc
lea rdx, [0x18001e690]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x18000188b
mov dword [rbx + 0x38], 0x3e
lea rax, [0x1800019cd]
lea rcx, [0x18000198b]
lea rdx, [0x180001980]
mov qword [0x180022ca8], rcx
lea rcx, str.ntdll.dll
mov qword [0x180022cb0], rdx
mov qword [0x180022ca0], rax
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 0x18000188b
lea rcx, [rbx + 0x18]
lea rdx, str.lsass.exe
call rsi
mov rcx, rbx
call fcn.180001070
test eax, eax
je 0x18000188b
lea rax, str.NtReadVirtualMemory
mov dword [rsp + 0x60], 0xb8d18b4c
lea rdx, str.10.0
mov qword [rbx + 0x30], rax
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x180001578
movzx eax, byte [rbx + 0x38]
lea rcx, [0x1800019ee]
mov byte [rsp + 0x64], al
lea rax, [0x1800019f9]
jmp 0x180001604
lea rdx, [0x18001e680]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x1800015ac
cmp dword [rbx + 0x10], 0x1db1
jne 0x1800015ac
movzx eax, byte [rbx + 0x38]
lea rcx, [0x1800018e6]
mov byte [rsp + 0x64], al
lea rax, [0x1800018f1]
jmp 0x180001604
lea rdx, [0x18001e688]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x1800015d7
movzx eax, byte [rbx + 0x38]
lea rcx, [0x18000193e]
mov byte [rsp + 0x64], al
lea rax, [0x180001949]
jmp 0x180001604
lea rdx, [0x18001e690]
mov rcx, rbx
call fcn.180008a50
test eax, eax
jne 0x18000188b
movzx eax, byte [rbx + 0x38]
lea rcx, [0x180001996]
mov byte [rsp + 0x64], al
lea rax, [0x1800019a1]
mov qword [0x180022c88], rcx
lea rcx, str.ntdll.dll
mov qword [0x180022c98], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], 0xa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40
lea r8, [rbp]
mov rcx, rax
lea rdx, [rbp - 0x10]
lea rax, [rbp - 0x14]
mov qword [rsp + 0x20], rax
call qword [0x180022c98]
test eax, eax
jne 0x18000188b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 5
mov qword [rsp + 0x20], r14
mov rcx, rax
lea r8, [rsp + 0x60]
mov rdx, rdi
call qword [0x180022c88]
test eax, eax
jne 0x18000188b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rbp - 0x14]
lea r8, [rbp]
mov rcx, rax
lea rdx, [rbp - 0x10]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call qword [0x180022c98]
test eax, eax
jne 0x18000188b
xorps xmm0, xmm0
mov qword [rsp + 0x68], r14
movdqu xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x78], 0x30
lea r9, [rsp + 0x78]
mov qword [rbp - 0x70], r14
lea r8, [rbp - 0x78]
mov dword [rbp - 0x60], r14d
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x68], r14
mov edx, 0x1fffff
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r14
call qword [0x180022cb0]
cmp qword [rsp + 0x68], r14
je 0x18000188b
movsd xmm0, qword [str.___]
lea rcx, [rbp + 0x15a]
movzx eax, word [0x18001e760]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x150], xmm0
mov word [rbp + 0x158], ax
call fcn.180015050
mov edx, 0x104
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [rbp + 0x360]
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.180008bcc
lea r8, str.Tempdumpert.dmp
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.180008bcc
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 8]
call rsi
mov dword [rsp + 0x50], r14d
lea rax, [rbp + 8]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 0x18]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x48]
mov dword [rsp + 0x38], 5
lea rcx, [rsp + 0x70]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0x80
mov edx, 0x120116
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x70], r14
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x30], 0x40
mov qword [rbp - 0x38], rax
movdqu xmmword [rbp - 0x28], xmm0
call qword [0x180022ca0]
cmp qword [rsp + 0x70], 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
je 0x180001896
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8, qword [rsp + 0x70]
mov r9d, 2
mov rcx, qword [rsp + 0x68]
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]
mov rcx, qword [rsp + 0x70]
call qword [0x180022ca8]
mov rcx, qword [rsp + 0x68]
call qword [0x180022ca8]
mov rdi, qword [rsp + 0x698]
mov rsi, qword [rsp + 0x690]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.180001a40
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call fcn.1800062a0
int3
call qword [0x180022ca8]
mov ecx, 1
call fcn.1800062a0
int3