Function at 0x4165b8
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 0x416613
cmp dword [ebp + 0xc], 1
je 0x416613
cmp dword [ebp + 0xc], 2
je 0x416613
cmp dword [ebp + 0xc], 3
je 0x416613
mov eax, 1
jmp 0x416618
mov eax, 0
test eax, eax
je 0x41662a
mov eax, 0
jmp 0x416988
cmp dword [ebp + 0xc], 0
jne 0x41666a
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x416650
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00426cb9
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 0x416661
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4167ce
cmp dword [ebp + 0xc], 1
jne 0x41669c
push dword [ebp + 8]
call fcn.004169b0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x416693
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4167ce
cmp dword [ebp + 0xc], 2
jne 0x4167ab
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.00418b3d
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41671b
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41672b
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41673b
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41674b
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41675b
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41676b
push ebx
call fcn.00426cbf
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x41677f
mov eax, 0
jmp 0x416988
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.004189f8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4167a2
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4167ce
push dword [ebp + 8]
call fcn.0041951c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4167ca
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x45134f
xor ecx, ecx
test eax, eax
je 0x4167dc
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x4167ed
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x416804
dec eax
test ecx, ecx
je 0x416804
call fcn.00407769
add esp, 0xc
test eax, eax
jne 0x416819
mov eax, 0
jmp 0x416988
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 0x41685a
push 0x356
push 0x401149d
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4168bf
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 0x4168a8
push 0x3af
push 0x401149d
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4168bf
mov eax, 0
jmp 0x416988
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4168d2
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.004282f0
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 0x416906
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 0x416930
push 0x46e
push 0x401149d
push 6
call fcn.00426cc5
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x416978
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 0x41696e
push 0x4a3
push 0x401149d
push 6
call fcn.00426cc5
add esp, 0xc
mov eax, 0
jmp 0x416988
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0041cc54
jmp 0x416988
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x416999
push ebx
call fcn.00426cbf
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4169a9
push ebx
call fcn.00426cbf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc