#include <StringConstants.au3>
$Struct = DllStructCreate("int eax; int ebx; int ecx; int edx")
$StrCode = "0x505352518B7C24148B4424180FA28907895F04894F0889570C595A5B5831C0C20800"
$Code=Binary($StrCode)
$tBinData = DllStructCreate("byte[100]")
DllStructSetData($tBinData, 1, $Code)
DllCallAddress("none", DllStructGetPtr($tBinData), "ptr", DllStructGetPtr($Struct), "int", 0x80000002)
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 1)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 2)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 3)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 4)))
DllCallAddress("none", DllStructGetPtr($tBinData), "ptr", DllStructGetPtr($Struct), "int", 0x80000003)
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 1)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 2)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 3)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 4)))
DllCallAddress("none", DllStructGetPtr($tBinData), "ptr", DllStructGetPtr($Struct), "int", 0x80000004)
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 1)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 2)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 3)))
ConsoleWrite(BinaryToString(DllStructGetData($Struct, 4)))
ConsoleWrite(@CRLF)