Function at 0x14002d310
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
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14005a018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
movups xmm0, xmmword [0x140056158]
movzx eax, byte [0x140056168]
xor edi, edi
mov rsi, rdx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 1]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x68], al
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002d482
lea r9d, [rdi + 0x18]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14002d479
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800e
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rbx
test eax, eax
jne 0x14002d3fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x14002d482
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d461
nop dword [rax + rax]
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x14002d4a9
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x50]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14002d461
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002d420
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14002d5c0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4c0
pop rdi
pop rsi
pop rbp
ret
test eax, eax
je 0x14002d461
mov edx, 1
mov dword [rsp + MsiGetPropertyW], 0x40
mov ecx, 0x81
call fcn.14002f9e8
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsi], rax
mov edx, 2
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14002d547
mov r10d, edi
cmp dword [rsp + 0x40], edi
jbe 0x14002d54c
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsi]
lea r9d, [r10 + r10]
mov eax, r10d
lea r8, [rsp + 0x70]
add r8, rax
lea edx, [r9 + 1]
inc r10d
movzx eax, byte [r8]
shr rax, 4
movzx eax, byte [rsp + rax + 0x58]
mov byte [r9 + rcx], al
movzx r8d, byte [r8]
mov rcx, qword [rsi]
and r8d, 0xf
movzx eax, byte [rsp + r8 + 0x58]
mov byte [rdx + rcx], al
cmp r10d, dword [rsp + 0x40]
jb 0x14002d500
jmp 0x14002d54c
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x14002d487