Function at 0x1400a7260
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140357c74], 0
mov rbx, rcx
jne 0x1400a72b8
cmp qword [0x140357ce8], 0
jne 0x1400a7530
lea rcx, str.ncrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140357ce8], rax
test rax, rax
jne 0x1400a72c0
mov rcx, rbx
mov byte [0x140357c74], 1
call fcn.14004e0e0
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 [0x140357c88], rax
test rax, rax
jne 0x1400a7306
lea rdx, str.NCryptDecrypt_function_not_found.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
mov byte [0x140357c74], 1
mov qword [0x140357ce8], 0
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptOpenKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cc8], rax
test rax, rax
jne 0x1400a732f
lea rdx, str.NCryptOpenKey_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptImportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cd0], rax
test rax, rax
jne 0x1400a7358
lea rdx, str.NCryptImportKey_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptCreatePersistedKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cd8], rax
test rax, rax
jne 0x1400a7384
lea rdx, str.NCryptCreatePersistedKey_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptFinalizeKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357ce0], rax
test rax, rax
jne 0x1400a73b0
lea rdx, str.NCryptFinalizeKey_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptExportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cc0], rax
test rax, rax
jne 0x1400a73dc
lea rdx, str.NCryptExportKey_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptEnumKeys
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cb0], rax
test rax, rax
jne 0x1400a7408
lea rdx, str.NCryptEnumKeys_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptFreeBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357cb8], rax
test rax, rax
jne 0x1400a7434
lea rdx, str.NCryptFreeBuffer_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptEnumStorageProviders
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357ca8], rax
test rax, rax
jne 0x1400a7460
lea rdx, str.NCryptEnumStorageProviders_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptOpenStorageProvider
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357ca0], rax
test rax, rax
jne 0x1400a748c
lea rdx, str.NCryptOpenStorageProvider_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptSignHash
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357c90], rax
test rax, rax
jne 0x1400a74b8
lea rdx, str.NCryptSignHash_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptFreeObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357c80], rax
test rax, rax
je 0x1400a74ac
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptSetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357c98], rax
test rax, rax
jne 0x1400a7504
lea rdx, str.NCryptSetProperty_function_not_found.
jmp 0x1400a72e3
mov rcx, qword [0x140357ce8]
lea rdx, str.NCryptGetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140357c78], rax
test rax, rax
jne 0x1400a7530
lea rdx, str.NCryptGetProperty_function_not_found.
jmp 0x1400a72e3
mov al, 1
add rsp, 0x20
pop rbx
ret