Function at 0x1401f4ea0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x68
mov r13d, r9d
mov r14, rdx
cmp rdx, 0x14
jne 0x1401f4ed2
mov rbx, qword [0x1403369d0]
lea rax, str.SHA1
jmp 0x1401f4f16
cmp r14, 0x20
jne 0x1401f4ee8
mov rbx, qword [0x1403369d8]
lea rax, str.SHA256
jmp 0x1401f4f16
cmp r14, 0x30
jne 0x1401f4efe
mov rbx, qword [0x1403369e0]
lea rax, str.SHA384
jmp 0x1401f4f16
cmp r14, 0x40
jne 0x1401f5123
mov rbx, qword [0x1403369e8]
lea rax, str.SHA512
mov esi, dword [rsp + 0xc8]
mov ecx, esi
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1401f5123
mov rcx, r14
mov qword [rsp + 0xb8], r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov rcx, rbp
test rax, rax
jne 0x1401f4f62
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea eax, [r12 - 1]
jmp 0x1401f503a
mov rdx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0x60], r15
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
lea rdx, str.HashDigestLength
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea r9d, [rdi + 4]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1401f501e
cmp dword [rsp + 0x40], r14d
jne 0x1401f501e
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0xa8]
mov rcx, rbx
lea rdx, str.ObjectLength
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1401f501e
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x1401f501e
mov r9d, dword [rsp + 0xa8]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x30], edi
mov r8, rax
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x1401f504f
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0xb8]
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdi, qword [rsp + 0x48]
xor r9d, r9d
mov ebx, dword [rsp + 0x40]
mov rcx, rdi
mov r8d, esi
mov rdx, rbp
call sub.bcrypt.dll_BCryptHashData
xor r9d, r9d
mov r8d, ebx
mov rdx, r12
mov rcx, rdi
mov esi, eax
call sub.bcrypt.dll_BCryptFinishHash
mov rcx, rdi
mov ebx, eax
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or esi, ebx
mov rcx, rbp
sar esi, 0x1f
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test esi, esi
jne 0x1401f5027
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1401f5027
mov rdx, qword [rsp + 0xb0]
mov r8, r13
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0xd0]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
test cl, 2
mov rcx, qword [rsp + 0xa0]
mov eax, 0
cmove rdx, rax
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov qword [rsp + 0x20], rdi
mov r8, r12
mov rcx, qword [rcx]
call sub.bcrypt.dll_BCryptVerifySignature
mov rcx, r12
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
sar ebx, 0x1f
mov eax, ebx
jmp 0x1401f5035
mov eax, 0xffffffff
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret