Function at 0x10107464
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 8
call fcn.10157203
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x101a6c00
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
cmp dword [ebp + 0xc], 0x8003
je 0x101074c4
cmp dword [ebp + 0xc], 0x8004
je 0x101074c4
xor eax, eax
jmp 0x101074c9
mov eax, 1
test eax, eax
je 0x10107510
mov eax, 0x10213e50
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x10107765
cmp dword [ebp + 0xc], 0x8001
je 0x1010752e
cmp dword [ebp + 0xc], 0x8002
je 0x1010752e
xor eax, eax
jmp 0x10107533
mov eax, 1
test eax, eax
je 0x1010757a
mov eax, 0x10213e70
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x10107765
cmp dword [ebp + 0xc], 0x800c
je 0x101075a5
cmp dword [ebp + 0xc], 0x800d
je 0x101075a5
cmp dword [ebp + 0xc], 0x800e
je 0x101075a5
xor eax, eax
jmp 0x101075aa
mov eax, 1
test eax, eax
je 0x101075f1
mov eax, 0x10213e80
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x10107765
cmp dword [ebp + 0xc], 0x6611
je 0x10107629
cmp dword [ebp + 0xc], 0x660e
je 0x10107629
cmp dword [ebp + 0xc], 0x660f
je 0x10107629
cmp dword [ebp + 0xc], 0x6610
je 0x10107629
xor eax, eax
jmp 0x1010762e
mov eax, 1
test eax, eax
je 0x10107675
mov eax, 0x10213e80
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x10107765
cmp dword [ebp + 0xc], 0x6601
je 0x10107693
cmp dword [ebp + 0xc], 0x6603
je 0x10107693
xor eax, eax
jmp 0x10107698
mov eax, 1
test eax, eax
je 0x101076df
mov eax, 0x10213e8c
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x10107765
cmp dword [ebp + 0xc], 0xa400
jne 0x1010772b
mov eax, 0x10213e70
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x10107765
mov eax, 0x10213e70
push eax
push eax
mov ebx, eax
call fcn.10002354
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.10157203
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov ebx, dword [ebp - 4]
call fcn.100034f8
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10107b27
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x1010787a
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x101077f9
push 0x623
push 0x4367c16
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10107816
push 0x623
push 0x4367c16
push 1
call fcn.101571f7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x1010785a
push 0x623
push 0x4367c16
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1010786a
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1010787a
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x1010799b
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.10002354
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x101078ef
push 0x6e6
push 0x4367c16
push 4
call fcn.101571f7
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1010790c
push 0x6e6
push 0x4367c16
push 1
call fcn.101571f7
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push 0x40
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc8
call fcn.10158c10
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x1010797b
push 0x710
push 0x4367c16
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1010798b
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1010799b
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x101079b8
cmp dword [ebp - 8], 0
je 0x101079b8
mov eax, 1
jmp 0x101079bd
mov eax, 0
test eax, eax
je 0x10107a61
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0xf0000000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10107a41
push 0x7dc
push 0x4367c16
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10107a51
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10107a61
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x10107b09
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10159c30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0x20
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10107ae9
push 0x88f
push 0x4367c16
push 6
call fcn.101571f7
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10107af9
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10107b09
push ebx
call fcn.1015720f
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x10107b1f
mov eax, 1
jmp 0x10107b34
pop eax
pop ebx
pop ecx
jmp 0x10107776
add esp, 0xc
mov eax, 0
jmp 0x10107b34
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1015720f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8