Function at 0x14008d370
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401ea028]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov r13, rdx
lea rdx, [0x1401ef366]
mov r14, r9
mov r12d, r8d
mov ebx, r15d
lea ecx, [r15 + 0x18]
call fcn.140131d24
mov rsi, rax
test rax, rax
je 0x14008d3c9
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
jmp 0x14008d3cc
mov rsi, r15
test rsi, rsi
jne 0x14008d3db
mov edi, 0x8007000e
jmp 0x14008d624
lea r15, [rsi + 8]
xor r9d, r9d
mov rcx, r15
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA1
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
mov edi, eax
or edi, 0x10000000
jl 0x14008d493
and dword [rsp + 0x28], ebx
lea rax, [rbp - 0x2c]
mov rcx, qword [r15]
lea r8, [rbp - 0x30]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov edi, eax
or edi, 0x10000000
jl 0x14008d493
mov ecx, dword [rbp - 0x30]
lea rdx, [0x1401ef366]
call fcn.140131d48
xor edi, edi
mov qword [rsi], rax
test rax, rax
jne 0x14008d464
mov edi, 0x8007000e
jmp 0x14008d497
mov r9d, dword [rbp - 0x30]
lea rdx, [rsi + 0x10]
mov rcx, qword [r15]
mov r8, rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
or eax, 0x10000000
cmovl edi, eax
test edi, edi
jns 0x14008d4dc
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x14008d4ac
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
mov rcx, qword [r15]
xor r15d, r15d
test rcx, rcx
je 0x14008d4c5
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
mov rcx, qword [rsi]
call fcn.1401313f8
mov edx, 0x18
mov rcx, rsi
call fcn.1401313f8
jmp 0x14008d4e5
xor r15d, r15d
mov rbx, rsi
mov edi, r15d
test edi, edi
js 0x14008d624
movups xmm0, xmmword [0x140197e58]
xor r9d, r9d
movd ecx, xmm0
movups xmmword [rbp - 0x28], xmm0
rol word [rbp - 0x24], 8
lea r8d, [r9 + 0x10]
rol word [rbp - 0x22], 8
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rbp - 0x28], edx
lea rdx, [rbp - 0x28]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
mov edi, eax
mov esi, 0x10000000
or edi, esi
cmovge edi, r15d
test edi, edi
cmovns edi, r15d
test edi, edi
js 0x14008d624
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
or eax, esi
mov edi, r15d
cmovl edi, eax
test edi, edi
cmovns edi, r15d
test edi, edi
js 0x14008d624
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp - 0x28]
xor r9d, r9d
lea r8d, [r9 + 0x14]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
mov edi, eax
or edi, esi
cmovge edi, r15d
test edi, edi
inc dword [rcx + 0xf]
invalid
invalid
test edi, edi
js 0x14008d624
test r14, r14
jne 0x14008d5da
call fcn.140111d38
mov dword [rax], 0x16
call fcn.14010f980
mov edi, 0x8000ffff
jmp 0x14008d624
movups xmm0, xmmword [rbp - 0x28]
mov ecx, 0xfff
mov edi, r15d
movdqu xmmword [r14], xmm0
mov eax, dword [r14]
bswap eax
mov dword [r14], eax
movzx eax, word [r14 + 4]
rol ax, 8
mov word [r14 + 4], ax
movzx eax, word [r14 + 6]
and byte [r14 + 8], 0x3f
rol ax, 8
and ax, cx
mov ecx, 0x5000
or ax, cx
or byte [r14 + 8], 0x80
mov word [r14 + 6], ax
test rbx, rbx
je 0x14008d66a
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14008d63e
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14008d655
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
mov rcx, qword [rbx]
call fcn.1401313f8
mov edx, 0x18
mov rcx, rbx
call fcn.1401313f8
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401313d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret