Function at 0x1005cf0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100a078]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x14
pop ebx
push 0x1b5c
push dword [0x100a7f0]
mov dword [ebp - 0x20], ebx
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [eax + 0x30]
push dword [eax + 0x34]
call fcn.0100426f
push 0x1b5d
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [eax + 0x18]
push dword [eax + 0x1c]
call fcn.0100426f
push 0x1b5e
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
add eax, 4
push eax
call fcn.010083b8
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
mov edi, dword [sym.imp.CRYPT32.dll_CertGetCertificateContextProperty]
pop ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 3
push esi
call edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x100a7dc
call fcn.010029b2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push esi
mov dword [ebp - 0x20], ebx
call edi
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x100a7c8
call fcn.010029b2
xor eax, eax
push eax
push 1
push eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp dword [ebp - 0x24], 0
je 0x1005e34
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0xc]
add eax, 0x38
push eax
push dword [0x100a064]
mov dword [ebp - 0x20], ebx
push 0
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.CRYPT32.dll_CryptHashPublicKeyInfo]
push 0x1b5f
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x100a7c8
call fcn.010029b2
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 2
push esi
call edi
xor eax, eax
cmp dword [ebp - 0x1c], eax
je 0x1005f22
push eax
push eax
push dword [ebp - 0x1c]
call fcn.010092be
mov ebx, eax
test ebx, ebx
je 0x1005f22
lea eax, [ebp - 0x1c]
push eax
push ebx
push 2
push esi
call edi
test eax, eax
je 0x1005f1c
push dword [ebx + 8]
push 0x1b60
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
je 0x1005ea5
push eax
push 0x1b61
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005ec0
push eax
push 0x1b62
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x1005eda
push eax
push 0x1b63
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1005ef5
push eax
push 0x1bc2
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1005f10
push eax
push 0x1b65
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push ebx
call fcn.01008f89
mov eax, dword [esi + 0xc]
add eax, 0x20
push eax
call fcn.01003e40
push eax
push 0x1b66
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, 0x28
push eax
call fcn.01003e40
push eax
push 0x1b67
push dword [0x100a7f0]
call fcn.01008fe2
mov edi, dword [ebp + 0xc]
add esp, 0xc
and edi, 0x10000
je 0x1005f76
push dword [ebp + 0xc]
push esi
call fcn.01004015
test edi, edi
je 0x1006308
mov eax, dword [esi + 0xc]
push dword [eax]
push 0x1b68
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0xc]
add esp, 0xc
test edi, edi
jne 0x1005fa5
mov edi, 0x100a390
push 0x1b69
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push 4
push edi
call fcn.010032a8
push eax
push edi
mov ebx, 0x100142c
push ebx
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp dword [eax + 0x10], 0
mov edi, 0x10013c0
je 0x1005fff
push 0x1b6a
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [eax + 0x14]
push edi
call fcn.010028db
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x1006013
mov dword [ebp - 0x1c], 0x100a390
push 0x1b6b
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push 3
push dword [ebp - 0x1c]
call fcn.010032a8
push eax
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push 3
push dword [ebp - 0x1c]
call fcn.010081b7
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x1006118
push 0x1b6c
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [eax + 0x3c]
push dword [eax + 0x40]
push edi
call fcn.010028db
cmp dword [ebp - 0x1c], 0x2200
jne 0x1006118
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x28]
push ecx
push dword [eax + 0x3c]
push dword [eax + 0x40]
push 0x27
call fcn.010082d6
mov ebx, eax
test ebx, ebx
je 0x1006118
mov eax, dword [ebx]
mov ecx, eax
shl ecx, 3
push ecx
push eax
push 0x1b6d
push dword [0x100a7f0]
call fcn.01008fe2
push 0x1b6e
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0x18
push dword [ebx]
push dword [ebx + 4]
push edi
call fcn.010028db
push 0x1b6f
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push dword [ebx + 8]
push dword [ebx + 0xc]
push edi
call fcn.010028db
push 0x1b70
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push edi
call fcn.010028db
push ebx
call fcn.01008f89
push 0x1b71
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
add eax, 0x38
push eax
push dword [0x100a064]
call dword [sym.imp.CRYPT32.dll_CertGetPublicKeyLength]
test eax, eax
je 0x1006155
push eax
push 0x1b72
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x1006173
push eax
push 0x1b73
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x44], 0
pop ecx
je 0x1006228
push dword [eax + 0x44]
push dword [eax + 0x48]
push edi
call fcn.010028db
cmp dword [ebp - 0x1c], 0x2400
je 0x10061f6
cmp dword [ebp - 0x1c], 0xa400
je 0x10061f6
cmp dword [ebp - 0x1c], 0x2200
jne 0x100623a
push 0x1b75
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [eax + 0x44]
push dword [eax + 0x48]
push 0x26
call fcn.010082d6
mov ebx, eax
test ebx, ebx
je 0x100623a
push dword [ebx]
push dword [ebx + 4]
push edi
call fcn.010028db
push ebx
call fcn.01008f89
jmp 0x100623a
push 0x1b74
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [eax + 0x44]
push dword [eax + 0x48]
push 0x13
call fcn.010082d6
mov ebx, eax
test ebx, ebx
je 0x100623a
push dword [ebp - 0x1c]
push ebx
jmp 0x10061e8
push 0x1b76
push dword [0x100a7f0]
call fcn.01008fe2
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.010040f9
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + 0x50], ebx
je 0x100629d
push 0x1b77
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x58]
cmp eax, ebx
pop ecx
pop ecx
je 0x1006282
push eax
push 0x1b73
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [esi + 0xc]
pop ecx
push dword [eax + 0x50]
push dword [eax + 0x54]
push edi
call fcn.010028db
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x5c], ebx
je 0x10062f0
push 0x1b78
push dword [0x100a7f0]
call fcn.01008fe2
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x64]
cmp eax, ebx
pop ecx
pop ecx
je 0x10062d5
push eax
push 0x1b73
push dword [0x100a7f0]
call fcn.01008fe2
add esp, 0xc
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
mov eax, dword [esi + 0xc]
pop ecx
push dword [eax + 0x5c]
push dword [eax + 0x60]
push edi
call fcn.010028db
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x68], ebx
je 0x1006308
push dword [ebp + 0xc]
mov esi, eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.010057d8
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.010086e3
leave
ret 8