Function at 0x7664faed
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
xor edi, edi
inc edi
push edi
push esi
push eax
push 0x2c
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call sym.CRYPT32.dll_CryptDecodeObject
test eax, eax
jne 0x7664fc0b
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push esi
push dword [ebp + 0xc]
push 0x2d
push edi
call sym.CRYPT32.dll_CryptDecodeObject
test eax, eax
je 0x7664fcae
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x7664fcae
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp + 0xc]
push 0x2d
push edi
call sym.CRYPT32.dll_CryptDecodeObject
test eax, eax
je 0x7664fcae
push dword [ebp + 0x1c]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
push ebx
push dword [esi + 0x10]
mov dword [ebp - 0x14], ebx
push dword [esi + 0xc]
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ebp + 0x18]
test eax, eax
je 0x7664fcae
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x7664fcae
push dword [ebp + 0x1c]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 1
push dword [esi + 0x10]
push dword [esi + 0xc]
sub esp, 0xc
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ebp + 0x18]
test eax, eax
je 0x7664fcae
lea eax, [ebp - 0x18]
push eax
push ebx
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x2c
push 1
call sym.CRYPT32.dll_CryptDecodeObject
test eax, eax
je 0x7664fcae
xor edi, edi
inc edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x7664fcae
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x2c
push edi
call sym.CRYPT32.dll_CryptDecodeObject
test eax, eax
je 0x7664fcae
cmp dword [ebp + 0x10], ebx
lea eax, [ebp - 4]
je 0x7664fc4e
push dword [ebp + 0x14]
push eax
push dword [ebp - 8]
call dword [ebp + 0x10]
jmp 0x7664fc5a
push 8
push edi
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x7664fcae
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [esi + 4]
push edi
push dword [0x76666480]
call sym.CRYPT32.dll_CryptGetOIDFunctionAddress
test eax, eax
je 0x7664fca3
push dword [ebp + 0x28]
push dword [ebp + 0x20]
push esi
push dword [ebp - 4]
call dword [ebp - 0x24]
push ebx
push dword [ebp - 0x28]
mov edi, eax
call sym.CRYPT32.dll_CryptFreeOIDFunctionAddress
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7664fcb5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x7664fcce
push 0x65e
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x7664fcce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x7664fcee
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
mov eax, dword [ebp - 8]
je 0x7664fce9
mov byte [eax], bl
inc eax
dec ecx
jne 0x7664fce3
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x7664fd08
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
mov eax, dword [ebp - 0xc]
je 0x7664fd03
mov byte [eax], bl
inc eax
dec ecx
jne 0x7664fcfd
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x20], ebx
je 0x7664fd22
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
mov eax, dword [ebp - 0x14]
je 0x7664fd1d
mov byte [eax], bl
inc eax
dec ecx
jne 0x7664fd17
push dword [ebp - 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x24