Function at 0x4106bc
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 0x410717
cmp dword [ebp + 0xc], 1
je 0x410717
cmp dword [ebp + 0xc], 2
je 0x410717
cmp dword [ebp + 0xc], 3
je 0x410717
mov eax, 1
jmp 0x41071c
mov eax, 0
test eax, eax
je 0x41072e
mov eax, 0
jmp 0x410a8c
cmp dword [ebp + 0xc], 0
jne 0x41076e
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x410754
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042770f
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 0x410765
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4108d2
cmp dword [ebp + 0xc], 1
jne 0x4107a0
push dword [ebp + 8]
call fcn.00410ab4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x410797
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4108d2
cmp dword [ebp + 0xc], 2
jne 0x4108af
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.00412c41
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41081f
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41082f
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41083f
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41084f
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41085f
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41086f
push ebx
call fcn.00427715
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x410883
mov eax, 0
jmp 0x410a8c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00412afc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4108a6
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4108d2
push dword [ebp + 8]
call fcn.00413620
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4108ce
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x45c3a6
xor ecx, ecx
test eax, eax
je 0x4108e0
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x4108f1
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x410908
dec eax
test ecx, ecx
je 0x410908
call fcn.004082ea
add esp, 0xc
test eax, eax
jne 0x41091d
mov eax, 0
jmp 0x410a8c
mov dword [ebp - 0x18], esp
push 0
push 0x18
push 0x45c309
push 0x45c309
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x41095e
push 0x356
push 0x401149d
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4109c3
mov dword [ebp - 0x18], esp
push 8
push 0x18
push 0x45c309
push 0x45c309
lea eax, [ebp - 0x10]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4109ac
push 0x3af
push 0x401149d
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4109c3
mov eax, 0
jmp 0x410a8c
push 0x80000005
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4109d6
mov eax, 0x45c3a6
push eax
push 1
mov ebx, 0x194
call fcn.00428e50
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 0x410a0a
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 0x410a34
push 0x46e
push 0x401149d
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x410a7c
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 0x410a72
push 0x4a3
push 0x401149d
push 6
call fcn.00427721
add esp, 0xc
mov eax, 0
jmp 0x410a8c
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00416d58
jmp 0x410a8c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x410a9d
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x410aad
push ebx
call fcn.00427715
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc