Overview
overview
10Static
static
10ElyraGame ....0.exe
windows10-2004-x64
10ElyraGame ....0.exe
windows11-ltsc_2024-x64
10$PLUGINSDI...ls.dll
windows10-2004-x64
3$PLUGINSDI...ls.dll
windows11-ltsc_2024-x64
3$PLUGINSDI...em.dll
windows10-2004-x64
3$PLUGINSDI...em.dll
windows11-ltsc_2024-x64
3$PLUGINSDIR/UAC.dll
windows10-2004-x64
3$PLUGINSDIR/UAC.dll
windows11-ltsc_2024-x64
3$PLUGINSDI...ll.dll
windows10-2004-x64
3$PLUGINSDI...ll.dll
windows11-ltsc_2024-x64
3ElyraGame.exe
windows10-2004-x64
10LICENSES.c...m.html
windows10-2004-x64
3LICENSES.c...m.html
windows11-ltsc_2024-x64
3d3dcompiler_47.dll
windows10-2004-x64
1ffmpeg.dll
windows10-2004-x64
1libEGL.dll
windows10-2004-x64
1libGLESv2.dll
windows10-2004-x64
1locales/mr.ps1
windows10-2004-x64
3locales/mr.ps1
windows11-ltsc_2024-x64
3resources/...dex.js
windows10-2004-x64
3resources/...dex.js
windows11-ltsc_2024-x64
3resources/...pi.dll
windows10-2004-x64
1resources/...pi.dll
windows11-ltsc_2024-x64
1resources/...dex.js
windows10-2004-x64
3resources/...dex.js
windows11-ltsc_2024-x64
3resources/...pi.dll
windows10-2004-x64
1resources/...pi.dll
windows11-ltsc_2024-x64
1resources/...e3.dll
windows10-2004-x64
1resources/...e3.dll
windows11-ltsc_2024-x64
1resources/...act.js
windows10-2004-x64
3resources/...act.js
windows11-ltsc_2024-x64
3sqlite-aut...llback
ubuntu-18.04-amd64
1General
- Target ElyraGame Setup 1.0.0.exe
- Size 98.2MB
- Sample261128-dyxx2aew4s
- SHA256 ff1db5a2d00f1472acacd8751c04a08d1982a088c88667b9dc1ef8e0c7aae998
- MD5 9ad502d07ca0819f9599ee1ced424c18
- SHA1 67bd7d463cd7b92ccec2c7c63bafabc1bd309018
- SHA512 ac6fd3712af633c998b08c64b6fe01ceff627d9fd39f69c4cade0b48c9823d6c0c74f7f05cce03e29d8cf4ea07d64bbbbf521e2e0092f69fbb2dd078dc51ce2f
- SSDEEP 1572864:0DlH6skz0mlzDeY1r+j3Of7LqFdzLcBdyNyBAnScV/e1DjZSeR1z:0DN6HjJPqFdncBdyNPScV/MJR9
- TLSH T1283833868076627ED576EA39F16AFEB24087349C7EB09D83C7A72BDD3F240254D2124D
- MD5 SHA1 SHA512 SSDEEP TLSH
Behavioral task
behavioral1
Sample
ElyraGame Setup 1.0.0.exe
Resource
win10v2004-20260911-en
Behavioral task
behavioral2
Sample
ElyraGame Setup 1.0.0.exe
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral3
Sample
$PLUGINSDIR/StdUtils.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral4
Sample
$PLUGINSDIR/StdUtils.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral5
Sample
$PLUGINSDIR/System.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral6
Sample
$PLUGINSDIR/System.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral7
Sample
$PLUGINSDIR/UAC.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral8
Sample
$PLUGINSDIR/UAC.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral9
Sample
$PLUGINSDIR/WinShell.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral10
Sample
$PLUGINSDIR/WinShell.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral11
Sample
ElyraGame.exe
Resource
win10v2004-20260911-en
Behavioral task
behavioral12
Sample
LICENSES.chromium.html
Resource
win10v2004-20260911-en
Behavioral task
behavioral13
Sample
LICENSES.chromium.html
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral14
Sample
d3dcompiler_47.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral15
Sample
ffmpeg.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral16
Sample
libEGL.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral17
Sample
libGLESv2.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral18
Sample
locales/mr.ps1
Resource
win10v2004-20260911-en
Behavioral task
behavioral19
Sample
locales/mr.ps1
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral20
Sample
resources/app.asar.unpacked/node_modules/@primno/dpapi/dist/index.js
Resource
win10v2004-20260911-en
Behavioral task
behavioral21
Sample
resources/app.asar.unpacked/node_modules/@primno/dpapi/dist/index.js
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral22
Sample
resources/app.asar.unpacked/node_modules/@primno/dpapi/prebuilds/win32-x64/node.napi.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral23
Sample
resources/app.asar.unpacked/node_modules/@primno/dpapi/prebuilds/win32-x64/node.napi.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral24
Sample
resources/app.asar.unpacked/node_modules/datavault-win/dist/index.js
Resource
win10v2004-20260911-en
Behavioral task
behavioral25
Sample
resources/app.asar.unpacked/node_modules/datavault-win/dist/index.js
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral26
Sample
resources/app.asar.unpacked/node_modules/datavault-win/prebuilds/win32-x64/node.napi.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral27
Sample
resources/app.asar.unpacked/node_modules/datavault-win/prebuilds/win32-x64/node.napi.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral28
Sample
resources/app.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.dll
Resource
win10v2004-20260911-en
Behavioral task
behavioral29
Sample
resources/app.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.dll
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral30
Sample
resources/app.asar.unpacked/node_modules/sqlite3/deps/extract.js
Resource
win10v2004-20260911-en
Behavioral task
behavioral31
Sample
resources/app.asar.unpacked/node_modules/sqlite3/deps/extract.js
Resource
win11ltsc2024-20260911-en
Behavioral task
behavioral32
Sample
sqlite-autoconf-3440200/Makefile.fallback
Resource
ubuntu1804-amd64-20261019-en
Malware Config
Extracted
-
C:\Users\Admin\AppData\Local\Temp\WinGet\tools\Lib\site-packages\Crypto\Cipher\__pycache__\_mode_siv.cpython-310.pyc
- o �����J k�5����������������������@��s����d�Z�ddlmZ�ddlmZ�ddlmZmZmZm Z �dgZ ddlmZ�ddl mZ�ddlmZ�dd lmZ�dd lmZ�ddlmZ�erIddlmZ�G�d d��d�Zdd��ZdS�)z- Synthetic Initialization Vector (SIV) mode. �����)�annotations)�compare_digest)� TYPE_CHECKING�Optional�Union�overload�SivMode)� unhexlify)�Method)�_S2V)� is_buffer)�Buffer)� bytes_to_long)� ModuleTypec�������������������@��s����e�Zd�ZdZd5dd�Zd d��Zd6dd�Zd7dd�Zd8dd�Zd9dd�Z d:dd�Z d;dd �Zd<d"d#�Ze d=d%d&��Ze d>d*d&��Z +[email protected]&�Ze dAd0d1��Ze dBd2d1��Z +d?dCd4d1�Zd+S�)Dr���a���Synthetic Initialization Vector (SIV). This is an Authenticated Encryption with Associated Data (`AEAD`_) mode. It provides both confidentiality and authenticity. The header of the message may be left in the clear, if needed, and it will still be subject to authentication. The decryption step tells the receiver if the message comes from a source that really knows the secret key. Additionally, decryption detects if any part of the message - including the header - has been modified or corrupted. Unlike other AEAD modes such as CCM, EAX or GCM, accidental reuse of a nonce is not catastrophic for the confidentiality of the message. The only effect is that an attacker can tell when the same plaintext (and same associated data) is protected with the same key. The length of the MAC is fixed to the block size of the underlying cipher. The key size is twice the length of the key of the underlying cipher. This mode is only available for AES ciphers. +--------------------+---------------+-------------------+ | Cipher | SIV MAC size | SIV key length | | | (bytes) | (bytes) | +====================+===============+===================+ | AES-128 | 16 | 32 | +--------------------+---------------+-------------------+ | AES-192 | 16 | 48 | +--------------------+---------------+-------------------+ | AES-256 | 16 | 64 | +--------------------+---------------+-------------------+ See `RFC5297`_ and the `original paper`__. .. _RFC5297: https://tools.ietf.org/html/rfc5297 .. _AEAD: http://blog.cryptographyengineering.com/2012/05/how-to-choose-authenticated-encryption.html .. __: http://www.cs.ucdavis.edu/~rogaway/papers/keywrap.pdf �factoryr����keyr ����nonce�kwargs�dict�return�Nonec�����������������C��s����|j�|�_� �||�_||�_t|�dvrtdt|����|d�ur5t|�s%td��t|�dkr/td��t|�|�_ �t|�d�}d�|�_ t |d�|��||�jd�|�_||d���|�_|j |d�|��|jfi�|���tjtjtjtjtjg|�_d�S�)N)� ����0����@���zIncorrect key length (%d bytes)z?When provided, the nonce must be bytes, bytearray or memoryviewr���z*When provided, the nonce must be non-empty����)Z ciphermodZ cipher_params)� block_size�_factory�_cipher_params�len� ValueErrorr���� TypeError�bytesr����_mac_tagr����_kdf�_subkey_cipher�newZMODE_ECBr ����UPDATE�ENCRYPT�DECRYPT�DIGEST�VERIFY�_next)�selfr���r���r���r���Zsubkey_size��r-����[C:\Users\Admin\AppData\Local\Temp\WinGet\tools\Lib\site-packages\Crypto/Cipher/_mode_siv.py�__init__C���s&��� zSivMode.__init__c�����������������C��s4���t�|�}|d@�}|�jj|�j|�jjf|dd�|�j��S�)z*Create a new CTR cipher from V in SIV model ������������������)� initial_valuer���N)r���r���r%���r$���ZMODE_CTRr���)r,����vZv_int�qr-���r-���r.����_create_ctr_ciphere���s��� ���zSivMode._create_ctr_cipher� componentc�����������������C��s>���t�j|�jvr td��t�jt�jt�jt�jt�jg|�_|�j� |��|�S�)a���Protect one associated data component For SIV, the associated data is a sequence (*vector*) of non-empty byte strings (*components*). This method consumes the next component. It must be called once for each of the components that constitue the associated data. Note that the components have clear boundaries, so that: >>> cipher.update(b"builtin") >>> cipher.update(b"securely") is not equivalent to: >>> cipher.update(b"built") >>> cipher.update(b"insecurely") If there is no associated data, this method must not be called. Args: component (bytes/bytearray/memoryview): The next associated data component. z<update() can only be called immediately after initializationN) r ���r&���r+���r ���r'���r(���r)���r*���r#����update)r,���r5���r-���r-���r.���r6���n���s ���zSivMode.update� plaintextr!���c�����������������C������t�d��)z� For SIV, encryption and MAC authentication must take place at the same point. This method shall not be used. Use `encrypt_and_digest` instead. zEencrypt() not allowed for SIV mode. Use encrypt_and_digest() instead.N�r ����r,���r7���r-���r-���r.����encrypt��������zSivMode.encrypt� ciphertextc�����������������C��r8���)z� For SIV, decryption and verification must take place at the same point. This method shall not be used. Use `decrypt_and_verify` instead. zEdecrypt() not allowed for SIV mode. Use decrypt_and_verify() instead.Nr9���)r,���r=���r-���r-���r.����decrypt����r<���zSivMode.decryptc�����������������C��s:���t�j|�jvr td��t�jg|�_|�jdu�r|�j���|�_|�jS�)a ��Compute the *binary* MAC tag. The caller invokes this function at the very end. This method returns the MAC that shall be sent to the receiver, together with the ciphertext. Returns: the MAC, as a byte string. zAdigest() cannot be called when decrypting or validating a messageN)r ���r)���r+���r ���r"���r#����derive�r,���r-���r-���r.����digest����s��� zSivMode.digest�strc�����������������C��s���|��������S�)z�Compute the *printable* MAC tag. This method is like `digest`. Returns: the MAC, as a hexadecimal string. N)rA����hexr@���r-���r-���r.���� hexdigest����s���zSivMode.hexdigest�received_mac_tagc�����������������C��sL���t�j|�jvr td��t�jg|�_|�jdu�r|�j���|�_t|�j|�s$td��dS�)a<��Validate the *binary* MAC tag. The caller invokes this function at the very end. This method checks if the decrypted message is indeed valid (that is, if the key is correct) and it has not been tampered with while in transit. Args: received_mac_tag (bytes/bytearray/memoryview): This is the *binary* MAC, as received from the sender. Raises: ValueError: if the MAC does not match. The message has been tampered with or the key is incorrect. z3verify() cannot be called when encrypting a messageNzMAC check failed) r ���r*���r+���r ���r"���r#���r?���r���r���)r,���rE���r-���r-���r.����verify����s��� �zSivMode.verify�hex_mac_tagc�����������������C��s���|���t|���dS�)ak��Validate the *printable* MAC tag. This method is like `verify`. Args: hex_mac_tag (string): This is the *printable* MAC, as received from the sender. Raises: ValueError: if the MAC does not match. The message has been tampered with or the key is incorrect. N)rF���r ���)r,���rG���r-���r-���r.���� hexverify����s���zSivMode.hexverify�tuple[bytes, bytes]c�����������������C������d�S��Nr-���r:���r-���r-���r.����encrypt_and_digest��������zSivMode.encrypt_and_digest�output�Union[bytearray, memoryview]�tuple[None, bytes]c�����������������C��rJ���rK���r-���)r,���r7���rN���r-���r-���r.���rL�����������N�&Optional[Union[bytearray, memoryview]]�tuple[Optional[bytes], bytes]c�����������������C��sn���t�j|�jvr td��t�jg|�_t|�d�r|�j�|�j��|�j�|��|�j� ��|�_ |��|�j �}|j||d�|�j fS�)a)��Perform encrypt() and digest() in one step. Args: plaintext (bytes/bytearray/memoryview): The piece of data to encrypt. Keyword Args: output (bytearray/memoryview): The location where the ciphertext must be written to. If ``None``, the ciphertext is returned. Returns: The tuple ``(ciphertext, tag)``, both ``bytes``. The ciphertext is ``None`` when the ``output`` parameter specified a location for the result. z@encrypt() can only be called after initialization or an update()r����rN���N) r ���r'���r+���r ���r)����hasattrr#���r6���r���r?���r"���r4���r;���)r,���r7���rN����cipherr-���r-���r.���rL�������s��� �mac_tagc�����������������C��rJ���rK���r-���)r,���r=���rW���r-���r-���r.����decrypt_and_verify��rM���zSivMode.decrypt_and_verifyc�����������������C��rJ���rK���r-���)r,���r=���rW���rN���r-���r-���r.���rX�����rQ����Optional[bytes]c�����������������C��s����t�j|�jvr td��t�jg|�_|��|�|�_|�jj||d�}t|�d�r)|�j � |�j��|�j � |du�r2|n|��z|��|��W�|S��t yS���|durRtt|��|dd�<���w�)a���Perform decryption and verification in one step. A cipher object is stateful: once you have decrypted a message you cannot decrypt (or encrypt) another message with the same object. You cannot reuse an object for encrypting or decrypting other data with the same key. This function does not remove any padding from the plaintext. Args: ciphertext (bytes/bytearray/memoryview): The piece of data to decrypt. It can be of any length. mac_tag (bytes/bytearray/memoryview): This is the *binary* MAC, as received from the sender. Keyword Args: output (bytearray/memoryview): The location where the plaintext must be written to. If ``None``, the plaintext is returned. If the MAC does not match, the location is filled with zeroes. Returns: the plaintext as ``bytes`` or ``None`` when the ``output`` parameter specified a location for the result. Raises: ValueError: if the MAC does not match. The message has been tampered with or the key is incorrect. z@decrypt() can only be called after initialization or an update()rT���r���N)r ���r(���r+���r ���r*���r4���Z_cipherr>���rU���r#���r6���r���rF���r���r!���r���)r,���r=���rW���rN���r7���r-���r-���r.���rX�����s ���" ��) r���r���r���r ���r���r ���r���r���r���r���)r5���r ���r���r���)r7���r ���r���r!���)r=���r ���r���r!���)r���r!���)r���rB���)rE���r ���r���r���)rG���rB���r���r���)r7���r ���r���rI���)r7���r ���rN���rO���r���rP���rK���)r7���r ���rN���rR���r���rS���)r=���r ���rW���r ���r���r!���)r=���r ���rW���r ���rN���rO���r���r���)r=���r ���rW���r ���rN���rR���r���rY���)�__name__� __module__�__qualname__�__doc__r/���r4���r6���r;���r>���rA���rD���rF���rH���r���rL���rX���r-���r-���r-���r.���r������s.���� '" " �!�c�������������� ���K��sR���z|��d�}W�n�ty�}�ztdt|����d}~ww�|��dd�}t|�|||�S�)a^��Create a new block cipher, configured in Synthetic Initializaton Vector (SIV) mode. Args: factory (object): A symmetric cipher module from `Crypto.Cipher` (like `Crypto.Cipher.AES`). Keyword Args: key (bytes/bytearray/memoryview): The secret key to use in the symmetric cipher. It must be 32, 48 or 64 bytes long. If AES is the chosen cipher, the variants *AES-128*, *AES-192* and or *AES-256* will be used internally. nonce (bytes/bytearray/memoryview): For deterministic encryption, it is not present. Otherwise, it is a value that must never be reused for encrypting message under this key. There are no restrictions on its length, but it is recommended to use at least 16 bytes. r���zMissing parameter: Nr���)�pop�KeyErrorr ���rB���r���)r���r���r����er���r-���r-���r.����_create_siv_cipherW��s�����ra���N)r]���� __future__r����hmacr����typingr���r���r���r����__all__�binasciir ���ZCrypto.Cipher._state_machiner ���ZCrypto.Protocol.KDFr���ZCrypto.Util._raw_apir���ZCrypto.Util._typingr ���ZCrypto.Util.numberr����typesr���r���ra���r-���r-���r-���r.����<module>���s"�����>
-
+[email protected]&�Ze
Extracted
-
C:\Users\Admin\AppData\Local\Temp\WinGet\tools\Lib\site-packages\Crypto\Cipher\__pycache__\AES.cpython-310.pyc
- o �����J ki:����������������������@��s���U�d�dl�mZ�d�dlZd�dlmZmZmZmZmZm Z �d�dl mZ�d�dlm Z �d�dlmZ�d�dlmZmZmZmZmZ�d�dlmZ�er�d�d lmZ�d�d lmZ�d�dlmZ�d�dlmZ�d�d l m!Z!�d�dl"m#Z#�d�dl$m%Z%�d�dl&m'Z'�d�dl(m)Z)�d�dl*m+Z+�d�dl,m-Z-�d�dl.m/Z/�d�dl0m1Z1�d�dl2m3Z3�d�dl4m5Z5�d�dl6m7Z7�dZ8de9d<�dZ:de9d<�dZ;d e9d!<�d"Z<d#e9d$<�d%Z=d&e9d'<�d(Z>d)e9d*<�d+Z?d,e9d-<�d.Z@d/e9d0<�d1ZAd2e9d3<�d4ZBd5e9d6<�d7ZCd8e9d9<�d:ZDd;e9d<<�d=ZEd>e9d?<�d@ZFdAe9dB<�dCZGdDe9dE<�dFZHedGeH�ZIdHdI��ZJeJ��ZKdJdK��ZLdLdM��ZMe d�d�dVdW��ZNe d�d�d[dW��ZNe d�d�d]dW��ZNe Nd�d�dadW��ZNe Nd�d�dbdW��ZNe d�d�dddW��ZNe d�d�dedW��ZNe N N N N Nd�d�dmdW��ZNe d�d�dodW��ZNe d�d�dpdW��ZNe N N N Nd�d�dtdW��ZNe Nd�d�dvdW��ZNe d�d�dxdW��ZNe N N N Nd�d�dzdW��ZNe N N N Nd�d�d|dW��ZNe d�d�d~dW��ZNe d�d�d�dW��ZNe N N Nd�d�d�dW��ZNe dNd��d�d�dW��ZNd�d�dW�ZNdCZOd_e9d�<�d�ZPd�e9d�<�dS�)������)�annotationsN)� TYPE_CHECKING�Any�Literal�Optional�Union�overload)�_create_cipher)�get_random_bytes)� _cpu_features)�SmartPointer�VoidPointer�c_size_t�c_uint8_ptr_len�load_pycryptodome_raw_lib)�Buffer)�CbcMode)�CcmMode)�CfbMode)�CtrMode)�EaxMode)�EcbMode)�GcmMode)� GcmSivMode)�KWMode)�KWPMode)�OcbMode)�OfbMode)�OpenPgpMode)�SivMode)�XtsMode)� CounterParams����� Literal[1]�MODE_ECB����� Literal[2]�MODE_CBC����� Literal[3]�MODE_CFB����� Literal[5]�MODE_OFB����� Literal[6]�MODE_CTR����� Literal[7]�MODE_OPENPGP����� Literal[8]�MODE_CCM� ���� Literal[9]�MODE_EAX� ����Literal[10]�MODE_SIV�����Literal[11]�MODE_GCM�����Literal[12]�MODE_OCB� ����Literal[13]�MODE_KW�����Literal[14]�MODE_KWP�����Literal[15]�MODE_GCM_SIV�����Literal[16]�MODE_XTSa�� int AES_start_operation(const uint8_t key[], size_t key_len, void **pResult); int AES_encrypt(const void *state, const uint8_t *in, uint8_t *out, size_t data_len); int AES_decrypt(const void *state, const uint8_t *in, uint8_t *out, size_t data_len); int AES_stop_operation(void *state); zCrypto.Cipher._raw_aesc������������������C��sp���t����r d\}�}nt����rd\}�}ndS�zt|�t�d|��}W�n �ty)���Y�dS�w�t||d��t||d��fS�)z�Return the (start, stop) functions of the AES implementation with the AES instructions of the CPU (AES-NI on x86, the ARMv8 Cryptography Extensions on AArch64), or None if the CPU does not have them.)zCrypto.Cipher._raw_aesniZAESNI)zCrypto.Cipher._raw_aes_armv8Z AES_ARMV8NZAESZ_start_operationZ_stop_operation)r���Zhave_aes_niZhave_aes_armv8r����_cproto�replace�OSError�getattr)�name�prefix�lib��rV����UC:\Users\Admin\AppData\Local\Temp\WinGet\tools\Lib\site-packages\Crypto/Cipher/AES.py�_load_aes_hw^���s��� �rX���c����������� ������C��s����|���dd�}z|���d�}W�n�ty���td��w�t|�tvr'tdt|����|r0tr0t\}}ntj}tj }t ��}t|�\}}||t|�|� ���}|rQtd|���t|���|�S�)z}This method instantiates and returns a handle to a low-level base cipher. It will absorb named parameters in the process.� use_aesniT�keyzMissing 'key' parameterz#Incorrect AES key length (%d bytes)z+Error %X while instantiating the AES cipherN)�pop�KeyError� TypeError�len�key_size� ValueError�_raw_aes_hw�_raw_aes_libZAES_start_operationZAES_stop_operationr ���r���r���Z address_ofr����get) Zdict_parametersrY���rZ���Zstart_operationZstop_operation�cipherZkey_ptrZkey_len�resultrV���rV���rW����_create_base_cipheru���s$���� rf���c�����������������C��sd���t�|��dkr td��|du�rtd�}n t�|�dkrtd��t|�dd��t��|�}|�dd��||fS�)zrDerive a tuple (r, s, nonce) for a Poly1305 MAC. If nonce is ``None``, a new 16-byte nonce is generated. � ���z(Poly1305 with AES requires a 32-byte keyNrL���z*Poly1305 with AES requires a 16-byte nonce)r^���r`���r ����newr$���Zencrypt)rZ����nonce�srV���rV���rW����_derive_Poly1305_key_pair����s��� rk���.rZ���r����moderY����bool�returnr���c�����������������C������d�S��NrV����rZ���rl���rY���rV���rV���rW���rh�����������rh����iv�Optional[Buffer]r���c�����������������C��ro���rp���rV����rZ���rl���rs���rY���rV���rV���rW���rh�������rr����IVc�����������������C��ro���rp���rV����rZ���rl���rv���rY���rV���rV���rW���rh�������rr����segment_size�intr���c�����������������C��ro���rp���rV���)rZ���rl���rs���rx���rY���rV���rV���rW���rh�����������c�����������������C��ro���rp���rV���)rZ���rl���rv���rx���rY���rV���rV���rW���rh�������rz���r���c�����������������C��ro���rp���rV���ru���rV���rV���rW���rh�������rr���c�����������������C��ro���rp���rV���rw���rV���rV���rW���rh�������rr���ri���� initial_value�Union[int, Buffer]�counterr!����threadsr���c�����������������C��ro���rp���rV���)rZ���rl���ri���r{���r}���rY���r~���rV���rV���rW���rh�������s��� r���c�����������������C��ro���rp���rV���ru���rV���rV���rW���rh�������rr���c�����������������C��ro���rp���rV���rw���rV���rV���rW���rh�������rr����mac_len� assoc_lenr���c�����������������C��ro���rp���rV���)rZ���rl���ri���r���r����rY���rV���rV���rW���rh�����������r���c�����������������C��ro���rp���rV���)rZ���rl���ri���r���rY���rV���rV���rW���rh�������rz���r���c�����������������C��ro���rp���rV���)rZ���rl���ri���rY���rV���rV���rW���rh�������rr���r���c�����������������C��ro���rp���rV����rZ���rl���ri���r���rY���r~���rV���rV���rW���rh�������r����r���c�����������������C��ro���rp���rV���r����rV���rV���rW���rh�������r����r���c�����������������C��ro���rp���rV���rq���rV���rV���rW���rh�����rr���r���c�����������������C��ro���rp���rV���rq���rV���rV���rW���rh�����rr���r���c�����������������C��ro���rp���rV���)rZ���rl���ri���rY���r~���rV���rV���rW���rh��� ��s���)rY����tweakr ���c����������������C��ro���rp���rV���)rZ���rl���r����rY���rV���rV���rW���rh�����rr����argsr����kwargsc�����������������O��s(���d|d<�t�tjt�|�|g|�R�i�|��S�)a2��Create a new AES cipher. Args: key(bytes/bytearray/memoryview): The secret key to use in the symmetric cipher. It must be 16 (*AES-128)*, 24 (*AES-192*) or 32 (*AES-256*) bytes long. For ``MODE_SIV`` only, it doubles to 32, 48, or 64 bytes. For ``MODE_GCM_SIV`` only, it must be 16 or 32 bytes long. For ``MODE_XTS`` only, it must be 32 or 64 bytes long: two AES-128 or AES-256 keys (concatenated), which must be different. mode (a ``MODE_*`` constant): The chaining mode to use for encryption or decryption. If in doubt, use ``MODE_GCM`` (with a random 12-byte ``nonce``). Keyword Args: iv (bytes/bytearray/memoryview): (Only applicable for ``MODE_CBC``, ``MODE_CFB``, ``MODE_OFB``, and ``MODE_OPENPGP`` modes). The initialization vector to use for encryption or decryption. For ``MODE_CBC``, ``MODE_CFB``, and ``MODE_OFB`` it must be 16 bytes long. For ``MODE_OPENPGP`` mode only, it must be 16 bytes long for encryption and 18 bytes for decryption (in the latter case, it is actually the *encrypted* IV which was prefixed to the ciphertext). If not provided, a random byte string is generated (you must then read its value with the :attr:`iv` attribute). nonce (bytes/bytearray/memoryview): (Only applicable for ``MODE_CCM``, ``MODE_EAX``, ``MODE_GCM``, ``MODE_SIV``, ``MODE_GCM_SIV``, ``MODE_OCB``, and ``MODE_CTR``). A value that must never be reused for any other encryption done with this key (except possibly for ``MODE_SIV`` and ``MODE_GCM_SIV``, see below). For ``MODE_EAX``, ``MODE_GCM`` and ``MODE_SIV`` there are no restrictions on its length (recommended: **16** bytes). For ``MODE_CCM``, its length must be in the range **[7..13]**. Bear in mind that with CCM there is a trade-off between nonce length and maximum message size. Recommendation: **11** bytes. For ``MODE_OCB``, its length must be in the range **[1..15]** (recommended: **15**). For ``MODE_CTR``, its length must be in the range **[0..15]** (recommended: **8**). For ``MODE_SIV``, the nonce is optional, if it is not specified, then no nonce is being used, which renders the encryption deterministic. For ``MODE_GCM_SIV``, it must be **12** bytes long. Reusing a nonce only reveals if the same message was encrypted twice (with the same key, nonce and associated data). If not provided, for modes other than ``MODE_SIV``, a random byte string of the recommended length is used (you must then read its value with the :attr:`nonce` attribute). segment_size (integer): (Only ``MODE_CFB``).The number of **bits** the plaintext and ciphertext are segmented in. It must be a multiple of 8. If not specified, it will be assumed to be 8. mac_len (integer): (Only ``MODE_EAX``, ``MODE_GCM``, ``MODE_OCB``, ``MODE_CCM``) Length of the authentication tag, in bytes. It must be even and in the range **[4..16]**. The recommended value (and the default, if not specified) is **16**. msg_len (integer): (Only ``MODE_CCM``). Length of the message to (de)cipher. If not specified, ``encrypt`` must be called with the entire message. Similarly, ``decrypt`` can only be called once. assoc_len (integer): (Only ``MODE_CCM``). Length of the associated data. If not specified, all associated data is buffered internally, which may represent a problem for very large messages. initial_value (integer or bytes/bytearray/memoryview): (Only ``MODE_CTR``). The initial value for the counter. If not present, the cipher will start counting from 0. The value is incremented by one for each block. The counter number is encoded in big endian mode. counter (object): (Only ``MODE_CTR``). Instance of ``Crypto.Util.Counter``, which allows full customization of the counter block. This parameter is incompatible to both ``nonce`` and ``initial_value``. use_aesni: (boolean): Use the AES instructions of the CPU (default: use if available): AES-NI on x86, or the Cryptography Extensions on 64-bit ARM. threads (integer): (Only ``MODE_CTR``, ``MODE_GCM``, ``MODE_GCM_SIV`` and ``MODE_OCB``). The maximum number of threads used to encrypt or decrypt long data (default: 1, no extra threads). Use 0 for as many threads as the CPU cores available to this process. Each thread processes at least 1 MiB of a single call to ``encrypt()`` or ``decrypt()``: with shorter inputs, fewer threads are used, or none at all. For best results, do not exceed the number of physical cores. The output does not depend on the number of threads. tweak (bytes/bytearray/memoryview): (Only ``MODE_XTS``, where it is mandatory). The value that identifies the data unit, 16 bytes long. For a sector number, use ``number.to_bytes(16, "little")``. Returns: :ref:`A cipher object <aes_modes>`: Its class depends on ``mode``, see the table in :ref:`aes_modes`. TZ add_aes_modesN)r ����sys�modules�__name__)rZ���rl���r����r����rV���rV���rW���rh�����s���� � block_size)rL�������rg���ztuple[int, int, int]r_���).)rZ���r���rl���r#���rY���rm���rn���r���)..) rZ���r���rl���r&���rs���rt���rY���rm���rn���r���) rZ���r���rl���r&���rv���rt���rY���rm���rn���r���)...)rZ���r���rl���r)���rs���rt���rx���ry���rY���rm���rn���r���)rZ���r���rl���r)���rv���rt���rx���ry���rY���rm���rn���r���) rZ���r���rl���r,���rs���rt���rY���rm���rn���r���) rZ���r���rl���r,���rv���rt���rY���rm���rn���r���).....)rZ���r���rl���r/���ri���rt���r{���r|���r}���r!���rY���rm���r~���ry���rn���r���) rZ���r���rl���r2���rs���rt���rY���rm���rn���r���) rZ���r���rl���r2���rv���rt���rY���rm���rn���r���)....)rZ���r���rl���r5���ri���rt���r���ry���r����ry���rY���rm���rn���r���)rZ���r���rl���r8���ri���rt���r���ry���rY���rm���rn���r���) rZ���r���rl���r;���ri���rt���rY���rm���rn���r���)rZ���r���rl���r>���ri���rt���r���ry���rY���rm���r~���ry���rn���r���)rZ���r���rl���rA���ri���rt���r���ry���rY���rm���r~���ry���rn���r���)rZ���r���rl���rD���rY���rm���rn���r���)rZ���r���rl���rG���rY���rm���rn���r���)rZ���r���rl���rJ���ri���rt���rY���rm���r~���ry���rn���r���) rZ���r���rl���rM���r����r���rY���rm���rn���r ���) rZ���r���rl���ry���r����r���r����r���rn���r���)Q� __future__r���r�����typingr���r���r���r���r���r���Z Crypto.Cipherr ���Z Crypto.Randomr ���ZCrypto.Utilr���ZCrypto.Util._raw_apir���r ���r���r���r���ZCrypto.Util._typingr���ZCrypto.Cipher._mode_cbcr���ZCrypto.Cipher._mode_ccmr���ZCrypto.Cipher._mode_cfbr���ZCrypto.Cipher._mode_ctrr���ZCrypto.Cipher._mode_eaxr���ZCrypto.Cipher._mode_ecbr���ZCrypto.Cipher._mode_gcmr���ZCrypto.Cipher._mode_gcm_sivr���ZCrypto.Cipher._mode_kwr���ZCrypto.Cipher._mode_kwpr���ZCrypto.Cipher._mode_ocbr���ZCrypto.Cipher._mode_ofbr���ZCrypto.Cipher._mode_openpgpr���ZCrypto.Cipher._mode_sivr���ZCrypto.Cipher._mode_xtsr ���ZCrypto.Util.Counterr!���r$����__annotations__r'���r*���r-���r0���r3���r6���r9���r<���r?���rB���rE���rH���rK���rN���rO���rb���rX���ra���rf���rk���rh���r����r_���rV���rV���rV���rW����<module>���s���� ���� �� � � �
Extracted
-
C:\Users\Admin\AppData\Local\Temp\WinGet\tools\Lib\site-packages\Crypto\Cipher\AES.py
- # # Cipher/AES.py : AES # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, royalty-free, # non-exclusive license to exercise all rights associated with the # contents of this file for any purpose whatsoever. # No rights are reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # =================================================================== from __future__ import annotations import sys from typing import TYPE_CHECKING, Any, Literal, Optional, Union, overload from Crypto.Cipher import _create_cipher from Crypto.Random import get_random_bytes from Crypto.Util import _cpu_features from Crypto.Util._raw_api import ( SmartPointer, VoidPointer, c_size_t, c_uint8_ptr_len, load_pycryptodome_raw_lib, ) from Crypto.Util._typing import Buffer if TYPE_CHECKING: from Crypto.Cipher._mode_cbc import CbcMode from Crypto.Cipher._mode_ccm import CcmMode from Crypto.Cipher._mode_cfb import CfbMode from Crypto.Cipher._mode_ctr import CtrMode from Crypto.Cipher._mode_eax import EaxMode from Crypto.Cipher._mode_ecb import EcbMode from Crypto.Cipher._mode_gcm import GcmMode from Crypto.Cipher._mode_gcm_siv import GcmSivMode from Crypto.Cipher._mode_kw import KWMode from Crypto.Cipher._mode_kwp import KWPMode from Crypto.Cipher._mode_ocb import OcbMode from Crypto.Cipher._mode_ofb import OfbMode from Crypto.Cipher._mode_openpgp import OpenPgpMode from Crypto.Cipher._mode_siv import SivMode from Crypto.Cipher._mode_xts import XtsMode from Crypto.Util.Counter import CounterParams MODE_ECB: Literal[1] = 1 #: Electronic Code Book (:ref:`ecb_mode`) MODE_CBC: Literal[2] = 2 #: Cipher-Block Chaining (:ref:`cbc_mode`) MODE_CFB: Literal[3] = 3 #: Cipher Feedback (:ref:`cfb_mode`) MODE_OFB: Literal[5] = 5 #: Output Feedback (:ref:`ofb_mode`) MODE_CTR: Literal[6] = 6 #: Counter mode (:ref:`ctr_mode`) MODE_OPENPGP: Literal[7] = 7 #: OpenPGP mode (:ref:`openpgp_mode`) MODE_CCM: Literal[8] = 8 #: Counter with CBC-MAC (:ref:`ccm_mode`) MODE_EAX: Literal[9] = 9 #: :ref:`eax_mode` MODE_SIV: Literal[10] = 10 #: Synthetic Initialization Vector (:ref:`siv_mode`) MODE_GCM: Literal[11] = 11 #: Galois Counter Mode (:ref:`gcm_mode`) MODE_OCB: Literal[12] = 12 #: Offset Code Book (:ref:`ocb_mode`) MODE_KW: Literal[13] = 13 #: Key Wrap (:ref:`kw_mode`) MODE_KWP: Literal[14] = 14 #: Key Wrap with Padding (:ref:`kwp_mode`) MODE_GCM_SIV: Literal[15] = 15 #: AES-GCM-SIV (:ref:`gcm_siv_mode`) MODE_XTS: Literal[16] = 16 #: XEX with ciphertext stealing, for storage (:ref:`xts_mode`) _cproto = """ int AES_start_operation(const uint8_t key[], size_t key_len, void **pResult); int AES_encrypt(const void *state, const uint8_t *in, uint8_t *out, size_t data_len); int AES_decrypt(const void *state, const uint8_t *in, uint8_t *out, size_t data_len); int AES_stop_operation(void *state); """ # Load portable AES _raw_aes_lib = load_pycryptodome_raw_lib("Crypto.Cipher._raw_aes", _cproto) def _load_aes_hw(): """Return the (start, stop) functions of the AES implementation with the AES instructions of the CPU (AES-NI on x86, the ARMv8 Cryptography Extensions on AArch64), or None if the CPU does not have them.""" if _cpu_features.have_aes_ni(): name, prefix = "Crypto.Cipher._raw_aesni", "AESNI" elif _cpu_features.have_aes_armv8(): name, prefix = "Crypto.Cipher._raw_aes_armv8", "AES_ARMV8" else: return None try: lib = load_pycryptodome_raw_lib(name, _cproto.replace("AES", prefix)) # The module may not have been compiled in except OSError: return None return (getattr(lib, prefix + "_start_operation"), getattr(lib, prefix + "_stop_operation")) _raw_aes_hw = _load_aes_hw() def _create_base_cipher(dict_parameters): """This method instantiates and returns a handle to a low-level base cipher. It will absorb named parameters in the process.""" use_aesni = dict_parameters.pop("use_aesni", True) try: key = dict_parameters.pop("key") except KeyError: raise TypeError("Missing 'key' parameter") if len(key) not in key_size: raise ValueError("Incorrect AES key length (%d bytes)" % len(key)) if use_aesni and _raw_aes_hw: start_operation, stop_operation = _raw_aes_hw else: start_operation = _raw_aes_lib.AES_start_operation stop_operation = _raw_aes_lib.AES_stop_operation cipher = VoidPointer() key_ptr, key_len = c_uint8_ptr_len(key) result = start_operation(key_ptr, c_size_t(key_len), cipher.address_of()) if result: raise ValueError("Error %X while instantiating the AES cipher" % result) return SmartPointer(cipher.get(), stop_operation) def _derive_Poly1305_key_pair(key, nonce): """Derive a tuple (r, s, nonce) for a Poly1305 MAC. If nonce is ``None``, a new 16-byte nonce is generated. """ if len(key) != 32: raise ValueError("Poly1305 with AES requires a 32-byte key") if nonce is None: nonce = get_random_bytes(16) elif len(nonce) != 16: raise ValueError("Poly1305 with AES requires a 16-byte nonce") s = new(key[:16], MODE_ECB).encrypt(nonce) return key[16:], s, nonce @overload def new(key: Buffer, mode: Literal[1], use_aesni: bool = ...) -> EcbMode: ... @overload def new(key: Buffer, mode: Literal[2], iv: Optional[Buffer] = ..., use_aesni: bool = ...) -> CbcMode: ... @overload def new(key: Buffer, mode: Literal[2], IV: Optional[Buffer] = ..., use_aesni: bool = ...) -> CbcMode: ... @overload def new( key: Buffer, mode: Literal[3], iv: Optional[Buffer] = ..., segment_size: int = ..., use_aesni: bool = ... ) -> CfbMode: ... @overload def new( key: Buffer, mode: Literal[3], IV: Optional[Buffer] = ..., segment_size: int = ..., use_aesni: bool = ... ) -> CfbMode: ... @overload def new(key: Buffer, mode: Literal[5], iv: Optional[Buffer] = ..., use_aesni: bool = ...) -> OfbMode: ... @overload def new(key: Buffer, mode: Literal[5], IV: Optional[Buffer] = ..., use_aesni: bool = ...) -> OfbMode: ... @overload def new( key: Buffer, mode: Literal[6], nonce: Optional[Buffer] = ..., initial_value: Union[int, Buffer] = ..., counter: CounterParams = ..., use_aesni: bool = ..., threads: int = ..., ) -> CtrMode: ... @overload def new(key: Buffer, mode: Literal[7], iv: Optional[Buffer] = ..., use_aesni: bool = ...) -> OpenPgpMode: ... @overload def new(key: Buffer, mode: Literal[7], IV: Optional[Buffer] = ..., use_aesni: bool = ...) -> OpenPgpMode: ... @overload def new( key: Buffer, mode: Literal[8], nonce: Optional[Buffer] = ..., mac_len: int = ..., assoc_len: int = ..., use_aesni: bool = ..., ) -> CcmMode: ... @overload def new( key: Buffer, mode: Literal[9], nonce: Optional[Buffer] = ..., mac_len: int = ..., use_aesni: bool = ... ) -> EaxMode: ... @overload def new(key: Buffer, mode: Literal[10], nonce: Optional[Buffer] = ..., use_aesni: bool = ...) -> SivMode: ... @overload def new( key: Buffer, mode: Literal[11], nonce: Optional[Buffer] = ..., mac_len: int = ..., use_aesni: bool = ..., threads: int = ..., ) -> GcmMode: ... @overload def new( key: Buffer, mode: Literal[12], nonce: Optional[Buffer] = ..., mac_len: int = ..., use_aesni: bool = ..., threads: int = ..., ) -> OcbMode: ... @overload def new(key: Buffer, mode: Literal[13], use_aesni: bool = ...) -> KWMode: ... @overload def new(key: Buffer, mode: Literal[14], use_aesni: bool = ...) -> KWPMode: ... @overload def new( key: Buffer, mode: Literal[15], nonce: Optional[Buffer] = ..., use_aesni: bool = ..., threads: int = ..., ) -> GcmSivMode: ... @overload def new(key: Buffer, mode: Literal[16], *, tweak: Buffer, use_aesni: bool = ...) -> XtsMode: ... def new(key: Buffer, mode: int, *args: Any, **kwargs: Any) -> Any: """Create a new AES cipher. Args: key(bytes/bytearray/memoryview): The secret key to use in the symmetric cipher. It must be 16 (*AES-128)*, 24 (*AES-192*) or 32 (*AES-256*) bytes long. For ``MODE_SIV`` only, it doubles to 32, 48, or 64 bytes. For ``MODE_GCM_SIV`` only, it must be 16 or 32 bytes long. For ``MODE_XTS`` only, it must be 32 or 64 bytes long: two AES-128 or AES-256 keys (concatenated), which must be different. mode (a ``MODE_*`` constant): The chaining mode to use for encryption or decryption. If in doubt, use ``MODE_GCM`` (with a random 12-byte ``nonce``). Keyword Args: iv (bytes/bytearray/memoryview): (Only applicable for ``MODE_CBC``, ``MODE_CFB``, ``MODE_OFB``, and ``MODE_OPENPGP`` modes). The initialization vector to use for encryption or decryption. For ``MODE_CBC``, ``MODE_CFB``, and ``MODE_OFB`` it must be 16 bytes long. For ``MODE_OPENPGP`` mode only, it must be 16 bytes long for encryption and 18 bytes for decryption (in the latter case, it is actually the *encrypted* IV which was prefixed to the ciphertext). If not provided, a random byte string is generated (you must then read its value with the :attr:`iv` attribute). nonce (bytes/bytearray/memoryview): (Only applicable for ``MODE_CCM``, ``MODE_EAX``, ``MODE_GCM``, ``MODE_SIV``, ``MODE_GCM_SIV``, ``MODE_OCB``, and ``MODE_CTR``). A value that must never be reused for any other encryption done with this key (except possibly for ``MODE_SIV`` and ``MODE_GCM_SIV``, see below). For ``MODE_EAX``, ``MODE_GCM`` and ``MODE_SIV`` there are no restrictions on its length (recommended: **16** bytes). For ``MODE_CCM``, its length must be in the range **[7..13]**. Bear in mind that with CCM there is a trade-off between nonce length and maximum message size. Recommendation: **11** bytes. For ``MODE_OCB``, its length must be in the range **[1..15]** (recommended: **15**). For ``MODE_CTR``, its length must be in the range **[0..15]** (recommended: **8**). For ``MODE_SIV``, the nonce is optional, if it is not specified, then no nonce is being used, which renders the encryption deterministic. For ``MODE_GCM_SIV``, it must be **12** bytes long. Reusing a nonce only reveals if the same message was encrypted twice (with the same key, nonce and associated data). If not provided, for modes other than ``MODE_SIV``, a random byte string of the recommended length is used (you must then read its value with the :attr:`nonce` attribute). segment_size (integer): (Only ``MODE_CFB``).The number of **bits** the plaintext and ciphertext are segmented in. It must be a multiple of 8. If not specified, it will be assumed to be 8. mac_len (integer): (Only ``MODE_EAX``, ``MODE_GCM``, ``MODE_OCB``, ``MODE_CCM``) Length of the authentication tag, in bytes. It must be even and in the range **[4..16]**. The recommended value (and the default, if not specified) is **16**. msg_len (integer): (Only ``MODE_CCM``). Length of the message to (de)cipher. If not specified, ``encrypt`` must be called with the entire message. Similarly, ``decrypt`` can only be called once. assoc_len (integer): (Only ``MODE_CCM``). Length of the associated data. If not specified, all associated data is buffered internally, which may represent a problem for very large messages. initial_value (integer or bytes/bytearray/memoryview): (Only ``MODE_CTR``). The initial value for the counter. If not present, the cipher will start counting from 0. The value is incremented by one for each block. The counter number is encoded in big endian mode. counter (object): (Only ``MODE_CTR``). Instance of ``Crypto.Util.Counter``, which allows full customization of the counter block. This parameter is incompatible to both ``nonce`` and ``initial_value``. use_aesni: (boolean): Use the AES instructions of the CPU (default: use if available): AES-NI on x86, or the Cryptography Extensions on 64-bit ARM. threads (integer): (Only ``MODE_CTR``, ``MODE_GCM``, ``MODE_GCM_SIV`` and ``MODE_OCB``). The maximum number of threads used to encrypt or decrypt long data (default: 1, no extra threads). Use 0 for as many threads as the CPU cores available to this process. Each thread processes at least 1 MiB of a single call to ``encrypt()`` or ``decrypt()``: with shorter inputs, fewer threads are used, or none at all. For best results, do not exceed the number of physical cores. The output does not depend on the number of threads. tweak (bytes/bytearray/memoryview): (Only ``MODE_XTS``, where it is mandatory). The value that identifies the data unit, 16 bytes long. For a sector number, use ``number.to_bytes(16, "little")``. Returns: :ref:`A cipher object <aes_modes>`: Its class depends on ``mode``, see the table in :ref:`aes_modes`. """ kwargs["add_aes_modes"] = True return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs) #: Size of a data block (in bytes) block_size: int = 16 #: The valid sizes of a key (in bytes) key_size: tuple[int, int, int] = (16, 24, 32)
Targets
-
- Target ElyraGame Setup 1.0.0.exe
- Size 98.2MB
- SHA256 ff1db5a2d00f1472acacd8751c04a08d1982a088c88667b9dc1ef8e0c7aae998
- MD5 9ad502d07ca0819f9599ee1ced424c18
- SHA1 67bd7d463cd7b92ccec2c7c63bafabc1bd309018
- SHA512 ac6fd3712af633c998b08c64b6fe01ceff627d9fd39f69c4cade0b48c9823d6c0c74f7f05cce03e29d8cf4ea07d64bbbbf521e2e0092f69fbb2dd078dc51ce2f
- SSDEEP 1572864:0DlH6skz0mlzDeY1r+j3Of7LqFdzLcBdyNyBAnScV/e1DjZSeR1z:0DN6HjJPqFdncBdyNPScV/MJR9
- TLSH T1283833868076627ED576EA39F16AFEB24087349C7EB09D83C7A72BDD3F240254D2124D
- MD5 SHA1 SHA512 SSDEEP TLSH
Detects RapidStealer payload
Disables Task Manager via registry modification
Disables one or more Microsoft Defender components
Uses the Powershell Set-MpPreference cmdlet to disable one or more Microsoft Defender components.
Checks computer location settings
Looks up country code configured in the registry, likely geofence.
Creates a file in the Startup directory
A file was written to a Windows startup folder. Files in these directories are executed automatically when a user logs on or an application initializes.
Executes dropped EXE
Loads dropped DLL
Windows security bypass
Checks installed software on the system
Looks up Uninstall key entries in the registry to enumerate software on the system.
Looks up external IP address via web service
Uses a legitimate IP lookup service to find the infected system's external IP.
Discovers running processes
Running process information can be used to identify security tools or plan follow-on actions.
Drops file in System32 directory
Executes a VBScript file via the Windows Script Host.
-
- Target $PLUGINSDIR/StdUtils.dll
- Size 100KB
- SHA256 b72e9013a6204e9f01076dc38dabbf30870d44dfc66962adbf73619d4331601e
- MD5 c6a6e03f77c313b267498515488c5740
- SHA1 3d49fc2784b9450962ed6b82b46e9c3c957d7c15
- SHA512 9870c5879f7b72836805088079ad5bbafcb59fc3d9127f2160d4ec3d6e88d3cc8ebe5a9f5d20a4720fe6407c1336ef10f33b2b9621bc587e930d4cbacf337803
- SSDEEP 3072:WNuZmJ9TDP3ahD2TF7Rq9cJNPhF9vyHf:WNuZ81zaAFHhF9v
- TLSH T125A33B62A2FA9CF5E4E70B3D1469BB264CBB7B383431D93F2342054B8534586DA2D35B
- MD5 SHA1 SHA512 SSDEEP TLSH
Score3/10 -
- Target $PLUGINSDIR/System.dll
- Size 12KB
- SHA256 3eb38ae99653a7dbc724132ee240f6e5c4af4bfe7c01d31d23faf373f9f2eaca
- MD5 0d7ad4f45dc6f5aa87f606d0331c6901
- SHA1 48df0911f0484cbe2a8cdd5362140b63c41ee457
- SHA512 c07de7308cb54205e8bd703001a7fe4fd7796c9ac1b4bb330c77c872bf712b093645f40b80ce7127531fe6746a5b66e18ea073ab6a644934abed9bb64126fea9
- SSDEEP 192:1enY0LWelt70elWjvfstJcVtwtYbjnIOg5AaDnbC7ypXhtIj:18PJlt70esj0Mt9vn6ay6
- TLSH T1BA428E12977049F2F1A0183C10A67F265FBEAE5C1BE445A39FE380867D652DF9436343
- MD5 SHA1 SHA512 SSDEEP TLSH
Score3/10 -
- Target $PLUGINSDIR/UAC.dll
- Size 14KB
- SHA256 2f7f8fc05dc4fd0d5cda501b47e4433357e887bbfed7292c028d99c73b52dc08
- MD5 adb29e6b186daa765dc750128649b63d
- SHA1 160cbdc4cb0ac2c142d361df138c537aa7e708c9
- SHA512 b28adcccf0c33660fecd6f95f28f11f793dc9988582187617b4c113fb4e6fdad4cf7694cd8c0300a477e63536456894d119741a940dda09b7df3ff0087a7eada
- SSDEEP 192:DiF6v2imI36Op/tGZGfWxdyWHD0I53vLl7WVl8e04IpDlPjs:DGVY6ClGoWxXH75T1WVl83lLs
- TLSH T10F623AAA62E847BEE2221636B96723130BFDB5203DA1D01F4D531E596C30BE3953D61A
- MD5 SHA1 SHA512 SSDEEP TLSH
Score3/10 -
- Target $PLUGINSDIR/WinShell.dll
- Size 3KB
- SHA256 9be85b986ea66a6997dde658abe82b3147ed2a1a3dcb784bb5176f41d22815a6
- MD5 1cc7c37b7e0c8cd8bf04b6cc283e1e56
- SHA1 0b9519763be6625bd5abce175dcc59c96d100d4c
- SHA512 7acf7f8e68aa6066b59ca9f2ae2e67997e6b347bc08eb788d2a119b3295c844b5b9606757168e8d2fbd61c2cda367bf80e9e48c9a52c28d5a7a00464bfd2048f
- TLSH T16A51365F13BED7A4C3071738A6FBDC85749B440012C659558BB2172ABF141E0BB3CD08
- MD5 SHA1 SHA512 TLSH
Score3/10 -
- Target ElyraGame.exe
- Size 192.1MB
- SHA256 4161cf5938e5471bec3d8d2280850992c013468eabd3ef1924b5390f2c96a207
- MD5 560a475c6230c4ce20657f6f4fb01253
- SHA1 7124285952c5e52503f6ab12da00d40b45e460fd
- SHA512 b581dce7836ffab7acd92f814e6cd8646fd9e768e72013934623da8c0f9c6930555817d2a49ba2e512fd2ed25fb8069bdb703882ea0be1906c7569be8fc0c133
- SSDEEP 1572864:phqI5OOengTDlkGf97McvHp/i8mhllqtSIOr3alJsxjEP6H5HlTShW62Su+709xy:YOMMpBKvPTJJlfc
- TLSH T1A0A88C03F39A50D9E01DD1759B479633EAB1B88A4324A2DF2B5407912F77EE86B3DB10
- MD5 SHA1 SHA512 SSDEEP TLSH
Badlisted process makes network request
Network request originating from process or tool commonly abused by malware.
Disables Task Manager via registry modification
Disables one or more Microsoft Defender components
Uses the Powershell Set-MpPreference cmdlet to disable one or more Microsoft Defender components.
Checks computer location settings
Looks up country code configured in the registry, likely geofence.
Creates a file in the Startup directory
A file was written to a Windows startup folder. Files in these directories are executed automatically when a user logs on or an application initializes.
Executes dropped EXE
Loads dropped DLL
Windows security bypass
Looks up external IP address via web service
Uses a legitimate IP lookup service to find the infected system's external IP.
Discovers running processes
Running process information can be used to identify security tools or plan follow-on actions.
Executes a VBScript file via the Windows Script Host.
-
- Target LICENSES.chromium.html
- Size 11.7MB
- SHA256 5d67aba37acc9e0e0a88546d940ed23f29ea3441aac7dd06dcc08a1b1c93b0a9
- MD5 0b24e08f0d1dac2ee54364e50fef0b41
- SHA1 a4f3ea66556cdcc2e92bc924965e225488ccd94b
- SHA512 2beb14f31a87f0df953af26945288f35e916159b114ec1c205c3a58125fa6911b888c2a0b17b593c5b2bcd8e51012d8f2cbe4629f1968335ee3866a19712dfb9
- SSDEEP 24576:S9dQL6poq6jBCjK6D3UwRmETlmfTKjZ6ojK6QjZ6UjK6ajK64jK6cjZ6ijK6b6ck:SvPeGAyWPbX8meu
- TLSH T1CBC6A52F7B48037306C642A26B8B65CAF31F903F3B561654345CD1681F6BA2983FF699
- MD5 SHA1 SHA512 SSDEEP TLSH
Score3/10 -
- Target d3dcompiler_47.dll
- Size 4.7MB
- SHA256 af7b99be1b8770c0e4d18e43b04e81d11bdeb667fa6b07ade7a88f4c5676bf9a
- MD5 a7b7470c347f84365ffe1b2072b4f95c
- SHA1 57a96f6fb326ba65b7f7016242132b3f9464c7a3
- SHA512 83391a219631f750499fd9642d59ec80fb377c378997b302d10762e83325551bb97c1086b181fff0521b1ca933e518eab71a44a3578a23691f215ebb1dce463d
- SSDEEP 49152:hCZnRO4XyM53Rkq4ypQqdoRpmruVNYvkaRwvdiD0N+YEzI4og/RfzHLeHTRhFRN1:oG2QCwmHjnog/pzHAo/Ayc
- TLSH T13C367C5673EA40B9C1ABD178CE479213EBB1781403345BEB4190C669AF73BE16A3E734
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target ffmpeg.dll
- Size 2.9MB
- SHA256 99fbd8bd11696e24479d22e29b490c7e96c7d9875ab4392ff12307ddfb5a9503
- MD5 931b7dbb1b27b4ff0ac5cd6cca485c1f
- SHA1 22578fcadd0fa4b1159dd721c2d8dc6bde89c07e
- SHA512 c5f19baa9de5502c752797fc8a488ac4b85bcd1325968a88461b25844fe36b313560c454cd2849bc48b7bb67724d2f1dbfa67dc7ff0c21c34438ffd0f9da56f2
- SSDEEP 49152:oJ2o28BhFrhzXIbk8HV22QNPa12wLOA1AdL10SApX7jCf1Xh/+Gk1ekxjGsDefo9:oCWFrIb1HV22QcSAZ7jCf1Xh/+Gk1ek5
- TLSH T151D5AD07F6D6109DD029C070979F9213F671344A8B205AEF26D05A243FABFD86E3E769
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target libEGL.dll
- Size 481KB
- SHA256 e55fb10fb929b28446583ebc5afa89fc647bafc2eebf3b12e6a0adf91a7bb202
- MD5 46f2bd2a1c312a65e09ecd1d04e559b6
- SHA1 6b071a36ed51b3829da871ed2149abecb22ee6fc
- SHA512 ae082bb8d6d161d185a8d5b1f4fb20b020e73e9711688b4ef7c9dea610206ed5a95b2b2691db68725d38760aec5a918c89a36e94c61651e31cafe59407f77818
- SSDEEP 6144:5qQPf2bILvlflS9XHaT9ZrgDUypbrzi4uBcFObfckF0fASM9:x2q49XHu9ZrgDVVi4nFObfckIAH
- TLSH T17AA48D15B3E544A8E06AD1748A534642DA77B4920F65FBDF03E493392F37BE85B3A320
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target libGLESv2.dll
- Size 7.6MB
- SHA256 2289eb00380b7f143d81df224d5bb412dec9b5eb6002b5213518e295ae8256b2
- MD5 3fcf2af2ac606196af5b362f6b9c9470
- SHA1 6f17c685b886f98141d10d1c8190bbf8db232b71
- SHA512 69da96f6bcaa5685dfe372ba461d015be428deddc6a687415c90a0d12c125e6b0cca514bc9518f9d2c44886eca43f9f2624e07204757dbc6ec907dc657675335
- SSDEEP 98304:/XQ27zNwptqCK5M8twgfM+P9hKBswndb1GXJij:L7zEwPP90XdQi
- TLSH T1E8868B03F39A40D9D04DE2B8C7579626FA35B8850724B6CF279413292F67BE0EB7A714
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target locales/mr.pak
- Size 1.2MB
- SHA256 0eae188c9a81bd3257a21dc28448b5e9e5c3f4f4de4dc8e178e7f13cab06d6f7
- MD5 b7fd0eb57e0a1266990bdd0b405675b2
- SHA1 74becbfb683508912e703f31c650cb29057f1f74
- SHA512 e6fb9760d62051f1185b060e8288c56b95e3e8d701767d8645ee9cd464993b76c78aff365f401a56e391d63857307827d716ba026bb5e4712444b09b0ddeea4b
- SSDEEP 3072:rMfCBVYlp+n/4xasCPLmFZfr1iuJvm89/njU6TkeInVEwFEyGRg3R5QodgEPYyla:Q6DYL+CZTYgKZOa3Vq9X5km/Iwp
- TLSH T10345C24DF7BAF3685DACBC8E36540D3BD8FD21B1C3E9925648E1B3E74884CB401596A2
- MD5 SHA1 SHA512 SSDEEP TLSH
Score3/10 -
- Target resources/app.asar.unpacked/node_modules/@primno/dpapi/dist/index.js
- Size 412B
- SHA256 a7ff0225cb5ebcbef8499c6c8ac2be924f584eb375dacb1d8bd3dc6540b510f2
- MD5 0b33e83d33b01a51625a0fdcbef42ce3
- SHA1 1c29d999ff7da39426b97f2eb31a3d83db8f5fc7
- SHA512 1d04caf4fc2e876bdf2a089ae938a41fe4d3f2928aa846709bafd2de236fa8c754fcc84d7e8a5f5734bc1cecc04b395ab9d2114945b35e8c85cd3b9ee8f9799c
- TLSH T1BFE02B177EF5E8EAC64082CA4736D4531EE98CBB3600781AE2CA8AF25315984E490D24
- MD5 SHA1 SHA512 TLSH
Score3/10 -
- Target resources/app.asar.unpacked/node_modules/@primno/dpapi/prebuilds/win32-x64/node.napi.node
- Size 137KB
- SHA256 da2172ce055fa47d6a0ea1c90654f530abed33f69a74d52fab06c4c7653b48fd
- MD5 04bfbfec8db966420fe4c7b85ebb506a
- SHA1 939bb742a354a92e1dcd3661a62d69e48030a335
- SHA512 4ea97a9a120ed5bee8638e0a69561c2159fc3769062d7102167b0e92b4f1a5c002a761bd104282425f6cee8d0e39dbe7e12ad4e4a38570c3f90f31b65072dd65
- SSDEEP 3072:94PTD6FEzMju6bzJKjpEPeTOKvJhEnww+YbRYvPuq:94jQju6b9KilKvJurR8W
- TLSH T1B3D37D4BB3A500BBE176C639C8934A05E776B81517619B9F03A0475B1F237D1EE3EB22
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target resources/app.asar.unpacked/node_modules/datavault-win/dist/index.js
- Size 412B
- SHA256 a7ff0225cb5ebcbef8499c6c8ac2be924f584eb375dacb1d8bd3dc6540b510f2
- MD5 0b33e83d33b01a51625a0fdcbef42ce3
- SHA1 1c29d999ff7da39426b97f2eb31a3d83db8f5fc7
- SHA512 1d04caf4fc2e876bdf2a089ae938a41fe4d3f2928aa846709bafd2de236fa8c754fcc84d7e8a5f5734bc1cecc04b395ab9d2114945b35e8c85cd3b9ee8f9799c
- TLSH T1BFE02B177EF5E8EAC64082CA4736D4531EE98CBB3600781AE2CA8AF25315984E490D24
- MD5 SHA1 SHA512 TLSH
Score3/10 -
- Target resources/app.asar.unpacked/node_modules/datavault-win/prebuilds/win32-x64/node.napi.node
- Size 137KB
- SHA256 da2172ce055fa47d6a0ea1c90654f530abed33f69a74d52fab06c4c7653b48fd
- MD5 04bfbfec8db966420fe4c7b85ebb506a
- SHA1 939bb742a354a92e1dcd3661a62d69e48030a335
- SHA512 4ea97a9a120ed5bee8638e0a69561c2159fc3769062d7102167b0e92b4f1a5c002a761bd104282425f6cee8d0e39dbe7e12ad4e4a38570c3f90f31b65072dd65
- SSDEEP 3072:94PTD6FEzMju6bzJKjpEPeTOKvJhEnww+YbRYvPuq:94jQju6b9KilKvJurR8W
- TLSH T1B3D37D4BB3A500BBE176C639C8934A05E776B81517619B9F03A0475B1F237D1EE3EB22
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target resources/app.asar.unpacked/node_modules/sqlite3/build/Release/node_sqlite3.node
- Size 1.8MB
- SHA256 f806f89dc41dde00ca7124dc1e649bdc9b08ff2eff5c891b764f3e5aefa9548c
- MD5 66a65322c9d362a23cf3d3f7735d5430
- SHA1 ed59f3e4b0b16b759b866ef7293d26a1512b952e
- SHA512 0a44d12852fc4c74658a49f886c4bc7c715c48a7cb5a3dcf40c9f1d305ca991dd2c2cb3d0b5fd070b307a8f331938c5213188cbb2d27d47737cc1c4f34a1ea21
- SSDEEP 49152:lVtIA1xRrGLYLn9M+BMPPivsICK9rzoNEqt:7tH4X3inMZt
- TLSH T12B958D4BA2B400FDC1ABC179891B5A0BE7B27405177497DF15E08A696F23FE356BE320
- MD5 SHA1 SHA512 SSDEEP TLSH
Score1/10 -
- Target resources/app.asar.unpacked/node_modules/sqlite3/deps/extract.js
- Size 224B
- SHA256 5be353d29c0fabea29cfd34448c196da9506009c0b20fde55e01d4191941dd74
- MD5 f0a82a6a6043bf87899114337c67df6c
- SHA1 a906c146eb0a359742ff85c1d96a095bd0dd95fd
- SHA512 d26879f890226808d9bd2644c5ca85cc339760e86b330212505706e5749464fafad1cb5f018c59a8f034d68d327cd3fa5234ceac0677de1ac9ae09039f574240
- TLSH T13FD0A71002D514F489B0BF80E49F0B163DC781E33B026450DC8888512BD72A3608AD9F
- MD5 SHA1 SHA512 TLSH
Score3/10 -
- Target sqlite-autoconf-3440200/Makefile.fallback
- Size 547B
- SHA256 67d473327dd92f5cad68fddb78b8bb3e8745aba851147945893e4db5a2b59892
- MD5 8ff4cdbeec29d794549a0aa48da06bc3
- SHA1 7fd897fc720b6c9c6f760867c97a95431fa4693e
- SHA512 9871a654d8b140ad5d6768d385b86ba7f32927f8ed6374e62c93db99be4a40841f6900d648f33d07dc118b6ea93f00c45f53e4b675643b2b487c9c0df1ea1474
- TLSH T16FF0C976A3551EFF26C804A990F411C5390192A28C3C222A0CA7ECF41E214E0CA08CBA
- MD5 SHA1 SHA512 TLSH
Score1/10
MITRE ATT&CK Enterprise v16
Execution
Command and Scripting Interpreter
5JavaScript
1PowerShell
2Visual Basic
1Windows Command Shell
1Privilege Escalation
Boot or Logon Autostart Execution
1Registry Run Keys / Startup Folder
1Defense Evasion
Hide Artifacts
1Ignore Process Interrupts
1Impair Defenses
2Disable or Modify Tools
2Modify Registry
1Credential Access
Credentials from Password Stores
1Credentials from Web Browsers
1Unsecured Credentials
1Credentials In Files
1Discovery
Browser Information Discovery
1Process Discovery
1Query Registry
4System Information Discovery
5System Location Discovery
1System Language Discovery
1System Network Configuration Discovery
2Internet Connection Discovery
1System Time Discovery
1