-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.d.ts
More file actions
57 lines (40 loc) · 1.43 KB
/
index.d.ts
File metadata and controls
57 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// noinspection JSUnusedGlobalSymbols
declare enum ObfuscationType {
MixedBooleanArithmetic,
ControlFlowFlattening,
BasicBlockSplitter,
IndirectBranch,
SimpleIndirectBranch,
}
declare interface FunctionPassOptions {
/**
* @default 0
* @description number of times a pass will run on a function
*/
PassIterations?: number;
"BasicBlockSplitter.SplitBlockMinSize"?: number;
"BasicBlockSplitter.SplitBlockMaxSize"?: number;
"BasicBlockSplitter.SplitBlockChance"?: number;
"IndirectBranch.Chance"?: number;
"SimpleIndirectBranch.Chance"?: number;
"ControlFlowFlattening.UseFunctionResolverChance"?: number;
"ControlFlowFlattening.UseGlobalStateVariablesChance"?: number;
"ControlFlowFlattening.UseOpaqueTransformationChance"?: number;
"ControlFlowFlattening.UseGlobalVariableOpaquesChance"?: number;
"ControlFlowFlattening.UseSipHashedStateChance"?: number;
"ControlFlowFlattening.CloneSipHashChance"?: number;
}
declare class z {
static None: number;
static Stack: number;
static Global: number;
static RegisterClass(claz: Object): void;
static log(...args: any[]): void;
static RegisterPass(PassType: ObfuscationType, PassOptions?: FunctionPassOptions): void;
static AddMetaData(MetaData: string): void;
}
declare interface ZyroxPlugin {
RunOnFunction(Name: string): void;
OnString(Str: string): number;
Init(): void;
}