Function at 0x6e8f9d70
Capabilities:
Create new key via cryptacquirecontext
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
test byte [0x6e9278f8], 8
mov dword [ebp - 0x30], eax
jne 0x6e8f9f70
mov ebx, dword [0x6e946048]
test ebx, ebx
je 0x6e8f9f28
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x6e8f9ec0
mov edx, eax
mov eax, ebx
call fcn.6e8f93b0
test eax, eax
jne 0x6e8f9ec0
lea esi, [ebp - 0x1c]
xor ebx, ebx
mov edi, dword fs:[0x18]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0x14], esi
lea eax, [ebp - 0x20]
xor ecx, ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.advapi32.dll_CryptEnumProvidersW
sub esp, 0x18
test eax, eax
je 0x6e8f9fa0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x6e8f9eb8
mov dword [esp + 0x10], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.advapi32.dll_CryptEnumProvidersW
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
je 0x6e8f9e96
mov dword [esp + 8], ecx
mov eax, 0xf0000000
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_CryptAcquireContextW
mov ecx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
jne 0x6e8f9ef0
mov dword [esp + 8], ecx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
inc ebx
jmp 0x6e8f9de0
mov dword [esp], ebx
xor eax, eax
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sub.advapi32.dll_CryptContextAddRef
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call fcn.6e8f93b0
mov ecx, dword [ebp - 0x2c]
test eax, eax
jne 0x6e8f9ff2
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.advapi32.dll_CryptReleaseContext
mov ecx, dword [ebp - 0x2c]
sub esp, 8
jmp 0x6e8f9e96
mov esi, 0x18
xor eax, eax
mov dword [esp + 0xc], esi
mov ecx, 0xf0000000
mov edi, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [esp + 0x10], ecx
lea esi, [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.advapi32.dll_CryptAcquireContextW
sub esp, 0x14
test eax, eax
jne 0x6e8f9fc0
mov ebx, dword [0x6e946048]
jmp 0x6e8f9daa
mov dword [esp + 0x10], eax
mov eax, str.__08x__n
mov dword [esp + 0xc], eax
mov eax, str.I_CryptGetDefaultCryptProv
mov dword [esp + 8], eax
mov eax, 0x6e9278f8
mov dword [esp + 4], eax
mov dword [esp], 3
call fcn.6e8f9450
jmp 0x6e8f9d9c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, dword [ebp - 0x1c]
mov eax, ebx
lock cmpxchg dword [0x6e946048], edx
mov ebx, dword [ebp - 0x1c]
cmp dword [0x6e946048], ebx
je 0x6e8f9daa
mov dword [esp], ebx
xor edx, edx
mov dword [esp + 4], edx
call sub.advapi32.dll_CryptReleaseContext
sub esp, 8
jmp 0x6e8f9f5b
mov dword [esp + 8], ecx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 0x24]
sub esp, 0xc
jmp 0x6e8f9ed7