Function at 0x1005cd6
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 [0x100a7f8]
mov dword [ebp - 0x20], ebx
call fcn.01008f8e
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [eax + 0x30]
push dword [eax + 0x34]
call fcn.01004254
push 0x1b5d
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [eax + 0x18]
push dword [eax + 0x1c]
call fcn.01004254
push 0x1b5e
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
add eax, 4
push eax
call fcn.010083aa
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 0x100a7e4
call fcn.0100297c
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 0x100a7d0
call fcn.0100297c
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 0x1005e1a
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 [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x100a7d0
call fcn.0100297c
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 0x1005f08
push eax
push eax
push dword [ebp - 0x1c]
call fcn.01009241
mov ebx, eax
test ebx, ebx
je 0x1005f08
lea eax, [ebp - 0x1c]
push eax
push ebx
push 2
push esi
call edi
test eax, eax
je 0x1005f02
push dword [ebx + 8]
push 0x1b60
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [ebx + 4]
add esp, 0xc
test eax, eax
je 0x1005e8b
push eax
push 0x1b61
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1005ea6
push eax
push 0x1b62
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x1005ec0
push eax
push 0x1b63
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1005edb
push eax
push 0x1bc2
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1005ef6
push eax
push 0x1b65
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
push 0x100139c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push ebx
call fcn.01008f35
mov eax, dword [esi + 0xc]
add eax, 0x20
push eax
call fcn.01003e22
push eax
push 0x1b66
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
add esp, 0xc
add eax, 0x28
push eax
call fcn.01003e22
push eax
push 0x1b67
push dword [0x100a7f8]
call fcn.01008f8e
mov edi, dword [ebp + 0xc]
add esp, 0xc
and edi, 0x10000
je 0x1005f5c
push dword [ebp + 0xc]
push esi
call fcn.01003ffa
test edi, edi
je 0x10062ee
mov eax, dword [esi + 0xc]
push dword [eax]
push 0x1b68
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0xc]
add esp, 0xc
test edi, edi
jne 0x1005f8b
mov edi, 0x100a398
push 0x1b69
push dword [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push 4
push edi
call fcn.01003272
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 0x1005fe5
push 0x1b6a
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [eax + 0x10]
push dword [eax + 0x14]
push edi
call fcn.010028a5
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1005ff9
mov dword [ebp - 0x1c], 0x100a398
push 0x1b6b
push dword [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push 3
push dword [ebp - 0x1c]
call fcn.01003272
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.010081a9
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x10060fe
push 0x1b6c
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
pop ecx
pop ecx
push dword [eax + 0x3c]
push dword [eax + 0x40]
push edi
call fcn.010028a5
cmp dword [ebp - 0x1c], 0x2200
jne 0x10060fe
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x28]
push ecx
push dword [eax + 0x3c]
push dword [eax + 0x40]
push 0x27
call fcn.010082c8
mov ebx, eax
test ebx, ebx
je 0x10060fe
mov eax, dword [ebx]
mov ecx, eax
shl ecx, 3
push ecx
push eax
push 0x1b6d
push dword [0x100a7f8]
call fcn.01008f8e
push 0x1b6e
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0x18
push dword [ebx]
push dword [ebx + 4]
push edi
call fcn.010028a5
push 0x1b6f
push dword [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push dword [ebx + 8]
push dword [ebx + 0xc]
push edi
call fcn.010028a5
push 0x1b70
push dword [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push dword [ebx + 0x10]
push dword [ebx + 0x14]
push edi
call fcn.010028a5
push ebx
call fcn.01008f35
push 0x1b71
push dword [0x100a7f8]
call fcn.01008f8e
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 0x100613b
push eax
push 0x1b72
push dword [0x100a7f8]
call fcn.01008f8e
add esp, 0xc
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x1006159
push eax
push 0x1b73
push dword [0x100a7f8]
call fcn.01008f8e
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 0x100620e
push dword [eax + 0x44]
push dword [eax + 0x48]
push edi
call fcn.010028a5
cmp dword [ebp - 0x1c], 0x2400
je 0x10061dc
cmp dword [ebp - 0x1c], 0xa400
je 0x10061dc
cmp dword [ebp - 0x1c], 0x2200
jne 0x1006220
push 0x1b75
push dword [0x100a7f8]
call fcn.01008f8e
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.010082c8
mov ebx, eax
test ebx, ebx
je 0x1006220
push dword [ebx]
push dword [ebx + 4]
push edi
call fcn.010028a5
push ebx
call fcn.01008f35
jmp 0x1006220
push 0x1b74
push dword [0x100a7f8]
call fcn.01008f8e
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.010082c8
mov ebx, eax
test ebx, ebx
je 0x1006220
push dword [ebp - 0x1c]
push ebx
jmp 0x10061ce
push 0x1b76
push dword [0x100a7f8]
call fcn.01008f8e
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.010040de
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + 0x50], ebx
je 0x1006283
push 0x1b77
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x58]
pop ecx
pop ecx
cmp eax, ebx
je 0x1006268
push eax
push 0x1b73
push dword [0x100a7f8]
call fcn.01008f8e
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.010028a5
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x5c], ebx
je 0x10062d6
push 0x1b78
push dword [0x100a7f8]
call fcn.01008f8e
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x64]
pop ecx
pop ecx
cmp eax, ebx
je 0x10062bb
push eax
push 0x1b73
push dword [0x100a7f8]
call fcn.01008f8e
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.010028a5
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x68], ebx
je 0x10062ee
push dword [ebp + 0xc]
mov esi, eax
push dword [esi + 0x6c]
push dword [esi + 0x68]
call fcn.010057bd
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.010086c7
leave
ret 8