Benign Download

etw.go

Imports Go's unsafe packageSource names ntdll virtual-memory syscall stubs
SHA-25657808cc1c8fa45479b577c257ee70a9cda22d10c9cc7e014d394484633496d51
MaleculeH₂(DbOs)

Evidence

Imports Go's unsafe package lines 1–20
⋯5 lines
6 "fmt"
7 "syscall"
8 "unsafe"
9
10 "github.com/VoidSecSoftwares/voidsyscall/syscallwin"
11)
12
13func PatchETW() error {
14 handle, err := syscall.LoadLibrary("ntdll.dll")
15 if err != nil {
16 return fmt.Errorf("load ntdll: %w", err)
⋯4 lines
Converts a Go pointer through unsafe.Pointer lines 26–36
26:5… oldProtect uint32
27 regionSize := uintptr(64)
28 err = syscallwin.NtProtectVirtualMemory(
29 uintptr(0xffffffffffffffff),
30 (*uintptr)(unsafe.Pointer(&baseAddr)),
31 &regionSize,
32 syscallwin.PAGE_EXECUTE_READWRITE,
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.