Function at 0x1400e8590
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1402cc1a4], 0
mov rbx, rcx
jne 0x1400e85e8
cmp qword [0x1402cc218], 0
jne 0x1400e8860
lea rcx, str.ncrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402cc218], rax
test rax, rax
jne 0x1400e85f0
mov rcx, rbx
mov byte [0x1402cc1a4], 1
call fcn.140054450
mov rax, qword [rbx]
lea rdx, str.Failed_to_load_ncrypt.dll
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
add rsp, 0x20
pop rbx
ret
lea rdx, str.NCryptDecrypt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1b8], rax
test rax, rax
jne 0x1400e8636
lea rdx, str.NCryptDecrypt_function_not_found.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
mov byte [0x1402cc1a4], 1
mov qword [0x1402cc218], 0
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptOpenKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1f8], rax
test rax, rax
jne 0x1400e865f
lea rdx, str.NCryptOpenKey_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptImportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc200], rax
test rax, rax
jne 0x1400e8688
lea rdx, str.NCryptImportKey_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptCreatePersistedKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc208], rax
test rax, rax
jne 0x1400e86b4
lea rdx, str.NCryptCreatePersistedKey_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptFinalizeKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc210], rax
test rax, rax
jne 0x1400e86e0
lea rdx, str.NCryptFinalizeKey_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptExportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1f0], rax
test rax, rax
jne 0x1400e870c
lea rdx, str.NCryptExportKey_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptEnumKeys
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1e0], rax
test rax, rax
jne 0x1400e8738
lea rdx, str.NCryptEnumKeys_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptFreeBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1e8], rax
test rax, rax
jne 0x1400e8764
lea rdx, str.NCryptFreeBuffer_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptEnumStorageProviders
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1d8], rax
test rax, rax
jne 0x1400e8790
lea rdx, str.NCryptEnumStorageProviders_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptOpenStorageProvider
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1d0], rax
test rax, rax
jne 0x1400e87bc
lea rdx, str.NCryptOpenStorageProvider_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptSignHash
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1c0], rax
test rax, rax
jne 0x1400e87e8
lea rdx, str.NCryptSignHash_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptFreeObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1b0], rax
test rax, rax
je 0x1400e87dc
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptSetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1c8], rax
test rax, rax
jne 0x1400e8834
lea rdx, str.NCryptSetProperty_function_not_found.
jmp 0x1400e8613
mov rcx, qword [0x1402cc218]
lea rdx, str.NCryptGetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402cc1a8], rax
test rax, rax
jne 0x1400e8860
lea rdx, str.NCryptGetProperty_function_not_found.
jmp 0x1400e8613
mov al, 1
add rsp, 0x20
pop rbx
ret