joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e8c8630
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [eax + 0x10]
test byte [0x6e926040], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x2c], edi
mov edx, dword [ecx + 8]
mov edi, dword [eax + 0x14]
mov ecx, dword [ecx + 0xc]
jne 0x6e8c8788
mov dword [esp], esi
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, 0x8000
mov dword [esp + 0x10], eax
mov eax, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym.crypt32.dll_CryptDecodeObjectEx
sub esp, 0x20
test eax, eax
mov esi, eax
je 0x6e8c876e
test ebx, ebx
je 0x6e8c87e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
mov eax, dword [eax + 8]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym.crypt32.dll_CryptFindOIDInfo
sub esp, 0xc
test eax, eax
je 0x6e8c8750
lea edx, [ebp - 0x1c]
xor esi, esi
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov eax, dword [eax + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.advapi32.dll_CryptCreateHash
sub esp, 0x14
test eax, eax
mov esi, eax
je 0x6e8c875f
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov edx, dword [eax]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_CryptHashData
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x6e8c8800
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_CryptDestroyHash
sub esp, 4
jmp 0x6e8c875f
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090008
xor esi, esi
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x30], edx
mov eax, dword [edi]
mov dword [esp + 0x18], edx
mov edx, 0x6e926040
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp], 3
mov dword [esp + 0x20], eax
mov eax, str.__08lx___08x___p___d___p___d__n
mov dword [esp + 0xc], eax
mov eax, str.CryptHashToBeSigned
mov dword [esp + 8], eax
mov dword [ebp - 0x34], ecx
call fcn.6e8c5b50
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x6e8c866f
mov dword [esp], 0
call sym.crypt32.dll_I_CryptGetDefaultCryptProv
sub esp, 4
mov ebx, eax
jmp 0x6e8c86ba
mov dword [esp + 0xc], edi
xor eax, eax
mov edx, 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_CryptGetHashParam
sub esp, 0x14
mov esi, eax
jmp 0x6e8c8736
Function at 0x6e8cf800
Capabilities:
Get geographical location

Disassembly:
push ebp
mov edx, 0x1f
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov eax, 0x50
mov dword [ebp - 4], edi
lea edi, [ebp - 0x68]
mov dword [ebp - 8], esi
lea esi, [ebp - 0xc8]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp], 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], ebx
lea ebx, [ebp - 0xb8]
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
mov ecx, 0x50
sub esp, 8
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp], 0x800
call dword [sym.imp.kernel32.dll_GetDateFormatA]
sub esp, 0x18
mov dword [esp + 4], ebx
mov dword [esp], 0x6e92ba67
call fcn.6e8cf370
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x6e8f9af0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, dword fs:[0x18]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
mov edx, dword [ecx]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
sub esp, 0xc
leave
lea esp, [ecx - 4]
ret 4

Function at 0x6e8f9b30
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, dword fs:[0x18]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
sub esp, 0x10
leave
lea esp, [ecx - 4]
ret 8

Function at 0x6e8f9b80
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, dword fs:[0x18]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
mov edx, dword [ecx]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 4]
sub esp, 0xc
leave
lea esp, [ecx - 4]
ret 4
Function at 0x6e8fa020
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x6e9278f8], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
jne 0x6e8fa090
mov dword [edi], 0
lea eax, [ebp - 0x20]
mov ecx, str.SoftwarePoliciesMicrosoftSystemCertificatesTrustedPublisherSafer
mov dword [esp + 8], eax
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyW
sub esp, 0xc
test eax, eax
je 0x6e8fa0d0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, esi
mov ebx, str.__s___p__n
call fcn.6e8f9540
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], ebx
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.I_CryptReadTrustedPublisherDWORDValueFromRegistry
mov dword [esp + 8], eax
mov eax, 0x6e9278f8
mov dword [esp + 4], eax
call fcn.6e8f9450
jmp 0x6e8fa04a
mov dword [esp + 0x10], edi
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [ebp - 0x1c], 4
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x20]
sete bl
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e8fa075

Function at 0x6e8fce30
Capabilities:
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
lea ebx, [ecx + ecx*8]
sub esp, 0x3c
mov eax, dword [eax]
shl ebx, 3
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ebx + 0x18]
mov dword [esp], eax
call sym.crypt32.dll_CertOIDToAlgId
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov eax, dword [ebp + 8]
sub esp, 4
mov eax, dword [eax]
test eax, eax
jne 0x6e8fce87
mov dword [esp], ecx
call sym.crypt32.dll_I_CryptGetDefaultCryptProv
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
sub esp, 4
test eax, eax
je 0x6e8fceaf
mov eax, dword [ebp + 0xc]
and dword [eax], 0xffff7fff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov edx, dword [edi]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
call sub.advapi32.dll_CryptCreateHash
sub esp, 0x14
test eax, eax
jne 0x6e8fcec0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
mov ecx, dword [edx + ebx + 0x38]
test ecx, ecx
je 0x6e8fceb1
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 8], edx
add eax, 4
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.advapi32.dll_CryptCreateHash
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6e909a40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
test byte [0x6e928b48], 8
mov dword [ebp - 0x2c], ecx
jne 0x6e909ae0
xor eax, eax
mov edx, 1
mov dword [esp + 0x18], eax
xor eax, eax
mov ecx, 0x80000000
mov dword [esp + 0x14], eax
mov eax, 3
xor edi, edi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
je 0x6e909acc
mov dword [esp], ebx
xor eax, eax
mov edi, 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esi], eax
sub esp, 8
test eax, eax
jne 0x6e909b50
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x6e928b48], 8
jne 0x6e909b18
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.6e909810
mov edi, 0x6e930d51
mov dword [esp + 0xc], edi
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.CRYPT_ReadBlobFromFile
mov dword [esp + 8], eax
mov eax, 0x6e928b48
mov dword [esp + 4], eax
call fcn.6e906940
jmp 0x6e909a5d
mov eax, 0x6e930d55
mov edx, str.CRYPT_ReadBlobFromFile
mov dword [esp + 0x10], edi
mov ecx, 0x6e928b48
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call fcn.6e906940
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
xor edi, edi
call sym.crypt32.dll_CryptMemAlloc
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
sub esp, 4
test eax, eax
je 0x6e909ac0
mov dword [esp + 4], eax
lea edx, [ebp - 0x1c]
xor edi, edi
mov dword [esp + 0xc], edx
mov edx, dword [esi]
mov dword [esp + 0x10], edi
mov dword [esp], ebx
mov dword [esp + 8], edx
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x6e909b98
mov eax, dword [ebp - 0x1c]
cmp dword [esi], eax
je 0x6e909bb0
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov eax, dword [eax]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e909ac0
mov edi, 1
jmp 0x6e909ac0
Function at 0x6e90bcf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
sub esp, 0x58
mov dword [esp + 0x10], ecx
xor edx, edx
mov ecx, 0x6e931260
mov dword [ebp - 8], esi
lea esi, [ebp - 0x20]
mov dword [ebp - 4], edi
lea edi, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0xc], ebx
mov ebx, eax
call sub.advapi32.dll_RegQueryValueExW
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x6e90bd3b
cmp dword [ebp - 0x20], 7
je 0x6e90bd50
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
mov edx, 0x6e931260
mov dword [ebp - 0x2c], eax
sub esp, 4
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.advapi32.dll_RegQueryValueExW
mov edx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
je 0x6e90bd3b
mov dword [esp], edx
call sym.crypt32.dll_CryptMemFree
xor edx, edx
sub esp, 4
jmp 0x6e90bd3b
Function at 0x6e90d660
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x68
test byte [0x6e928bf8], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
jne 0x6e90d790
mov edx, dword [edx]
mov ecx, str.DEFAULT
mov eax, edi
call fcn.6e90c3d0
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp], 0x80000002
mov edi, eax
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x20019
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sub.advapi32.dll_RegCreateKeyExA
sub esp, 0x24
test eax, eax
je 0x6e90d728
test esi, esi
je 0x6e90d6f8
mov eax, dword [ebx]
test eax, eax
je 0x6e90d6f8
mov word [esi], 0
mov dword [ebx], 1
mov dword [esp], edi
call sym.crypt32.dll_CryptMemFree
mov ecx, dword [ebp - 0x10]
mov eax, 1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 4
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x6e931260
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x6e90d7d8
test esi, esi
je 0x6e90d770
mov edx, dword [ebx]
test edx, edx
je 0x6e90d770
mov word [esi], 0
mov dword [ebx], 1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90d6fe
mov dword [esp + 0x10], edx
mov eax, 0x6e93141e
mov dword [esp + 0xc], eax
mov eax, str.CryptGetDefaultOIDDllList
mov dword [esp + 8], eax
mov eax, 0x6e928bf8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call fcn.6e90be90
mov edx, dword [ebp - 0x2c]
jmp 0x6e90d694
mov eax, dword [ebp - 0x1c]
shr eax, 1
mov dword [ebx], eax
jmp 0x6e90d776
Function at 0x6e90e590
Capabilities:
Delete registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x6e928bf8], 8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov ebx, dword [ecx]
jne 0x6e90e630
test ebx, ebx
je 0x6e90e5bd
cmp dword [ebx], 0x24
je 0x6e90e5e0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x6e90e5bd
xor ecx, ecx
mov edx, 0xf003f
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x1c]
mov esi, str.SoftwareMicrosoftCryptographyOIDEncodingType_0CryptDllFindOIDInfo
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
sub esp, 0x14
test eax, eax
je 0x6e90e660
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
xor eax, eax
jmp 0x6e90e5cc
mov dword [esp + 0x10], ebx
mov eax, 0x6e9314b2
mov dword [esp + 0xc], eax
mov eax, str.CryptUnregisterOIDInfo
mov dword [esp + 8], eax
mov eax, 0x6e928bf8
mov dword [esp + 4], eax
mov dword [esp], 3
call fcn.6e90be90
jmp 0x6e90e5b4
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 0x10
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
sub esp, 4
test eax, eax
mov esi, eax
je 0x6e90e6f0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, str._s__u
mov dword [esp + 4], eax
call fcn.6e90bca0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteKeyA
sub esp, 8
mov ebx, eax
mov dword [esp], esi
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
mov eax, 1
sub esp, 4
test ebx, ebx
je 0x6e90e5cc
lea esi, [esi]
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor eax, eax
jmp 0x6e90e5cc
mov dword [esp], 0
mov ebx, 0xe
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90e6e0
Function at 0x6e90eb90
Capabilities:
Delete registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x6e928bf8], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jne 0x6e90ec38
test ebx, ebx
je 0x6e90ec10
test ecx, ecx
je 0x6e90ec10
mov edx, ebx
mov eax, esi
call fcn.6e90c3d0
mov dword [esp], 0x80000002
mov dword [esp + 4], eax
mov esi, eax
call sub.advapi32.dll_RegDeleteKeyA
sub esp, 8
mov ebx, eax
mov dword [esp], esi
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test ebx, ebx
je 0x6e90ebfd
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor eax, eax
test ebx, ebx
sete al
jmp 0x6e90ec1f
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [ebp - 0x1c], ecx
mov eax, ecx
call fcn.6e90bf80
mov edi, eax
mov eax, ebx
call fcn.6e90bf80
mov ecx, 0x6e928bf8
mov edx, str.CryptUnregisterOIDFunction
mov dword [esp + 4], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], edx
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str._x__s__s_n
mov dword [esp + 0xc], eax
call fcn.6e90be90
mov ecx, dword [ebp - 0x1c]
jmp 0x6e90ebbd
Function at 0x6e90ec90
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx + 0xc]
test byte [0x6e928bf8], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x38], eax
jne 0x6e90ed80
test bx, bx
je 0x6e90ed78
test esi, esi
sete dl
test edi, edi
sete al
or dl, al
jne 0x6e90ed60
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x6e90ed60
mov edx, esi
mov ecx, edi
mov eax, ebx
call fcn.6e90c3d0
mov dword [esp], 0x80000002
mov esi, eax
mov dword [esp + 4], esi
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
call sub.advapi32.dll_RegOpenKeyA
sub esp, 0xc
mov ebx, eax
mov dword [esp], esi
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test ebx, ebx
je 0x6e90edf8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor eax, eax
jmp 0x6e90ed43
mov eax, 1
jmp 0x6e90ed43
mov eax, dword [ebp - 0x2c]
call fcn.6e90c150
mov dword [ebp - 0x40], eax
mov eax, edi
call fcn.6e90bf80
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.6e90bf80
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x40]
mov dword [esp], 3
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, str._x__s__s__s__p__p__p_n
mov dword [esp + 0x14], eax
mov eax, str.CryptGetOIDFunctionValue
mov dword [esp + 8], eax
mov eax, 0x6e928bf8
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x18], edx
call fcn.6e90be90
jmp 0x6e90ecd9
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
mov ebx, eax
je 0x6e90ee37
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90ed3c
Function at 0x6e90ee50
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx + 0xc]
test byte [0x6e928bf8], 8
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x38], eax
jne 0x6e90ef40
test bx, bx
je 0x6e90ef38
test esi, esi
sete dl
test edi, edi
sete al
or dl, al
jne 0x6e90ef20
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x6e90ef20
mov edx, esi
mov ecx, edi
mov eax, ebx
call fcn.6e90c3d0
mov dword [esp], 0x80000002
mov esi, eax
mov dword [esp + 4], esi
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
call sub.advapi32.dll_RegOpenKeyA
sub esp, 0xc
mov ebx, eax
mov dword [esp], esi
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test ebx, ebx
je 0x6e90efb8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor eax, eax
jmp 0x6e90ef03
mov eax, 1
jmp 0x6e90ef03
mov eax, dword [ebp - 0x2c]
call fcn.6e90c150
mov dword [ebp - 0x40], eax
mov eax, edi
call fcn.6e90bf80
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.6e90bf80
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp - 0x40]
mov dword [esp], 3
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, str._x__s__s__s__d__p__d_n
mov dword [esp + 0x14], eax
mov eax, str.CryptSetOIDFunctionValue
mov dword [esp + 8], eax
mov eax, 0x6e928bf8
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x18], edx
call fcn.6e90be90
jmp 0x6e90ee99
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
test eax, eax
mov ebx, eax
je 0x6e90eff7
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90eefc