Function at 0x14012c420
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14046e5ec], 0
mov rbx, rcx
jne 0x14012c478
cmp qword [0x14046e660], 0
jne 0x14012c6f0
lea rcx, str.ncrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14046e660], rax
test rax, rax
jne 0x14012c480
mov rcx, rbx
mov byte [0x14046e5ec], 1
call fcn.1400a1eb0
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 [0x14046e600], rax
test rax, rax
jne 0x14012c4c6
lea rdx, str.NCryptDecrypt_function_not_found.
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
mov byte [0x14046e5ec], 1
mov qword [0x14046e660], 0
add rsp, 0x20
pop rbx
ret
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptOpenKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e640], rax
test rax, rax
jne 0x14012c4ef
lea rdx, str.NCryptOpenKey_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptImportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e648], rax
test rax, rax
jne 0x14012c518
lea rdx, str.NCryptImportKey_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptCreatePersistedKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e650], rax
test rax, rax
jne 0x14012c544
lea rdx, str.NCryptCreatePersistedKey_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptFinalizeKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e658], rax
test rax, rax
jne 0x14012c570
lea rdx, str.NCryptFinalizeKey_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptExportKey
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e638], rax
test rax, rax
jne 0x14012c59c
lea rdx, str.NCryptExportKey_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptEnumKeys
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e628], rax
test rax, rax
jne 0x14012c5c8
lea rdx, str.NCryptEnumKeys_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptFreeBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e630], rax
test rax, rax
jne 0x14012c5f4
lea rdx, str.NCryptFreeBuffer_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptEnumStorageProviders
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e620], rax
test rax, rax
jne 0x14012c620
lea rdx, str.NCryptEnumStorageProviders_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptOpenStorageProvider
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e618], rax
test rax, rax
jne 0x14012c64c
lea rdx, str.NCryptOpenStorageProvider_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptSignHash
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e608], rax
test rax, rax
jne 0x14012c678
lea rdx, str.NCryptSignHash_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptFreeObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e5f8], rax
test rax, rax
je 0x14012c66c
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptSetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e610], rax
test rax, rax
jne 0x14012c6c4
lea rdx, str.NCryptSetProperty_function_not_found.
jmp 0x14012c4a3
mov rcx, qword [0x14046e660]
lea rdx, str.NCryptGetProperty
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046e5f0], rax
test rax, rax
jne 0x14012c6f0
lea rdx, str.NCryptGetProperty_function_not_found.
jmp 0x14012c4a3
mov al, 1
add rsp, 0x20
pop rbx
ret