MCPcopy Create free account
hub / github.com/TideSec/GoBypassAV / Xor

Function Xor

Go_Windows_API/12-ProcCryptProtectMemory/main.go:45–57  ·  view source on GitHub ↗
(src string)

Source from the content-addressed store, hash-verified

43}
44
45func Xor(src string) string {
46 var XorKey = []byte{0x74, 0x69, 0x64, 0x65, 0x62, 0x79, 0x70, 0x61, 0x73, 0x73} //tidesec
47 var result string
48 var s int64
49 j := 0
50 bt := []rune(src)
51 for i := 0; i < len(src)/2; i++ {
52 s, _ = strconv.ParseInt(string(bt[i*2:i*2+2]), 16, 0)
53 result = result + string(byte(s)^XorKey[j])
54 j = (j + 1) % 10
55 }
56 return result
57}
58
59
60func main() {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected