Updated blobs

Remove code causing memset link
This commit is contained in:
Nick Landers
2018-05-27 20:56:20 -06:00
parent 4d636bafa9
commit 59b07c5c7d
4 changed files with 15 additions and 12 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+3 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+8 -5
View File
@@ -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++;
}