Function at 0x14007e6a0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x1400c71c0]
xor rax, rsp
mov qword [rbp + 0x480], rax
xor r12d, r12d
mov dword [rsp + 0x20], 0xf0000000
mov rbx, rdx
mov qword [rsp + 0x50], r12
mov rdi, rcx
mov qword [rsp + 0x48], r12
xor r8d, r8d
lea rcx, [rsp + 0x50]
lea r9d, [r12 + 0x18]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14007e72b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14007e736
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007e9c9
mov r9d, 0x400
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x14007e89f
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007e89f
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r12d
mov r8d, 0x400
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007e800
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x14007e800
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x80]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, rdi
test eax, eax
je 0x14007e899
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r12
mov r8d, 0x400
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14007e7b5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov edx, 4
mov dword [rsp + 0x5c], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14007e89f
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x590], r15
call fcn.140087acc
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8, rax
mov dword [rsp + 0x20], r12d
mov edx, 2
mov r15, rax
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14007e8c2
mov rcx, r15
call fcn.14008702c
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007e9c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14007e9c9
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x14007e8cf
mov rax, qword [rbx]
mov qword [rbx + 0x10], r12
mov edi, r12d
mov word [rax], r12w
cmp dword [rsp + 0x40], r12d
jbe 0x14007e99f
mov qword [rsp + 0x5d0], rsi
mov qword [rsp + 0x5d8], r14
nop word [rax + rax]
mov eax, edi
lea rdx, [0x14009c7f8]
lea rcx, [rsp + 0x60]
movzx r8d, byte [rax + r15]
call fcn.14007c6f0
lea rax, [rsp + 0x60]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x14007e924
mov r8, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14007e96e
lea r14, [rcx + rdx]
mov rsi, rbx
mov qword [rbx + 0x10], r14
cmp r8, 7
jbe 0x14007e955
mov rsi, qword [rbx]
lea r8, [rdx + rdx]
lea rdx, [rsp + 0x60]
lea rcx, [rsi + rcx*2]
call sub.VCRUNTIME140.dll_memmove
mov word [rsi + r14*2], r12w
jmp 0x14007e983
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rbx
call fcn.1400186f0
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14007e900
mov r14, qword [rsp + 0x5d8]
mov rsi, qword [rsp + 0x5d0]
mov rcx, r15
call fcn.14008702c
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
mov r15, qword [rsp + 0x590]
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1400870c0
add rsp, 0x598
pop r12
pop rdi
pop rbx
pop rbp
ret