MCPcopy Create free account
hub / github.com/boku7/Loki / FindVersion

Function FindVersion

dev/execute_assembly/node_assembly_execute.cpp:276–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276BOOL FindVersion(PBYTE assembly, DWORD64 length) {
277 PBYTE assembly_c = assembly;
278 char v4[] = { 0x76,0x34,0x2E,0x30,0x2E,0x33,0x30,0x33,0x31,0x39 };
279
280 for (DWORD64 i = 0; i < length; i++)
281 {
282 for (DWORD64 j = 0; j < 10; j++)
283 {
284 if (v4[j] != assembly_c[i + j])
285 {
286 break;
287 }
288 else
289 {
290 if (j == 9)
291 {
292 return 1;
293 }
294 }
295 }
296 }
297
298 return 0;
299}
300
301DWORD StartCLR(
302 LPCWSTR dotNetVersion,

Callers 1

ExecuteAssemblyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected