Function at 0x1400136e0
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140078088]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r9, r8
mov rdi, rdx
mov qword [rsp + 0x70], rdx
xor r15d, r15d
mov dword [rsp + 0x60], r15d
mov rdx, qword [r8 + 0x18]
cmp rdx, 8
jb 0x14001373d
mov rcx, qword [r8]
jmp 0x140013740
mov rcx, r9
mov rax, qword [r8 + 0x10]
lea r8, [rcx + rax*2]
cmp rdx, 8
jb 0x140013751
mov r9, qword [r9]
mov qword [rbp + 0x88], 0xf
mov qword [rbp + 0x80], r15
mov byte [rbp + 0x70], r15b
mov rdx, r9
lea rcx, [rbp + 0x70]
call fcn.14001ac00
nop
mov qword [rsp + 0x50], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140061168]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ncrypt.dll_BCryptOpenAlgorithmProvider]
mov esi, eax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x44], r15d
test eax, eax
js 0x1400137cf
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x44]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ncrypt.dll_BCryptGetProperty]
mov esi, eax
mov r14, r15
mov r12d, 0xc0000001
test esi, esi
js 0x1400137fe
mov ebx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
cmove esi, r12d
mov eax, r15d
mov dword [rsp + 0x40], eax
test esi, esi
js 0x14001383b
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x40]
lea rdx, str.HashDigestLength
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ncrypt.dll_BCryptGetProperty]
mov esi, eax
mov eax, dword [rsp + 0x40]
mov rbx, r15
test esi, esi
js 0x140013862
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
cmove esi, r12d
mov qword [rsp + 0x58], r15
test esi, esi
js 0x1400138dc
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, dword [rsp + 0x44]
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ncrypt.dll_BCryptCreateHash]
mov esi, eax
test eax, eax
js 0x1400138dc
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 0x10
cmovae rdx, qword [rbp + 0x70]
xor r9d, r9d
mov r8d, dword [rbp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ncrypt.dll_BCryptHashData]
mov esi, eax
test eax, eax
js 0x1400138dc
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ncrypt.dll_BCryptFinishHash]
mov esi, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 8
jb 0x1400138f4
mov rax, qword [rdi]
jmp 0x1400138f7
mov rax, rdi
mov word [rax], r15w
mov dword [rsp + 0x60], 1
test esi, esi
js 0x140013a3b
lea rcx, [rbp - 0x80]
call fcn.140013c40
nop
movzx esi, r15w
cmp dword [rsp + 0x40], 0
jbe 0x14001399c
mov r12d, 0x30
nop word [rax + rax]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov word [rbp + rcx - 0x28], r12w
mov edx, 2
lea rcx, [rbp + 0x90]
call fcn.14002a160
mov r8, rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
mov rdx, qword [r8 + 8]
call qword [r8]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
and dword [rbp + rcx - 0x68], 0xfffff9ff
or dword [rbp + rcx - 0x68], 0x800
movzx eax, si
movzx edx, byte [rax + rbx]
lea rcx, [rbp - 0x80]
call fcn.140014430
inc si
movzx eax, si
cmp eax, dword [rsp + 0x40]
jb 0x140013930
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140013b90
mov rsi, rax
cmp rdi, rax
je 0x1400139f8
cmp qword [rdi + 0x18], 8
jb 0x1400139cd
mov r8, qword [rdi + 0x18]
inc r8
mov rdx, qword [rdi]
mov rcx, rdi
call fcn.1400036f0
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r15
cmp qword [rdi + 0x18], 8
jb 0x1400139e5
mov rax, qword [rdi]
jmp 0x1400139e8
mov rax, rdi
mov word [rax], r15w
mov rdx, rsi
mov rcx, rdi
call fcn.140003110
nop
mov r8, qword [rbp + 0xa8]
cmp r8, 8
jb 0x140013a1c
inc r8
mov rdx, qword [rbp + 0x90]
lea rcx, [rbp + 0x90]
call fcn.1400036f0
nop
lea rcx, [rbp + 8]
call fcn.140013bc0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14002a08c
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013a4d
xor edx, edx
call qword [sym.imp.ncrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013a5d
call qword [sym.imp.ncrypt.dll_BCryptDestroyHash]
test r14, r14
je 0x140013a76
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x140013a90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0x88]
cmp rax, 0x10
jb 0x140013ae9
inc rax
mov rcx, qword [rbp + 0x70]
cmp rax, 0x1000
jb 0x140013ae4
test cl, 0x1f
je 0x140013ab7
call fcn.14002fea4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140013ac6
call fcn.14002fea4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140013ad5
call fcn.14002fea4
int3
cmp rcx, 0x27
jbe 0x140013ae1
call fcn.14002fea4
int3
mov rcx, rax
call fcn.14002bb18
mov rax, rdi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.14002baa0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret