Function at 0x140003920
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.140008da0
sub rsp, rax
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x48], 0x20
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], r15b
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r15 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140003a09
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003c32
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003a8d
call fcn.140007e90
jmp 0x140003c32
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140003a94
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140003c32
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rbx + 0x18], 8
jb 0x140003a9e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003b38
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
mov r8d, 0x1000
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003b2f
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x140003b2f
xor r9d, r9d
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x44]
mov r8d, 0x1000
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140003af2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x80]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140003c07
mov esi, r15d
cmp dword [rsp + 0x48], r15d
jbe 0x140003c07
nop dword [rax]
mov eax, esi
movzx r8d, byte [rbp + rax - 0x80]
lea rdx, str._02x
lea rcx, [rsp + 0x44]
call fcn.1400064c0
lea rax, [rsp + 0x44]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003b95
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x140003be4
lea rax, [rcx + rbx]
mov qword [rsp + 0x70], rax
lea rdi, [rsp + 0x60]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x60]
add rdi, rcx
mov r8, rbx
lea rdx, [rsp + 0x44]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140003bfb
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140006de0
inc esi
cmp esi, dword [rsp + 0x48]
jb 0x140003b70
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [r14 + 0x10], xmm1
mov rax, r14
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140007e70
mov rbx, qword [rsp + 0x10f0]
add rsp, 0x10b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret