Function at 0x14006c6c8
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 [0x1400a5768]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r12, qword [rbp + 0xe0]
mov rsi, rdx
mov qword [rsp + 0x78], r12
mov rbx, rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x70], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, [rbp - 0x70]
mov edi, eax
call fcn.14004008c
xor r13d, r13d
mov dword [rbp - 0x80], 0x67727473
lea r15, [0x1400a6be8]
mov r14d, r13d
mov qword [rbp - 0x78], r15
mov qword [rsp + 0x68], r13
cmp dword [rbp - 0x38], r13d
jl 0x14006c990
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.1400402fc
test eax, eax
js 0x14006c98c
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 - 0x78]
mov ebx, eax
test r15, r15
je 0x14006c978
xor r9d, r9d
lea rdx, str.SHA256
xor r8d, r8d
lea rcx, [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor ecx, ecx
mov esi, eax
test eax, eax
jne 0x14006c8fc
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 0x14006c8fc
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.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov r13, rax
test rax, rax
je 0x14006c864
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 0x14006c8fc
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.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov r12, rax
test rax, rax
jne 0x14006c86e
mov esi, 0xc0000017
jmp 0x14006c8fc
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 0x14006c8fc
or rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], cx
jne 0x14006c89f
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 0x14006c8fc
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 0x14006c8fc
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x68]
mov rcx, r12
call fcn.14006d078
mov r14, qword [rsp + 0x68]
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006c90e
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14006c91e
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
test r13, r13
je 0x14006c937
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.KERNEL32.dll_HeapFree]
xor r13d, r13d
test r12, r12
je 0x14006c953
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.KERNEL32.dll_HeapFree]
test esi, esi
je 0x14006c973
test r14, r14
je 0x14006c973
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.KERNEL32.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 + 0x70]
mov r12, qword [rsp + 0x78]
jmp 0x14006c990
mov r15, qword [rbp - 0x78]
lea rdx, [0x14006a6a0]
call fcn.14006ad2c
mov r10, qword [rax + 8]
cmp dword [r10], 5
jbe 0x14006ca4d
movabs rdx, 0x400000000000
mov rcx, r10
call fcn.14002b774
test al, al
je 0x14006ca4d
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.14006a5b8
mov rdx, rsi
lea rcx, [rbp]
call fcn.14006a5b8
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.14006a5b8
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.14006a5b8
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, [0x1400955ea]
mov dword [rsp + 0x20], 9
call fcn.14002b79c
test r14, r14
je 0x14006ca66
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.KERNEL32.dll_HeapFree]
mov rdx, r15
call fcn.14000d544
lea rcx, [rbp - 0x70]
call fcn.1400400e4
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.1400106e0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret