Function at 0x5d9504
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 8
call fcn.00645a7b
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0xa13348
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 0x5d9564
cmp dword [ebp + 0xc], 0x8004
je 0x5d9564
xor eax, eax
jmp 0x5d9569
mov eax, 1
test eax, eax
je 0x5d95b0
mov eax, 0xa80854
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x5d9805
cmp dword [ebp + 0xc], 0x8001
je 0x5d95ce
cmp dword [ebp + 0xc], 0x8002
je 0x5d95ce
xor eax, eax
jmp 0x5d95d3
mov eax, 1
test eax, eax
je 0x5d961a
mov eax, 0xa80874
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x5d9805
cmp dword [ebp + 0xc], 0x800c
je 0x5d9645
cmp dword [ebp + 0xc], 0x800d
je 0x5d9645
cmp dword [ebp + 0xc], 0x800e
je 0x5d9645
xor eax, eax
jmp 0x5d964a
mov eax, 1
test eax, eax
je 0x5d9691
mov eax, 0xa80884
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x5d9805
cmp dword [ebp + 0xc], 0x6611
je 0x5d96c9
cmp dword [ebp + 0xc], 0x660e
je 0x5d96c9
cmp dword [ebp + 0xc], 0x660f
je 0x5d96c9
cmp dword [ebp + 0xc], 0x6610
je 0x5d96c9
xor eax, eax
jmp 0x5d96ce
mov eax, 1
test eax, eax
je 0x5d9715
mov eax, 0xa80884
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x5d9805
cmp dword [ebp + 0xc], 0x6601
je 0x5d9733
cmp dword [ebp + 0xc], 0x6603
je 0x5d9733
xor eax, eax
jmp 0x5d9738
mov eax, 1
test eax, eax
je 0x5d977f
mov eax, 0xa80890
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x5d9805
cmp dword [ebp + 0xc], 0xa400
jne 0x5d97cb
mov eax, 0xa80874
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x5d9805
mov eax, 0xa80874
push eax
push eax
mov ebx, eax
call fcn.004efe34
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00645a7b
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.00645a87
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov ebx, dword [ebp - 4]
call fcn.004f5a94
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 0x5d9bc7
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x5d991a
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x5d9899
push 0x623
push 0x4367c16
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5d98b6
push 0x623
push 0x4367c16
push 1
call fcn.00645a6f
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 0x5d98fa
push 0x623
push 0x4367c16
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5d990a
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5d991a
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x5d9a3b
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x5d998f
push 0x6e6
push 0x4367c16
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5d99ac
push 0x6e6
push 0x4367c16
push 1
call fcn.00645a6f
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.0064aa60
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 0x5d9a1b
push 0x710
push 0x4367c16
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5d9a2b
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5d9a3b
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x5d9a58
cmp dword [ebp - 8], 0
je 0x5d9a58
mov eax, 1
jmp 0x5d9a5d
mov eax, 0
test eax, eax
je 0x5d9b01
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
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 0x5d9ae1
push 0x7dc
push 0x4367c16
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5d9af1
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5d9b01
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x5d9ba9
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00647ce0
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 0x5d9b89
push 0x88f
push 0x4367c16
push 6
call fcn.00645a6f
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5d9b99
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5d9ba9
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x5d9bbf
mov eax, 1
jmp 0x5d9bd4
pop eax
pop ebx
pop ecx
jmp 0x5d9816
add esp, 0xc
mov eax, 0
jmp 0x5d9bd4
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8