You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,9 +47,16 @@ public List<DisassembledInstruction> RemoteDisassembleCode(RemoteProcess process
39
47
}
40
48
}
41
49
50
+
/// <summary>
51
+
/// Disassembles the code in the given range (<paramref name="address"/>, <paramref name="lenght"/>).
52
+
/// </summary>
53
+
/// <param name="address">The address of the code.</param>
54
+
/// <param name="length">The length of the code.</param>
55
+
/// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param>
56
+
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
@@ -62,14 +77,22 @@ public IEnumerable<DisassembledInstruction> DisassembleCode(IntPtr address, int
62
77
Instruction=instruction.Instruction
63
78
};
64
79
65
-
eip=eip+instruction.Length;
66
-
virtualAddress=virtualAddress+instruction.Length;
80
+
eip+=instruction.Length;
81
+
virtualAddress+=instruction.Length;
67
82
}
68
83
}
69
84
85
+
/// <summary>
86
+
/// Disassembles the code in the given range (<paramref name="address"/>, <paramref name="lenght"/>) in the remote process until the first 0xCC instruction.
87
+
/// </summary>
88
+
/// <param name="process">The process to read from.</param>
89
+
/// <param name="address">The address of the code.</param>
90
+
/// <param name="length">The length of the code.</param>
91
+
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
@@ -87,75 +110,95 @@ public List<DisassembledInstruction> RemoteDisassembleFunction(RemoteProcess pro
87
110
}
88
111
}
89
112
113
+
/// <summary>
114
+
/// Disassembles the code in the given range (<paramref name="address"/>, <paramref name="lenght"/>) until the first 0xCC instruction.
115
+
/// </summary>
116
+
/// <param name="address">The address of the code.</param>
117
+
/// <param name="length">The length of the code.</param>
118
+
/// <param name="virtualAddress">The virtual address of the code. This allows to decode instructions located anywhere in memory even if they are not at their original place.</param>
119
+
/// <returns>A list of <see cref="DisassembledInstruction"/>.</returns>
0 commit comments