Function at 0x43e319
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0x7c
mov eax, 0x578980
call fcn.004fba06
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x54], ecx
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], 0x59b6bc
mov dword [eax], esi
push 0x30
call fcn.004fc6d6
pop ecx
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, esi
je 0x43e5b4
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0043da98
add esp, 0xc
cmp eax, esi
je 0x43e5b4
push 0x18
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.004fc1f0
add esp, 0xc
mov dword [ebp - 0x2c], 0x20
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x14
mov dword [ebp - 0x1c], 0x59b6b4
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, esi
jne 0x43e3d0
mov dword [ebp - 0x70], esi
push 0x5d6a50
lea eax, [ebp - 0x70]
push eax
call fcn.004fa35f
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043cec7
pop ecx
cmp eax, esi
jne 0x43e3f1
mov dword [ebp - 0x64], esi
push 0x5d6a50
lea eax, [ebp - 0x64]
jmp 0x43e3ca
push 0xc
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
cmp eax, esi
jne 0x43e41a
mov dword [ebp - 0x5c], esi
push 0x5d6a50
lea eax, [ebp - 0x5c]
jmp 0x43e3ca
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0x40]
call fcn.0043e23b
add esp, 0xc
cmp eax, esi
jne 0x43e440
mov dword [ebp - 0x78], esi
push 0x5d6a50
lea eax, [ebp - 0x78]
jmp 0x43e3ca
pushal
lea eax, [ebp - 0x48]
mov ecx, eax
add ecx, 4
push ecx
push eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call eax
mov dword [ebp - 0x4c], eax
popal
xor edi, edi
cmp dword [ebp - 0x4c], edi
jl 0x43e575
cmp dword [ebp - 0x44], edi
je 0x43e575
push 4
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
call esi
test eax, eax
je 0x43e496
mov dword [ebp - 0x74], edi
push 0x5d6a50
lea eax, [ebp - 0x74]
jmp 0x43e3ca
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
push 4
push ecx
call esi
test eax, eax
jne 0x43e564
push 4
push dword [ebp - 0x34]
call esi
test eax, eax
jne 0x43e564
lea eax, [ebx + edi + 0x10]
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
push eax
call fcn.004fc6d6
pop ecx
mov esi, dword [ebp - 0x58]
mov dword [esi], eax
test eax, eax
jne 0x43e4ef
and dword [ebp - 0x6c], eax
push 0x5d6a50
lea eax, [ebp - 0x6c]
jmp 0x43e3ca
mov ecx, dword [ebp - 0x54]
push dword [ecx]
push 0
push eax
call fcn.004fc1f0
mov esi, dword [esi]
mov eax, dword [ebp + 8]
inc eax
mov dword [esi], eax
mov dword [esi + 4], edi
add esi, 8
push edi
push dword [ebp - 0x50]
push edi
push esi
call fcn.004fa3ab
add esi, edi
mov eax, dword [ebp + 8]
add eax, 2
mov dword [esi], eax
mov dword [esi + 4], ebx
add esi, 8
push ebx
push dword [ebp - 0x34]
push ebx
push esi
call fcn.004fa3ab
add esp, 0x2c
xor esi, esi
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp eax, esi
jne 0x43e553
mov dword [ebp - 0x7c], esi
push 0x5d6a50
lea eax, [ebp - 0x7c]
jmp 0x43e3ca
push dword [ebp - 0x30]
call fcn.004fc2ea
pop ecx
mov dword [ebp - 0x30], esi
xor eax, eax
inc eax
jmp 0x43e5b6
and dword [ebp - 0x60], 0
push 0x5d6a50
lea eax, [ebp - 0x60]
jmp 0x43e3ca
mov dword [ebp - 0x68], edi
push 0x5d6a50
lea eax, [ebp - 0x68]
jmp 0x43e3ca
xor eax, eax
call fcn.004fba62
ret