Function at 0x1069a8e
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xf4
mov eax, 0x10a7c11
call fcn.01068401
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
je 0x1069ab1
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x1069aef
push ebx
push 0x7fffffff
push dword [ebp + 8]
call fcn.01029dbc
test eax, eax
jge 0x1069aef
push 0x80070057
push 0x1011ae0
push 0x37
push 0x1011a58
lea ecx, [ebp - 0x58]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x58]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0x10], ebx
je 0x1069b2f
push ebx
push 0x7fffffff
push dword [ebp + 0x10]
call fcn.01029dbc
test eax, eax
jge 0x1069b2f
push 0x80070057
push 0x10119b8
push 0x38
push 0x1011a58
lea ecx, [ebp - 0xe4]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xe4]
jmp 0x1069ae9
mov edi, dword [ebp + 0x18]
test edi, 0xffff0000
je 0x1069b63
push 0x80070057
push 0x1011978
push 0x39
push 0x1011a58
lea ecx, [ebp - 0xac]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xac]
jmp 0x1069ae9
push ebx
mov eax, dword [ebp + 0x1c]
and eax, 0xffffffdf
push eax
call fcn.0106b89d
push ebx
push dword [ebp + 0x20]
call fcn.0106b977
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x1c]
or eax, 8
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 0x1069c2e
cmp byte [ebp + 0x24], bl
je 0x1069bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
je 0x1069be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x10118f0
push 0x46
push 0x1011a58
lea ecx, [ebp - 0x74]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x74]
jmp 0x1069ae9
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
jne 0x1069c2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x1011848
push 0x4e
push 0x1011a58
lea ecx, [ebp - 0x90]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x90]
jmp 0x1069ae9
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
shl edi, 0x10
or edi, dword [ebp + 0x20]
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x1069c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.010692df
push eax
push 0x10117c0
push 0x56
push 0x1011a58
lea ecx, [ebp - 0xc8]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0xc8]
jmp 0x1069ae9
push 0x24
call fcn.01067fb8
pop ecx
mov ecx, eax
mov dword [ebp + 0x24], ecx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1069ca9
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0106e833
jmp 0x1069cab
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1069ce2
push 0x8007000e
push 0x1011700
push 0x59
push 0x1011a58
lea ecx, [ebp - 0x100]
call fcn.01029fb9
push 0x10a93cc
lea eax, [ebp - 0x100]
jmp 0x1069ae9
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010699b8
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.010684b5
ret 0x24