Function at 0x14008af68
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x100
mov rax, qword [0x1400c77d8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov edi, r9d
mov dword [rbp - 0x69], r9d
mov r14d, r8d
mov dword [rbp - 0x79], r8d
mov r12, rdx
mov qword [rbp - 0x41], rdx
mov r13, rcx
mov qword [rbp - 0x39], rcx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
mov esi, eax
call fcn.1400434c0
xor eax, eax
lea rbx, [0x1400c8f30]
mov r15d, eax
mov qword [rbp - 0x51], rbx
mov qword [rbp - 0x49], rax
cmp dword [rbp + 0xf], eax
jl 0x14008b296
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x29]
call fcn.140043728
xor ecx, ecx
test eax, eax
js 0x14008b292
mov qword [rbp - 0x59], rcx
mov r13d, ecx
mov qword [rbp - 0x61], rcx
mov r12d, ecx
mov dword [rbp - 0x6d], ecx
mov dword [rbp - 0x75], ecx
mov dword [rbp - 0x71], ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x51]
mov edi, eax
test rbx, rbx
je 0x14008b277
xor r9d, r9d
lea rdx, str.SHA256
xor r8d, r8d
lea rcx, [rbp - 0x59]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
xor ecx, ecx
mov r14d, eax
test eax, eax
jne 0x14008b1cd
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x71]
mov rcx, qword [rbp - 0x59]
lea r9d, [r15 + 4]
lea r8, [rbp - 0x6d]
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14008b1cd
mov r14d, dword [rbp - 0x6d]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov r13, rax
test rax, rax
je 0x14008b128
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x71]
mov rcx, qword [rbp - 0x59]
lea r9d, [r15 + 4]
lea r8, [rbp - 0x75]
mov qword [rsp + 0x20], rax
lea rdx, str.HashDigestLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14008b1cd
mov r14d, dword [rbp - 0x75]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, r14d
lea edx, [r15 + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov r12, rax
test rax, rax
jne 0x14008b133
mov r14d, 0xc0000017
jmp 0x14008b1cd
mov r9d, dword [rbp - 0x6d]
lea rdx, [rbp - 0x61]
mov dword [rsp + 0x30], ecx
mov r8, r13
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
xor ecx, ecx
mov r14d, eax
test eax, eax
jne 0x14008b1cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], cx
jne 0x14008b168
mov rcx, qword [rbp - 0x61]
lea r8d, [rax*2 + 2]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14008b1cd
mov r8d, dword [rbp - 0x75]
xor r9d, r9d
mov rcx, qword [rbp - 0x61]
mov rdx, r12
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14008b1cd
mov edx, dword [rbp - 0x75]
lea r8, [rbp - 0x49]
mov rcx, r12
call fcn.14008ba2c
mov r15, qword [rbp - 0x49]
mov r14d, eax
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x14008b1e4
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14008b1f9
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
test r13, r13
je 0x14008b21e
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor r13d, r13d
test r12, r12
je 0x14008b246
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test r14d, r14d
je 0x14008b273
test r15, r15
je 0x14008b273
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov r15, r13
mov r14d, dword [rbp - 0x79]
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov edi, dword [rbp - 0x69]
mov r12, qword [rbp - 0x41]
mov r13, qword [rbp - 0x39]
jmp 0x14008b296
mov rbx, qword [rbp - 0x51]
lea rdx, [0x14004c810]
call fcn.14004d8f4
mov rcx, qword [rax + 8]
cmp dword [rcx], 5
jbe 0x14008b33f
movabs rdx, 0x200000000000
call fcn.140024514
test al, al
je 0x14008b33f
mov eax, dword [rbp + 0x7f]
lea rdx, [0x1400b54c3]
mov dword [rbp - 0x69], eax
mov rax, qword [rbp + 0x77]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x71]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x79]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x41], r15
mov dword [rbp - 0x71], edi
mov dword [rbp - 0x79], r14d
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x51], r13
mov qword [rbp - 0x61], 0x1000000
call fcn.14008a710
test r15, r15
je 0x14008b364
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rdx, rbx
call fcn.14004388c
lea rcx, [rbp - 0x29]
call fcn.140043518
mov ecx, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14000f060
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret