Function at 0x1075d18
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0x12c
mov eax, 0x10bdf48
call fcn.01074c7d
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 0x2c]
cmp ecx, ebx
je 0x1075d3b
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 8], ebx
je 0x1075d7f
push ebx
push 0x7fffffff
push dword [ebp + 8]
call fcn.0102e54a
test eax, eax
jge 0x1075d7f
push 0x80070057
push 0x10141b8
push 0x38
push 0x1014130
lea ecx, [ebp - 0xe4]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xe4]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp + 0x10], ebx
je 0x1075db9
push ebx
push 0x7fffffff
push dword [ebp + 0x10]
call fcn.0102e54a
test eax, eax
jge 0x1075db9
push 0x80070057
push 0x1014090
push 0x39
push 0x1014130
lea ecx, [ebp - 0x58]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x58]
jmp 0x1075d79
test dword [ebp + 0x18], 0xffff0000
je 0x1075deb
push 0x80070057
push 0x1014050
push 0x3a
push 0x1014130
lea ecx, [ebp - 0xac]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xac]
jmp 0x1075d79
push ebx
mov edi, dword [ebp + 0x1c]
mov eax, edi
and eax, 0xffffffdf
push eax
call fcn.010781e9
push ebx
push dword [ebp + 0x20]
call fcn.010782cb
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp + 0x1c], edi
or dword [ebp + 0x1c], 8
push dword [ebp + 0x1c]
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 0x1075f06
cmp byte [ebp + 0x28], bl
je 0x1075e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
je 0x1075e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1013fc8
push 0x47
push 0x1014130
lea ecx, [ebp - 0x11c]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x11c]
jmp 0x1075d79
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
test eax, eax
jne 0x1075ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1013ef8
push 0x4f
push 0x1014130
lea ecx, [ebp - 0x74]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x74]
jmp 0x1075d79
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 0x1075f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1013e30
push 0x55
push 0x1014130
lea ecx, [ebp - 0x90]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x90]
jmp 0x1075d79
cmp byte [ebp + 0x24], bl
je 0x1075f5a
mov dword [ebp + 0x28], 1
push ebx
lea eax, [ebp + 0x28]
push eax
push 0x29
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
jne 0x1075f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1013d80
push 0x5f
push 0x1014130
lea ecx, [ebp - 0xc8]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0xc8]
jmp 0x1075d79
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
shl eax, 0x10
or eax, dword [ebp + 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x1075faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01075531
push eax
push 0x1013cf8
push 0x67
push 0x1014130
lea ecx, [ebp - 0x100]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x100]
jmp 0x1075d79
push 0x24
call fcn.01074837
pop ecx
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x1075fd8
push 1
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, eax
call fcn.0107b482
jmp 0x1075fda
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1076011
push 0x8007000e
push 0x1013c3c
push 0x6b
push 0x1014130
lea ecx, [ebp - 0x138]
call fcn.0102eb09
push 0x10bf9dc
lea eax, [ebp - 0x138]
jmp 0x1075d79
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 - 0x18]
call fcn.01074d31
ret 0x28