Function at 0x473910
Capabilities:
Create new key via cryptacquirecontext
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
lea eax, [esp + 0x48]
mov dword [esp + 0x10], 0
push eax
xor ebx, ebx
xorps xmm0, xmm0
push ebx
push 1
movdqu xmmword [esp + 0x60], xmm0
push 0x14
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], 0x470fe0
mov dword [esp + 0x70], edx
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call fcn.00473eb0
mov edi, eax
test edi, edi
je 0x473e8d
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push str.00000000.pky
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4739a8
cmp eax, 0xffffffff
je 0x4739a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4e
push str...main.c
push str._s___d_:_Public_key__00000000.pky__is_in_current_directory__lets_use_it_n
call fcn.00473420
add esp, 0xc
push str.00000000.pky
call fcn.0059fa5d
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4739e9
push 0x53
push str...main.c
push str._s___d_:_Public_key__00000000.pky__is_NOT_in_current_directory__lets_search_it..._n
call fcn.00473420
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x473fc0
sub esp, 8
call fcn.00473850
add esp, 0x10
test eax, eax
je 0x4739e9
push 0x55
push str...main.c
push str._s___d_:_ERROR_file_restore___Public_key_not_found__n
call fcn.00473420
add esp, 0xc
cmp dword [esp + 0x10], ebx
je 0x473e84
call fcn.00401f40
mov esi, eax
push esi
mov dword [esp + 0x48], esi
call fcn.00401fd0
add esp, 4
push esi
call fcn.00402060
add esp, 4
mov dword [esp + 0x2c], eax
push esi
call fcn.00402060
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
call fcn.004742e0
add esp, 4
test eax, eax
je 0x473e66
push dword [esp + 0x28]
call fcn.004020c0
add esp, 4
mov esi, eax
push esi
push 0x62
push str...main.c
push str._s___d_:_Modulus___S_n
call fcn.00473420
push esi
call fcn.00402a90
add esp, 0x14
push dword [esp + 0x14]
call fcn.004020c0
add esp, 4
mov esi, eax
push dword [esp + 0x14]
call fcn.004020c0
add esp, 4
push eax
push 0x66
push str...main.c
push str._s___d_:_Exponent__S_n
call fcn.00473420
push esi
call fcn.00402a90
add esp, 0x14
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x473e2c
push 0x6b
push str...main.c
push str._s___d_:_Searching_for_primes_numbers_in_memory..._n
call fcn.00473420
add esp, 0xc
xor esi, esi
mov dword [esp + 0x24], esi
test ebx, ebx
jne 0x473e23
push 0x1c
lea eax, [esp + 0x68]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x473df4
cmp dword [esp + 0x7c], 0x20000
jne 0x473df4
cmp dword [esp + 0x74], 0x2000
je 0x473df4
cmp dword [esp + 0x78], 4
jne 0x473df4
push 0x72
push str...main.c
push str._s___d_:_.
call fcn.00473420
add esp, 0xc
push dword [esp + 0x70]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x473df0
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x74]
push edi
push esi
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x473de9
mov eax, dword [esp + 0x70]
mov esi, edi
lea edx, [eax - 1]
add edx, edi
cmp edi, edx
jae 0x473b85
mov al, byte [edx]
mov cl, byte [esi]
mov byte [esi], al
inc esi
mov byte [edx], cl
dec edx
cmp esi, edx
jb 0x473b73
mov eax, dword [esp + 0x70]
add eax, 0xffffff80
add eax, edi
mov dword [esp + 0x40], eax
cmp dword [esp + 0x1c], eax
jae 0x473de1
test ebx, ebx
jne 0x473de1
mov ecx, edi
call fcn.00474670
comisd xmm0, xmmword [0x625fd8]
jbe 0x473dd4
mov esi, dword [esp + 0x2c]
push esi
push 0x80
push edi
call fcn.004013f0
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, esi
push dword [esp + 0x18]
call fcn.00474070
mov ebx, eax
add esp, 4
mov dword [esp + 0x3c], ebx
test ebx, ebx
je 0x473dd4
push esi
call fcn.004020c0
add esp, 4
mov esi, eax
push esi
push 0x82
push str...main.c
push str._s___d_:__nPrime1__S_n
call fcn.00473420
push esi
call fcn.00402a90
mov ebx, dword [esp + 0x2c]
add esp, 0x14
push ebx
call fcn.004020c0
add esp, 4
mov esi, eax
push ebx
call fcn.004020c0
add esp, 4
push eax
push 0x85
push str...main.c
push str._s___d_:_Prime2__S_n
call fcn.00473420
push esi
call fcn.00402a90
add esp, 0x14
call fcn.00401d70
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x2c]
push ecx
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x40], ebx
push eax
call fcn.004740e0
add esp, 0xc
test eax, eax
je 0x473db0
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
lea edx, [esp + 0x38]
call fcn.00474240
add esp, 4
test eax, eax
je 0x473d9f
push str.00000000.dky
push 0x8d
push str...main.c
push str._s___d_:_Lets_save_privatekey_blob_in__s_file__for_wannadecrypt_or_original_Wana_Decrypt0r_2.0...__n
call fcn.00473420
mov esi, dword [esp + 0x40]
mov ecx, str.00000000.dky
mov ebx, dword [esp + 0x44]
mov edx, ebx
push esi
call fcn.00473470
add esp, 0x14
lea eax, [esp + 0x50]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x473d74
push 0x92
push str...main.c
push str._s___d_:_Using_raw_user_private_key__n
call fcn.00473420
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push 0
push 0
push esi
push ebx
push dword [esp + 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x473d47
lea eax, [esp + 0x50]
push eax
push 0x473f70
sub esp, 8
call fcn.00473850
add esp, 0x10
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x38]
jmp 0x473dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:_CryptImportKey:__u_n
call fcn.0059f9ae
add esp, 8
push 0
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x38]
jmp 0x473dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x9b
push str...main.c
push str._s___d_:_ERROR_file_restore___CryptAcquireContext__0x_08x__n
call fcn.00473420
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x38]
jmp 0x473dc7
push 0x9e
push str...main.c
push str._s___d_:_ERROR_file_restore___OpenSSL_dont_want_to_convert_it_to_MS_PRIVATEKEYBLOB_format_n
jmp 0x473dbf
push 0xa0
push str...main.c
push str._s___d_:_ERROR_file_restore___OpenSSL_say_us_this_private_keys_is_not_valid___n
call fcn.00473420
add esp, 0xc
push ebx
call fcn.00401c20
mov ebx, dword [esp + 0x40]
add esp, 4
add edi, 4
cmp edi, dword [esp + 0x40]
jb 0x473b98
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x20]
add esi, dword [esp + 0x70]
mov dword [esp + 0x24], esi
cmp esi, 0x80000000
jb 0x473ad2
test ebx, ebx
jne 0x473e23
push 0xac
push str...main.c
push str._s___d_:_ERROR_file_restore___Unfortunately__no_correct_privatekey_in_memory_:__n
call fcn.00473420
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x473e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaf
push str...main.c
push str._s___d_:_ERROR_file_restore___OpenProcess__0x_08x__n
call fcn.00473420
add esp, 0x10
push dword [esp + 0x14]
call fcn.004010f0
add esp, 4
push dword [esp + 0x28]
call fcn.004010f0
mov esi, dword [esp + 0x48]
add esp, 4
push esi
call fcn.00402020
add esp, 4
push esi
call fcn.00401fa0
add esp, 4
push dword [esp + 0x10]
call fcn.0059df48
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xb9
push str...main.c
push str._s___d_:_ERROR_file_restore___Process_not_found..._n
call fcn.00473420
add esp, 0xc
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret