Function at 0x180081c90
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1802e2514], 0
mov rbx, rcx
jne 0x180081ce8
cmp qword [0x1802e2588], 0
jne 0x180081f60
lea rcx, str.ncrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1802e2588], rax
test rax, rax
jne 0x180081cf0
mov rcx, rbx
mov byte [0x1802e2514], 1
call fcn.18002b1a0
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 [0x1802e2528], rax
test rax, rax
jne 0x180081d36
lea rdx, str.NCryptDecrypt_function_not_found.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
mov byte [0x1802e2514], 1
mov qword [0x1802e2588], 0
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptOpenKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2568], rax
test rax, rax
jne 0x180081d5f
lea rdx, str.NCryptOpenKey_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptImportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2570], rax
test rax, rax
jne 0x180081d88
lea rdx, str.NCryptImportKey_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptCreatePersistedKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2578], rax
test rax, rax
jne 0x180081db4
lea rdx, str.NCryptCreatePersistedKey_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptFinalizeKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2580], rax
test rax, rax
jne 0x180081de0
lea rdx, str.NCryptFinalizeKey_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptExportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2560], rax
test rax, rax
jne 0x180081e0c
lea rdx, str.NCryptExportKey_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptEnumKeys
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2550], rax
test rax, rax
jne 0x180081e38
lea rdx, str.NCryptEnumKeys_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptFreeBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2558], rax
test rax, rax
jne 0x180081e64
lea rdx, str.NCryptFreeBuffer_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptEnumStorageProviders
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2548], rax
test rax, rax
jne 0x180081e90
lea rdx, str.NCryptEnumStorageProviders_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptOpenStorageProvider
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2540], rax
test rax, rax
jne 0x180081ebc
lea rdx, str.NCryptOpenStorageProvider_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptSignHash
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2530], rax
test rax, rax
jne 0x180081ee8
lea rdx, str.NCryptSignHash_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptFreeObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2520], rax
test rax, rax
je 0x180081edc
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptSetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2538], rax
test rax, rax
jne 0x180081f34
lea rdx, str.NCryptSetProperty_function_not_found.
jmp 0x180081d13
mov rcx, qword [0x1802e2588]
lea rdx, str.NCryptGetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1802e2518], rax
test rax, rax
jne 0x180081f60
lea rdx, str.NCryptGetProperty_function_not_found.
jmp 0x180081d13
mov al, 1
add rsp, 0x20
pop rbx
ret