Function at 0x408b30
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4202e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x42f024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x1c], 0
call fcn.0040cc69
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x408ba8
push 0x428f00
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x408df1
jmp 0x408baa
xor esi, esi
mov byte [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [edi], esi
test esi, esi
je 0x408dfb
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0
call esi
test eax, eax
jne 0x408c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x408ddb
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x408c40
push 0x20
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x408c40
push 0x20
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x408ddb
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x408ddb
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 2
call fcn.00404690
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x68]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0
test esi, esi
je 0x408cb7
push 1
push esi
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x408cc9
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x408cdb
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x408ced
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x408cff
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x408d11
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x408d23
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x408d35
push 1
push eax
call fcn.0040cc5b
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408d47
push 1
push eax
call fcn.0040cc5b
add esp, 8
test ebx, ebx
je 0x408dd0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00408e10
mov esi, eax
cmp edi, esi
je 0x408d7b
mov ecx, edi
call fcn.00404360
mov eax, dword [esi]
mov dword [edi], eax
test eax, eax
je 0x408d7b
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x408dc9
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x408dc9
test esi, esi
je 0x408dc9
mov eax, dword [esi]
test eax, eax
je 0x408da7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x408dbe
push eax
call fcn.0040cc99
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.0040cc5b
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.0040cae0
push 0x8007000e
call fcn.0040cae0
int3