6
0
mirror of https://github.com/avast/ioc synced 2024-06-25 16:28:34 +00:00
ioc-collection/VB-Research/binary_ConstPoolEntry2
2021-05-19 13:26:37 +02:00
..
main.cpp Add files via upload 2021-05-19 13:26:37 +02:00
Module1.bas Add files via upload 2021-05-19 13:26:37 +02:00
Project1.vbp Add files via upload 2021-05-19 13:26:37 +02:00
Project1.vbw Add files via upload 2021-05-19 13:26:37 +02:00
psc.sln Add files via upload 2021-05-19 13:26:37 +02:00
psc.vcproj Add files via upload 2021-05-19 13:26:37 +02:00
README.md Add files via upload 2021-05-19 13:26:37 +02:00

This sample shows how to:

  • embed binary strings in the constant pool
  • decode them in pcode with an xor key given as an arg to the function
  • do C call backs
  • modify data in a c callback for use in the pcode
  • return values both from callbacks, and from the pcode function itself

This one has been simplified from v1 to eliminate the copymemory call and the CStr2Vec pcode function to convert a binary string from the const pool into a byte array.