| 70 | } |
| 71 | |
| 72 | VOID WindowsShellCodeInvoke::InvokeShellcode(UINT8* bytes_sequence, UINT32 length) { |
| 73 | UINT32 block_size = (length & 0xfffff000) | ((length | 0xfff) ? 1000 : 0); |
| 74 | LPVOID bytes_mem = VirtualAlloc(NULL, block_size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); |
| 75 | memcpy_s(bytes_mem, block_size, bytes_sequence, length); |
| 76 | typedef void(*ShellMem)(); |
| 77 | ((ShellMem)bytes_mem)(); |
| 78 | } |
nothing calls this directly
no outgoing calls
no test coverage detected