Function at 0x3001f1a7
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x3001dedc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
push 0x6c
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x78], 0x30001578
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x124], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 6
pop ecx
push 2
pop esi
xor eax, eax
push ebx
xor edx, edx
inc edx
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edx
mov eax, 0x30001518
push eax
mov ecx, 0x300014f8
mov dword [ebp - 0x90], eax
push ecx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x7c], esi
call edi
test eax, eax
jne 0x3001f279
push 8
push dword [ebp - 0x8c]
lea eax, [ebp - 0x18]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push eax
call edi
test eax, eax
je 0x3001f51c
push 0x300014f0
push dword [ebp - 0x18]
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
cmp eax, ebx
mov dword [ebp - 0x38], eax
je 0x3001f51c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
lea edi, [ebp - 0x14]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], 0x10
call fcn.3001eef5
test eax, eax
je 0x3001f4c8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x60]
call fcn.3001ef8c
test eax, eax
je 0x3001f4c8
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ecx
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24]
push 6
pop ecx
lea edi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0x108], edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x5c]
push eax
xor edi, edi
lea eax, [ebp - 0x48]
inc edi
push eax
mov word [ebp - 0x44], bx
mov word [ebp - 0x42], di
mov word [ebp - 0x46], di
mov word [ebp - 0x3a], bx
mov word [ebp - 0x3c], bx
mov word [ebp - 0x3e], bx
mov word [ebp - 0x40], bx
call esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x48]
push eax
call esi
add word [ebp - 0x48], 6
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.3001eff3
test eax, eax
je 0x3001f4c8
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
call fcn.3001f098
test eax, eax
je 0x3001f4c8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x4c]
push 2
mov esi, dword [sym.imp.CRYPT32.dll_CryptSignAndEncodeCertificate]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0x9c], eax
pop eax
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x124]
push ecx
push eax
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xb4], 0x300014d8
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xa4], 0x300014e4
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xbc], eax
call esi
test eax, eax
je 0x3001f4c8
push dword [ebp - 0x30]
call fcn.30020360
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x3001f4c8
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x118]
push ebx
push eax
lea eax, [ebp - 0x124]
push eax
push 2
push edi
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x3001f4c8
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x3001f4c8
lea eax, [ebp - 0x94]
push eax
push ebx
push 2
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
je 0x3001f4c8
push ebx
push 3
push dword [ebp - 0x20]
push dword [ebp - 0x38]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x3001f4c8
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x24], ebx
je 0x3001f4d6
push dword [ebp - 0x24]
call fcn.3001e8ac
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x3001f4e4
push dword [ebp - 0x28]
call fcn.3001e8ac
pop ecx
cmp dword [ebp - 0x34], ebx
je 0x3001f4f2
push dword [ebp - 0x34]
call fcn.3001e8ac
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x3001f500
push dword [ebp - 0x2c]
call fcn.3001e8ac
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x3001f50e
push dword [ebp - 0x1c]
call fcn.3001e8ac
pop ecx
cmp dword [ebp - 0x20], ebx
je 0x3001f51c
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30040fc0
leave
ret 4