Function at 0x180186f30
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x128
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r15, r9
mov r13d, r8d
mov r12, rdx
mov r14d, ecx
mov rdi, qword [rsp + 0x190]
lea eax, [rcx - 1]
cmp eax, 2
jbe 0x180186f84
cmp ecx, 7
jne 0x18018733b
cmp byte [0x180388cf9], 0
jne 0x18018733b
cmp qword [0x180388d38], 0
jne 0x1801870f4
lea rcx, str.bcrypt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180388d38], rax
test rax, rax
jne 0x180186fd3
mov byte [0x180388cf9], 1
mov rcx, rdi
call fcn.180106a70
lea rdx, str.Failed_to_load_bcrypt.dll
jmp 0x180187332
lea rdx, str.BCryptCloseAlgorithmProvider
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d00], rax
lea rdx, str.BCryptOpenAlgorithmProvider
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d08], rax
lea rdx, str.BCryptGetProperty
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d10], rax
lea rdx, str.BCryptCreateHash
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d18], rax
lea rdx, str.BCryptHashData
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d20], rax
lea rdx, str.BCryptDestroyHash
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d28], rax
lea rdx, str.BCryptFinishHash
mov rcx, qword [0x180388d38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180388d30], rax
cmp qword [0x180388d00], 0
je 0x1801870cf
mov r10, qword [0x180388d08]
test r10, r10
je 0x1801870cf
cmp qword [0x180388d10], 0
je 0x1801870cf
cmp qword [0x180388d18], 0
je 0x1801870cf
cmp qword [0x180388d20], 0
je 0x1801870cf
cmp qword [0x180388d28], 0
je 0x1801870cf
test rax, rax
jne 0x1801870fb
mov rax, qword [rdi]
lea rdx, str.BCrypt_function_s__not_found.
mov rcx, rdi
call qword [rax + 0x28]
mov byte [0x180388cf9], 1
xor ebp, ebp
mov qword [0x180388d38], rbp
jmp 0x18018733b
mov r10, qword [0x180388d08]
test r10, r10
je 0x18018733b
cmp r14d, 1
jne 0x180187126
lea rbx, [rdi + 0x138]
mov rsi, qword [rbx]
test rsi, rsi
jne 0x18018719e
lea rdx, str.SHA1
jmp 0x180187180
cmp r14d, 7
jne 0x180187141
mov rsi, qword [rdi + 0x130]
test rsi, rsi
jne 0x18018719e
lea rdx, str.SHA256
jmp 0x180187179
cmp r14d, 2
jne 0x18018715c
mov rsi, qword [rdi + 0x140]
test rsi, rsi
jne 0x18018719e
lea rdx, str.SHA384
jmp 0x180187179
cmp r14d, 3
jne 0x18018732b
mov rsi, qword [rdi + 0x148]
test rsi, rsi
jne 0x18018719e
lea rdx, str.SHA512
lea rbx, [rdi + 0x138]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call r10
test eax, eax
mov esi, eax
js 0x1801871df
mov rsi, qword [rbx]
test rsi, rsi
je 0x18018733b
xor ebp, ebp
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9d, [rbp + 4]
lea r8, [rsp + 0x50]
lea rdx, str.ObjectLength
mov rcx, rsi
call qword [0x180388d10]
test eax, eax
jns 0x180187206
lea rdx, str.msCngHash.BCryptGetProperty_failed.
jmp 0x180187332
mov rax, qword [rdi]
lea rdx, str.BCryptOpenAlgorithmProvider_failed
mov rcx, rdi
call qword [rax + 0x28]
mov r8d, esi
lea rdx, str.status
mov rcx, rdi
call fcn.180106930
jmp 0x18018733b
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rcx, [rsp + 0x58]
call fcn.1800ba7a0
nop
mov edx, dword [rsp + 0x50]
add edx, 0x20
lea rcx, [rsp + 0x58]
call fcn.1800bdb80
test al, al
je 0x18018728e
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1800bdf80
mov rbx, rax
mov ecx, r14d
call fcn.1800eec90
mov r14d, eax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
mov r9d, dword [rsp + 0x50]
mov r8, rbx
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [0x180388d18]
test eax, eax
jns 0x1801872a2
mov rax, qword [rdi]
lea rdx, str.msCngHash.BCryptCreateHash_failed.
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x58]
call fcn.1800ba970
movzx eax, bl
jmp 0x18018733d
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [0x180388d20]
test eax, eax
jns 0x1801872d7
lea rdx, str.msCngHash.BCryptHashData_failed.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x48]
call qword [0x180388d28]
jmp 0x18018728e
cmp r14d, 0x80
jg 0x18018728e
xor r9d, r9d
mov r8d, r14d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call qword [0x180388d30]
test eax, eax
jns 0x180187306
lea rdx, str.msCngHash.BCryptFinishHash_failed.
jmp 0x1801872c1
mov r8d, r14d
lea rdx, [rsp + 0x90]
mov rcx, r15
call fcn.1800baf90
mov rcx, qword [rsp + 0x48]
call qword [0x180388d28]
mov bl, 1
jmp 0x180187290
lea rdx, str.Unsupported_hash_algorithm_in_Chilkat_CNG
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret