Function at 0x4012c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [0x40cae0]
pop ecx
mov byte [ebp - 0x238], al
xor eax, eax
lea edi, [ebp - 0x237]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0x20019
mov eax, dword [eax]
push ebx
push eax
push esi
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40147d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0xc], ebx
je 0x40147d
mov dword [ebp - 4], ebx
jbe 0x40147d
mov edi, str.CIDC_Cryptographic_Service_Provider_v2.0.0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xff
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4013c0
push edi
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x134]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
je 0x4013d0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x40137b
jmp 0x40147d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x134]
push eax
call fcn.00407cec
push 0x40cae0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
push eax
push str.Image_Path
call sub.MFC42.DLL_CString::CString_1
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040123b
add esp, 0x10
lea ecx, [ebp - 4]
mov edi, eax
call sub.MFC42.DLL_CString::CString
cmp edi, 1
jne 0x401475
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str.CCB_CIDC_CSP.dll
push dword [ebp + 8]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401475
lea eax, [ebp + 8]
lea ecx, [ebp - 4]
push eax
push str.Signature
call sub.MFC42.DLL_CString::CString_1
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040123b
add esp, 0x10
lea ecx, [ebp - 4]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, 1
jne 0x401475
push str.8e14d3a6b702636f3dde824891aa9db3513629f8889197ac89016c3e3c19192ddaf5183a440fb5f4e4949bd43ec28d3e73b02ce7e0d91a25861266ec8b500c1d475dcef7654fce34cfdfd49363bba050b920e0105d3168a281388505151c7a0ad3785c6b64d5910fc0a40d72d280a97ebc70c42f0c034d6a0d4a270855a5450f0000000000000000
push dword [ebp + 8]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x401475
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret