Function at 0x5f0814
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040ac64
mov eax, dword [ebp - 8]
call fcn.0040ac64
xor eax, eax
push ebp
push 0x5f0b15
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, 0x96
call fcn.004077a0
mov eax, 0x62e828
xor ecx, ecx
mov edx, 0x96
call fcn.004077a0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5f0ab0
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005ec86c
test al, al
je 0x5f0aa6
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.005ec86c
test al, al
je 0x5f0aa6
call fcn.005f0780
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x5f0794]
call fcn.0040cc0c
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5f08dc
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5f07d4]
call fcn.0040cc0c
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5f08ff
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jb 0x5f09ac
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x5f0919
sub eax, 4
mov eax, dword [eax]
imul edi, ebx, 0x103
mov edx, dword [ebp - 0xc]
lea edx, [edx + edi*8 + 0x14]
mov ecx, eax
mov eax, dword [ebp + 8]
xchg edx, eax
call fcn.00425800
mov eax, dword [ebp + 8]
test eax, eax
je 0x5f093d
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [edx + edi*8 + 0x814], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax + edi*8 + 0x10], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov dword [eax + edi*8 + 8], edx
push 0xf0000000
push 0x18
push 0
push 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*8]
push eax
call sub.advapi32.dll_CryptAcquireContextW
test eax, eax
jne 0x5f09a4
push 0x30
push 0x5f0b2c
push 0x5f0b4c
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
call fcn.0040a9e0
inc ebx
dec esi
jne 0x5f090d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5f09b8
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jb 0x5f09ed
inc esi
xor ebx, ebx
imul eax, ebx, 0x103
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*8]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5f0668
xor edx, edx
xor eax, eax
call fcn.0040aa40
mov edx, dword [ebp - 0x10]
mov dword [edx + ebx*4], eax
inc ebx
dec esi
jne 0x5f09c2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5f09f9
sub eax, 4
mov eax, dword [eax]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
push eax
call sub.KERNEL32.DLL_WaitForMultipleObjects
lea eax, [ebp - 0x2c]
mov edx, 0x62e828
mov ecx, 0x4b
call fcn.0040b834
cmp dword [ebp - 0x2c], 0
je 0x5f0a36
mov byte [ebp - 0x11], 1
mov eax, dword [ebp + 0xc]
mov edi, eax
mov esi, 0x62e828
mov ecx, 0x25
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5f0a42
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
test esi, esi
jb 0x5f0a70
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0
imul eax, ebx, 0x103
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + eax*8]
push eax
call sub.advapi32.dll_CryptReleaseContext
inc ebx
dec esi
jne 0x5f0a4c
lea eax, [ebp - 0x10]
mov edx, dword [0x5f07d4]
call fcn.0040cd30
lea eax, [ebp - 0xc]
mov edx, dword [0x5f0794]
call fcn.0040cd30
mov eax, dword [ebp - 0x18]
call fcn.00406a88
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
call fcn.00406a88
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5f0ad6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f0b1c
lea eax, [ebp - 0x2c]
call fcn.0040ab80
lea eax, [ebp - 0x10]
mov edx, dword [0x5f07d4]
call fcn.0040cd30
lea eax, [ebp - 0xc]
mov edx, dword [0x5f0794]
call fcn.0040cd30
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040abe0
ret