I want to figure out decryption algorithm for files of one website. It first loads encrypted files and then with some intricate manipulations with JS it generates the UInt8Array of decrypted binary data. The generated data is the same for the same URL. I tried reverse engineering the process but I get absolutely lost in JS function calls when callstack deapth reaches near hundreds.
My question is whether I can somehow track at which line of code the array of decrypted data first appears in local variables. I know what value it will have for one specific URL, so I need a method that would search for that value in local variables at each step of JS execution and break when it finds that value in local variables. Is it possible? Or maybe I can achieve my goal in a different way?