Function at 0x4165f9
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x416654
cmp dword [ebp + 0xc], 1
je 0x416654
cmp dword [ebp + 0xc], 2
je 0x416654
cmp dword [ebp + 0xc], 3
je 0x416654
mov eax, 1
jmp 0x416659
mov eax, 0
test eax, eax
je 0x41666b
mov eax, 0
jmp 0x4169c9
cmp dword [ebp + 0xc], 0
jne 0x4166ab
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x416691
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4166a2
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x41680f
cmp dword [ebp + 0xc], 1
jne 0x4166dd
push dword [ebp + 8]
call fcn.004169f1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4166d4
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x41680f
cmp dword [ebp + 0xc], 2
jne 0x4167ec
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00418b7e
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41675c
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41676c
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41677c
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41678c
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41679c
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4167ac
push ebx
call fcn.004268af
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x4167c0
mov eax, 0
jmp 0x4169c9
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00418a39
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4167e3
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x41680f
push dword [ebp + 8]
call fcn.0041955d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41680b
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x45134f
xor ecx, ecx
test eax, eax
je 0x41681d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x41682e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x416845
dec eax
test ecx, ecx
je 0x416845
call fcn.00407769
add esp, 0xc
test eax, eax
jne 0x41685a
mov eax, 0
jmp 0x4169c9
mov dword [ebp - 0x18], esp
push 0
push 0x18
push 0x45131a
push 0x45131a
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x41689b
push 0x356
push 0x401149d
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x416900
mov dword [ebp - 0x18], esp
push 8
push 0x18
push 0x45131a
push 0x45131a
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4168e9
push 0x3af
push 0x401149d
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x416900
mov eax, 0
jmp 0x4169c9
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x416913
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.00427ef0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
test eax, eax
je 0x416947
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x416971
push 0x46e
push 0x401149d
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4169b9
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4169af
push 0x4a3
push 0x401149d
push 6
call fcn.004268b5
add esp, 0xc
mov eax, 0
jmp 0x4169c9
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0041cc95
jmp 0x4169c9
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4169da
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4169ea
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc