Function at 0x58199b
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 8
call fcn.005b82e0
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x66df3e
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 0x5819fb
cmp dword [ebp + 0xc], 0x8004
je 0x5819fb
xor eax, eax
jmp 0x581a00
mov eax, 1
test eax, eax
je 0x581a47
mov eax, 0x6d9f6a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x581c9c
cmp dword [ebp + 0xc], 0x8001
je 0x581a65
cmp dword [ebp + 0xc], 0x8002
je 0x581a65
xor eax, eax
jmp 0x581a6a
mov eax, 1
test eax, eax
je 0x581ab1
mov eax, 0x6d9f8a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x581c9c
cmp dword [ebp + 0xc], 0x800c
je 0x581adc
cmp dword [ebp + 0xc], 0x800d
je 0x581adc
cmp dword [ebp + 0xc], 0x800e
je 0x581adc
xor eax, eax
jmp 0x581ae1
mov eax, 1
test eax, eax
je 0x581b28
mov eax, 0x6d9f9a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x581c9c
cmp dword [ebp + 0xc], 0x6611
je 0x581b60
cmp dword [ebp + 0xc], 0x660e
je 0x581b60
cmp dword [ebp + 0xc], 0x660f
je 0x581b60
cmp dword [ebp + 0xc], 0x6610
je 0x581b60
xor eax, eax
jmp 0x581b65
mov eax, 1
test eax, eax
je 0x581bac
mov eax, 0x6d9f9a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x581c9c
cmp dword [ebp + 0xc], 0x6601
je 0x581bca
cmp dword [ebp + 0xc], 0x6603
je 0x581bca
xor eax, eax
jmp 0x581bcf
mov eax, 1
test eax, eax
je 0x581c16
mov eax, 0x6d9fa6
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x581c9c
cmp dword [ebp + 0xc], 0xa400
jne 0x581c62
mov eax, 0x6d9f8a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x581c9c
mov eax, 0x6d9f8a
push eax
push eax
mov ebx, eax
call fcn.0046df73
pop eax
sub ebx, eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.005b82e0
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.005b82ec
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
mov ebx, dword [ebp - 4]
call fcn.00471572
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 0x58205e
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x581db1
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x581d30
push 0x623
push 0x4330076
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x581d4d
push 0x623
push 0x4330076
push 1
call fcn.005b82f8
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 0x581d91
push 0x623
push 0x4330076
push 6
call fcn.005b82f8
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x581da1
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x581db1
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x581ed2
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
call fcn.0046df73
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x581e26
push 0x6e6
push 0x4330076
push 4
call fcn.005b82f8
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x581e43
push 0x6e6
push 0x4330076
push 1
call fcn.005b82f8
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.005ba620
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 0x581eb2
push 0x710
push 0x4330076
push 6
call fcn.005b82f8
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x581ec2
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x581ed2
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x581eef
cmp dword [ebp - 8], 0
je 0x581eef
mov eax, 1
jmp 0x581ef4
mov eax, 0
test eax, eax
je 0x581f98
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
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 0x581f78
push 0x7dc
push 0x4330076
push 6
call fcn.005b82f8
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x581f88
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x581f98
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x582040
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005b9420
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 0x582020
push 0x88f
push 0x4330076
push 6
call fcn.005b82f8
add esp, 0xc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x582030
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x582040
push ebx
call fcn.005b82ec
add esp, 4
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
je 0x582056
mov eax, 1
jmp 0x58206b
pop eax
pop ebx
pop ecx
jmp 0x581cad
add esp, 0xc
mov eax, 0
jmp 0x58206b
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.005b82ec
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8