learngence unfortunately I don't know if such a script exists.
You'll have to loop through all posts from the database and look for embedded files in them, then move the file and update the post content.
You'll also need to update the content of the files table, though you could skip files that don't use the download template, since those files don't have a download button and as such won't use the content of that table.