Function at 0x140001e5e
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x44], 0
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400b6c20
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8d, 0
lea rdx, str.SHA256
mov rcx, rax
call sym.BCryptOpenAlgorithmProvider
test eax, eax
setne al
test al, al
je 0x140001ee8
lea rax, str.Error_in_BCryptOpenAlgorithmProvider_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov rax, qword [rbp - 0x38]
lea rcx, [rbp - 0x44]
mov dword [rsp + 0x28], 0
lea rdx, [rbp - 0x44]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
lea rdx, str.HashDigestLength
mov rcx, rax
call sym.BCryptGetProperty
test eax, eax
setne al
test al, al
je 0x140001f40
lea rax, str.Error_in_BCryptGetProperty_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov eax, dword [rbp - 0x44]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001f76
lea rax, str.Memory_allocation_failed_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov rax, qword [rbp - 0x38]
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
call sym.BCryptCreateHash
test eax, eax
setne al
test al, al
je 0x140001fd2
lea rax, str.Error_in_BCryptCreateHash_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.length___const
mov ebx, eax
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 0x40]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
call sym.BCryptHashData
test eax, eax
setne al
test al, al
je 0x140002028
lea rax, str.Error_in_BCryptHashData_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov ecx, dword [rbp - 0x44]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
call sym.BCryptFinishHash
test eax, eax
setne al
test al, al
je 0x140002068
lea rax, str.Error_in_BCryptFinishHash_n
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
jmp 0x14000209a
mov ecx, dword [rbp - 0x44]
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 8]
mov r8d, ecx
mov rcx, rax
call sym.toHexString_abi:cxx11__unsigned_char_const__unsigned_long_
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400020af
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.BCryptDestroyHash
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400020c9
mov rax, qword [rbp - 0x38]
mov edx, 0
mov rcx, rax
call sym.BCryptCloseAlgorithmProvider
cmp qword [rbp - 8], 0
je 0x1400020f8
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
jmp 0x1400020f8
nop
mov rax, qword [rbp + 0x20]
add rsp, 0x98
pop rbx
pop rbp
ret