# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


import re
import os
import json
from fame.core.module import ProcessingModule
from fame.common.exceptions import ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, temp_volume



def str_reverse(match):
    return match.group(1)[::-1]


class XLMDeobfuscator(ProcessingModule):
    name = "xlm_deobfuscator"
    description = "Extract and analyze Excel 4.0 macros."
    acts_on = ["excel", "xls", "xlsm"]

    def initialize(self):
        if not HAVE_DOCKER:

# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


# Path: processing/xlmdeobfuscator/xlm_deobfuscator.py
import re
import os
import json
from fame.core.module import ProcessingModule
from fame.common.exceptions import ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, temp_volume




def str_reverse(match):
    return match.group(1)[::-1]


class XLMDeobfuscator(ProcessingModule):
    name = "xlm_deobfuscator"
    description = "Extract and analyze Excel 4.0 macros."
    acts_on = ["excel", "xls", "xlsm"]

    def initialize(self):
        if not HAVE_DOCKER:

            raise ModuleInitializationError(self, "Missing dependency: docker")