Function at 0x1076622
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0x118
mov eax, 0x10be028
call fcn.01074c7d
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x30]
cmp ecx, ebx
je 0x1076645
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x1076686
push ebx
push 0x7fffffff
push dword [ebp + 8]
call fcn.0102e54a
test eax, eax
jge 0x1076686
push 0x80070057
push 0x10141b8
push 0x17e
push 0x1014130
lea ecx, [ebp - 0x60]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x60]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0x10], ebx
je 0x10766c9
push ebx
push 0x7fffffff
push dword [ebp + 0x10]
call fcn.0102e54a
test eax, eax
jge 0x10766c9
push 0x80070057
push 0x1014090
push 0x17f
push 0x1014130
lea ecx, [ebp - 0x98]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x98]
jmp 0x1076680
cmp dword [ebp + 0x1c], ebx
jne 0x10766fa
push 0x80070057
push 0x10144b8
push 0x181
push 0x1014130
lea ecx, [ebp - 0x108]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x108]
jmp 0x1076680
push ebx
mov edi, dword [ebp + 0x24]
mov eax, edi
and eax, 0xfffffff7
push eax
call fcn.010781e9
push ebx
push dword [ebp + 0x28]
call fcn.010782cb
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
jne 0x1076823
mov eax, edi
or eax, 0x40
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
cmp eax, ebx
jne 0x10767be
call fcn.0108edc3
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x2c], bl
je 0x10767be
mov eax, edi
or eax, 8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x107687d
call fcn.0108edc3
cmp eax, 0x800704c7
je 0x1076793
cmp eax, 0x4c7
je 0x1076793
cmp eax, 0x8010006e
je 0x1076793
mov eax, dword [ebp - 0x18]
push eax
push 0x1014494
push 0x1a4
push 0x1014130
lea ecx, [ebp - 0xd0]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xd0]
jmp 0x1076680
lea ecx, [ebp - 0x14]
call fcn.01075c42
mov dword [ebp - 0x14], ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
cmp eax, ebx
jne 0x107687d
call fcn.0108edc3
cmp eax, 0x800704c7
je 0x10767fe
cmp eax, 0x4c7
je 0x10767fe
cmp eax, 0x8010006e
je 0x10767fe
mov eax, dword [ebp - 0x18]
push eax
push 0x1014480
push 0x1b8
push 0x1014130
lea ecx, [ebp - 0x7c]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x7c]
jmp 0x1076680
mov eax, dword [ecx]
call dword [eax + 0x38]
mov esi, eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptContextAddRef]
test eax, eax
jne 0x107686e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1014438
push 0x1bf
push 0x1014130
lea ecx, [ebp - 0xb4]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xb4]
jmp 0x1076680
push esi
lea ecx, [ebp - 0x14]
call fcn.01075cc3
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
je 0x107688e
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x1076890
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x28]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp eax, ebx
jne 0x10768f8
call fcn.0108edc3
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], ebx
je 0x10768cb
or edi, 0x10
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
push dword [ebp - 0x18]
push 0x1014480
push 0x1d8
push 0x1014130
lea ecx, [ebp - 0xec]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xec]
jmp 0x1076680
push 0x24
call fcn.01074837
pop ecx
mov ecx, eax
mov dword [ebp + 0x2c], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1076921
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0107b482
jmp 0x1076923
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x107695d
push 0x8007000e
push 0x1013c3c
push 0x1dd
push 0x1014130
lea ecx, [ebp - 0x124]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x124]
jmp 0x1076680
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.01075c42
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.01074d31
ret 0x2c