Tag Archives: aes

Emulation of AESENC and AESENCLAST instructions in x86 assembly

Introduction aesenc and aesenclast are AES-NI instructions impelemented on the x86 architecture. Recently, a well known cryptographer J.P Aumasson published code to emulate these instructions in C, which would be very useful for emulators, and virtual machines in general. The … Continue reading

Posted in assembly, cryptography, encryption, security | Tagged , , , , , , , | Leave a comment

WanaCryptor File Encryption and Decryption

Introduction This is a quick post about the WanaCryptor ransomware wreaking havoc on many networks across the world this weekend. With all the news coverage, most of you already know the trouble caused by it. Once executed on a system, … Continue reading

Posted in cryptography, encryption, malware, public key exchange, security, windows | Tagged , , , , , , , , | 8 Comments

Shellcode: A Windows PIC using RSA-2048 key exchange, AES-256, SHA-3

Introduction This won’t be a tutorial on writing shellcode although you might glean something useful from the source code when writing your own PIC in C. This is a PIC (Position Independent Code) for the Windows Operating System written in … Continue reading

Posted in assembly, cryptography, diffie hellman merkle, networking, programming, public key exchange, security, shellcode, windows | Tagged , , , , , , , | 1 Comment

Windows: CTR mode with Crypto API

Introduction CTR mode turns a block cipher into a stream cipher. The concept was proposed by Whitfield Diffie and Martin Hellman in their 1979 publication, Privacy and Authentication: An Introduction to Cryptography. Unfortunately, CTR mode isn’t supported out of the … Continue reading

Posted in cryptography, programming, windows | Tagged , , , | 2 Comments