Function at 0x14004a3b0
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x190
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x108], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0xa8], 0
lea rdx, str.SHA256
lea rcx, [rbp + 0xa8]
xor r8d, r8d
xor r9d, r9d
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x14004a5a0
mov rcx, qword [rbp + 0xa8]
mov qword [rbp + 0x90], rcx
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdx, str.HashDigestLength
lea r8, [rbp + 0xa4]
mov r9d, 4
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x14004a615
xorps xmm0, xmm0
movaps xmmword [rbp + 0x80], xmm0
movaps xmmword [rbp + 0x70], xmm0
cmp dword [rbp + 0xa4], 0x20
jne 0x14004a688
mov qword [rbp + 0xb0], 0
mov rcx, qword [rbp + 0xa8]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [rbp + 0xb0]
xor r8d, r8d
xor r9d, r9d
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
js 0x14004a6bd
mov rcx, qword [rbp + 0xb0]
mov qword [rbp + 0x98], rcx
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
test eax, eax
js 0x14004a736
mov rcx, qword [rbp + 0xb0]
lea rdi, [rbp + 0x70]
mov rdx, rdi
mov r8d, 0x20
xor r9d, r9d
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
js 0x14004a7ac
lea rax, [0x14013e1a5]
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], 0
lea rax, [rbp + 0x90]
mov qword [rbp + 0xb8], rdi
mov qword [rbp + 0xc0], rax
lea rax, [rbp + 0xb8]
mov qword [rbp + 0xe8], rax
lea rax, [0x14004abb0]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], 0xf
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x100], rax
lea rax, str.:02x
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 6
lea rdx, [rbp + 0xd8]
lea r8, [rbp + 0xf8]
mov rcx, rsi
call fcn.1400b1b80
lea rcx, [rbp + 0x98]
call fcn.14004a9f0
lea rcx, [rbp + 0x90]
call fcn.14004aad0
mov rax, rsi
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0xf8], eax
mov qword [rbp + 0xb8], 1
lea rax, [rbp + 0xf8]
mov qword [rbp + 0xc0], rax
lea rax, str.BCryptOpenAlgorithmProvider_returned_error_:x
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], gethostname
lea rsi, [rbp + 0x70]
lea rdx, [rbp + 0xe8]
lea r8, [rbp + 0xb8]
mov rcx, rsi
call fcn.1400b1b80
lea rdi, [rbp - 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14004a980
lea rdx, [0x1401557b0]
mov rcx, rdi
call fcn.1400d37ac
jmp 0x14004a820
mov dword [rbp + 0xf8], eax
mov qword [rbp + 0xb8], 1
lea rax, [rbp + 0xf8]
mov qword [rbp + 0xc0], rax
lea rax, str.BCryptGetProperty_returned_error_:x
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], 0x26
lea rcx, [rbp + 0x70]
lea rdx, [rbp + 0xe8]
lea r8, [rbp + 0xb8]
call fcn.1400b1b80
lea rsi, [rbp - 0x28]
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.14004a980
lea rdx, [0x1401557b0]
mov rcx, rsi
call fcn.1400d37ac
jmp 0x14004a820
lea rax, str.libgcrypt_returned_unexpected_buffer_size_requirement_for_SHA256_hash
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], 0x45
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x58]
call fcn.14003dfc0
lea rdx, [0x140149408]
lea rcx, [rbp + 0x38]
call fcn.1400d37ac
jmp 0x14004a820
mov dword [rbp + 0xe8], eax
mov qword [rbp + 0xf8], 1
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x100], rax
lea rax, str.BCryptCreateHash_returned_error_:x
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 0x25
lea rcx, [rbp + 0xb8]
lea rdx, [rbp + 0xd8]
lea r8, [rbp + 0xf8]
call fcn.1400b1b80
lea rsi, [rbp - 0x10]
lea rdx, [rbp + 0xb8]
mov rcx, rsi
call fcn.14004a980
lea rdx, [0x1401557b0]
mov rcx, rsi
call fcn.1400d37ac
jmp 0x14004a820
mov dword [rbp + 0xe8], eax
mov qword [rbp + 0xf8], 1
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x100], rax
lea rax, str.BCryptHashData_returned_error_:x
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 0x23
lea rcx, [rbp + 0xb8]
lea rdx, [rbp + 0xd8]
lea r8, [rbp + 0xf8]
call fcn.1400b1b80
lea rsi, [rbp + 8]
lea rdx, [rbp + 0xb8]
mov rcx, rsi
call fcn.14004a980
lea rdx, [0x1401557b0]
mov rcx, rsi
call fcn.1400d37ac
jmp 0x14004a820
mov dword [rbp + 0xe8], eax
mov qword [rbp + 0xf8], 1
lea rax, [rbp + 0xe8]
mov qword [rbp + 0x100], rax
lea rax, str.BCryptFinishHash_returned_error_:x
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0xe0], 0x25
lea rcx, [rbp + 0xb8]
lea rdx, [rbp + 0xd8]
lea r8, [rbp + 0xf8]
call fcn.1400b1b80
lea rsi, [rbp + 0x20]
lea rdx, [rbp + 0xb8]
mov rcx, rsi
call fcn.14004a980
lea rdx, [0x1401557b0]
mov rcx, rsi
call fcn.1400d37ac
int3