Define a mathematical function that only works with perfect square. It falls back on the previous perfect square if current input is not a perfect square. This function only accepts perfect squares ...
This tool uses the core PKG extraction and decryption functionality from the shadPS4 emulator project, stripped down into simple command-line and GUI utilities.