this script is not based from my knowledge, but 100% from Bard Google. Thank You Bard🥳🥳
clone this repository :
git clone https://github.com/rifqiabd/base64extract.gitcopy your curl from download all on devtool like image below

create file curl.txt on your directory and put copied curl on it

after to extract base64 as separate file, you can use php dump.php that will put base64 file to "base" folder. And use php decode.php to convert base64 to jpeg file then you can look the result on "decode" folder.