Function at 0x140073988
Capabilities:
Hash data via bcrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r12, qword [rbp + 0xe0]
mov rsi, rdx
mov qword [rsp + 0x70], r12
mov rbx, rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, [rbp - 0x70]
mov edi, eax
call fcn.14004d6dc
xor r13d, r13d
mov dword [rsp + 0x78], 0x67727473
lea r15, [0x1400af054]
mov r14d, r13d
mov qword [rbp - 0x80], r15
cmp dword [rbp - 0x38], r13d
jl 0x140073c54
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.14004d94c
test eax, eax
js 0x140073c50
xor eax, eax
mov qword [rsp + 0x50], r13
mov r12d, eax
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], r13d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r15, qword [rbp - 0x80]
mov ebx, eax
xor eax, eax
test r15, r15
je 0x140073c3c
xor r9d, r9d
mov qword [rsp + 0x78], rax
xor r8d, r8d
lea rdx, str.SHA256
lea rcx, [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor ecx, ecx
mov esi, eax
test eax, eax
jne 0x140073bc0
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
lea r9d, [r13 + 4]
lea r8, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov esi, eax
test eax, eax
jne 0x140073bc0
mov esi, dword [rsp + 0x44]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
xor ecx, ecx
mov r13, rax
test rax, rax
je 0x140073b28
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
lea r9d, [r14 + 4]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.HashDigestLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov esi, eax
test eax, eax
jne 0x140073bc0
mov esi, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8d, esi
lea edx, [r14 + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
xor ecx, ecx
mov r12, rax
test rax, rax
jne 0x140073b32
mov esi, 0xc0000017
jmp 0x140073bc0
mov r9d, dword [rsp + 0x44]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x30], ecx
mov r8, r13
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
xor ecx, ecx
mov esi, eax
test eax, eax
jne 0x140073bc0
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], cx
jne 0x140073b63
mov rcx, qword [rsp + 0x58]
lea r8d, [rax*2 + 2]
xor r9d, r9d
mov rdx, r15
call qword [sym.imp.bcrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
jne 0x140073bc0
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov rdx, r12
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov esi, eax
test eax, eax
jne 0x140073bc0
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x78]
mov rcx, r12
call fcn.140074100
mov r14, qword [rsp + 0x78]
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140073bd2
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140073be2
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
test r13, r13
je 0x140073bfb
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
xor r13d, r13d
test r12, r12
je 0x140073c17
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test esi, esi
je 0x140073c37
test r14, r14
je 0x140073c37
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov r14, r13
mov rsi, qword [rsp + 0x60]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
jmp 0x140073c54
mov r15, qword [rbp - 0x80]
lea rdx, [0x140053b00]
call fcn.1400545f8
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x140073d11
movabs rdx, 0x400000000000
mov rcx, r10
call fcn.140035cc4
test al, al
je 0x140073d11
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.1400559c4
mov rdx, rsi
lea rcx, [rbp]
call fcn.1400559c4
lea rcx, [rbp + 0xd0]
mov qword [rbp + 0x18], 4
mov qword [rbp + 0x10], rcx
lea rax, [rbp + 0xd8]
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x20], rax
mov rdx, r14
mov qword [rbp + 0x28], 4
call fcn.1400559c4
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.1400559c4
lea rcx, [rbp + 0xe8]
mov qword [rbp + 0x58], 4
mov qword [rbp + 0x50], rcx
lea rax, [rbp - 0x30]
mov rcx, r10
mov qword [rsp + 0x28], rax
lea rdx, [0x14009d2b1]
mov dword [rsp + 0x20], 9
call fcn.140035cec
test r14, r14
je 0x140073d2a
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rdx, r15
call fcn.140011f88
lea rcx, [rbp - 0x70]
call fcn.14004d734
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14001aad0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret