mirror of
https://github.com/monoxgas/sRDI
synced 2026-06-06 16:14:36 +00:00
Updated blobs
Remove code causing memset link
This commit is contained in:
+2
-2
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -334,15 +334,18 @@ ULONG_PTR ExecutePayload(ULONG_PTR uiLibraryAddress, DWORD dwFunctionHash, LPVOI
|
||||
uiValueD = ((PIMAGE_SECTION_HEADER)uiValueA)->SizeOfRawData;
|
||||
|
||||
if (uiValueD == 0) {
|
||||
// If the seciton is empty, fill in a zeroed block of X (section alignment) size
|
||||
/// Currently will cause memset to get linked
|
||||
|
||||
uiValueD = ((PIMAGE_NT_HEADERS)uiHeaderValue)->OptionalHeader.SectionAlignment;
|
||||
//// If the seciton is empty, fill in a zeroed block of X (section alignment) size
|
||||
|
||||
while (uiValueD--)
|
||||
*(BYTE *)uiValueB++ = 0x00;
|
||||
//uiValueD = ((PIMAGE_NT_HEADERS)uiHeaderValue)->OptionalHeader.SectionAlignment;
|
||||
|
||||
//while (uiValueD--)
|
||||
// // Silly trick to avoid the optimized link to memset.
|
||||
// *(BYTE *)uiValueB++ = 0x00;
|
||||
}
|
||||
else {
|
||||
while (uiValueD--)
|
||||
while (uiValueD--)
|
||||
*(BYTE *)uiValueB++ = *(BYTE *)uiValueC++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user