Function at 0x4030b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432930
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf0000000
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea ecx, [edi + 0x28]
mov dword [edi + 0x14], 0xf
lea eax, [ebp - 0x1c]
mov byte [edi], 0
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
movups xmmword [edi + 0x18], xmm0
push 0
mov dword [ecx], 0
mov dword [edi + 0x2c], 0xf
push eax
mov dword [ebp - 0x28], ecx
mov byte [edi + 0x18], 0
mov dword [ebp - 0x14], 0xc00
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, 1
jne 0x403157
lea eax, [ebp - 0x18]
push eax
push 0x8000001
push 0xa400
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
cmp dword [ebp - 0x18], 0
je 0x40335a
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x14]
cmp edx, esi
ja 0x403180
mov ecx, edi
cmp eax, 0x10
jb 0x403177
mov ecx, dword [edi]
mov dword [edi + 0x10], edx
mov byte [ecx + edx], 0
jmp 0x4031be
mov ecx, edx
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x4031b1
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], edx
jb 0x40319a
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4031be
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.004034a0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4031c8
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x40
push 6
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp eax, 1
jne 0x40323e
mov esi, dword [edi + 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 0x14]
cmp edx, esi
ja 0x403200
mov ecx, edi
cmp eax, 0x10
jb 0x4031f7
mov ecx, dword [edi]
mov dword [edi + 0x10], edx
mov byte [ecx + edx], 0
jmp 0x40323e
mov ecx, edx
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x20], ecx
cmp ecx, eax
ja 0x403231
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [edi + 0x10], edx
jb 0x40321a
mov eax, dword [edi]
push ecx
add esi, eax
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40323e
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, edi
call fcn.004034a0
mov eax, dword [ebp - 0x28]
lea esi, [edi + 0x18]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x14], 0xc00
mov dword [ebp - 0x20], ecx
mov edx, dword [eax]
cmp edx, 0xc00
jb 0x403273
mov edx, esi
cmp ecx, 0x10
jb 0x403264
mov edx, dword [esi]
mov dword [eax], 0xc00
mov byte [edx + 0xc00], 0
jmp 0x4032c1
mov eax, dword [ebp - 0x20]
mov ecx, 0xc00
sub ecx, edx
sub eax, edx
mov dword [ebp - 0x24], ecx
cmp ecx, eax
ja 0x4032b4
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x28]
mov dword [eax], 0xc00
mov eax, esi
jb 0x403299
mov eax, dword [esi]
push ecx
lea esi, [eax + edx]
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [esi + eax], 0
lea esi, [edi + 0x18]
jmp 0x4032c1
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.004034a0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4032cb
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x40
push 7
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
cmp eax, 1
jne 0x403346
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0x20], eax
cmp edx, eax
ja 0x403303
cmp dword [esi + 0x14], 0x10
jb 0x4032fb
mov esi, dword [esi]
mov dword [ecx], edx
mov byte [esi + edx], 0
jmp 0x403346
mov ecx, edx
sub ecx, eax
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
ja 0x403339
cmp dword [esi + 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [eax], edx
jb 0x403321
mov esi, dword [esi]
add esi, dword [ebp - 0x20]
push ecx
push 0
push esi
call fcn.00423800
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x403346
push ecx
push ecx
push dword [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.004034a0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420573
mov esp, ebp
pop ebp
ret