in ransomware/artifact.lua [1940:1964]
function globals.CheckForQueuedDiagnosticAlert(processId)
local currentNamespace = globals.namespace
if (#globals.namespaces == 1) and (currentNamespace.isDiagnostic == false) then
return false
end
for _, namespace in pairs(globals.namespaces) do
if namespace.isDiagnostic then
globals.SwitchNamespace(namespace)
break
end
end
if utils.TableHasKey(globals.namespace.processDataTable, processId) then
local diagnosticProcessData = globals.namespace.processDataTable[processId]
if diagnosticProcessData.diagnosticAlertQueued then
utils.DebugLog('diagnosticAlertQueued: ' .. processId)
alert.GenerateAlert(diagnosticProcessData, true)
end
end
globals.SwitchNamespace(currentNamespace)
end