Function at 0x50c2b0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6761b6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6c
mov eax, dword [0x70b034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x30], al
movups xmmword [ebp - 0x2f], xmm0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x4c], al
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x50c53d
lea eax, [ebp - 0x1c]
push eax
push 8
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x50c532
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
push str._02X_02X_02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0x30]
push 0x11
push eax
call fcn.0043ff99
add esp, 0x2c
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x50c53d
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jne 0x50c3ba
xor eax, eax
jmp 0x50c3c6
lea eax, [ebp - 0x30]
push eax
call fcn.00641cc0
add esp, 4
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x64]
call fcn.00429336
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00512980
mov esi, eax
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x50c450
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x50c435
mov ecx, dword [ebp - 0x4c]
inc eax
cmp eax, 0x1000
jb 0x50c42c
test cl, 0x1f
je 0x50c408
call fcn.00641c61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x50c414
call fcn.00641c61
sub ecx, eax
cmp ecx, 4
jae 0x50c420
call fcn.00641c61
cmp ecx, 0x23
jbe 0x50c42a
call fcn.00641c61
mov ecx, eax
push ecx
call fcn.0047fe90
add esp, 4
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00428f2c
mov eax, dword [ebp - 0x68]
cmp eax, 0x10
jb 0x50c49a
mov ecx, dword [ebp - 0x7c]
inc eax
cmp eax, 0x1000
jb 0x50c491
test cl, 0x1f
je 0x50c46d
call fcn.00641c61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x50c479
call fcn.00641c61
sub ecx, eax
cmp ecx, 4
jae 0x50c485
call fcn.00641c61
cmp ecx, 0x23
jbe 0x50c48f
call fcn.00641c61
mov ecx, eax
push ecx
call fcn.0047fe90
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
cmp eax, 0x10
jb 0x50c4f6
mov ecx, dword [ebp - 0x64]
inc eax
cmp eax, 0x1000
jb 0x50c4ed
test cl, 0x1f
je 0x50c4c9
call fcn.00641c61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x50c4d5
call fcn.00641c61
sub ecx, eax
cmp ecx, 4
jae 0x50c4e1
call fcn.00641c61
cmp ecx, 0x23
jbe 0x50c4eb
call fcn.00641c61
mov ecx, eax
push ecx
call fcn.0047fe90
add esp, 4
cmp dword [ebp - 0x3c], 0xac
jne 0x50c53d
lea eax, [ebp - 0x30]
push eax
push 0x11
push 0x71e775
call fcn.0065423e
add esp, 0xc
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
cmovae eax, dword [ebp - 0x4c]
push eax
push 0xad
push 0x71e6c8
call fcn.0065423e
add esp, 0xc
jmp 0x50c53d
push 0
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x50c587
mov ecx, dword [ebp - 0x4c]
inc eax
cmp eax, 0x1000
jb 0x50c57e
test cl, 0x1f
je 0x50c55a
call fcn.00641c61
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x50c566
call fcn.00641c61
sub ecx, eax
cmp ecx, 4
jae 0x50c572
call fcn.00641c61
cmp ecx, 0x23
jbe 0x50c57c
call fcn.00641c61
mov ecx, eax
push ecx
call fcn.0047fe90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00625788
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret