Function at 0x1402d318c
Capabilities:
Get file size
Hash data via wincrypt
Initialize hashing via wincrypt
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, r9
mov dword [rbp - 0x31], r8d
mov r12, rdx
mov r15, rcx
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x29], rax
xor ecx, ecx
mov esi, ecx
mov ebx, ecx
mov r14d, ecx
mov dword [rbp - 0x11], ecx
mov edi, ecx
mov qword [rbp - 0x21], rcx
mov dword [rbp - 1], 4
mov qword [rbp - 9], rcx
test rdx, rdx
jne 0x1402d31f5
mov r14d, 0x80070057
jmp 0x1402d33d3
test r13, r13
jne 0x1402d3205
mov r14d, 0x80004003
jmp 0x1402d33d3
test rax, rax
je 0x1402d31fa
cmp qword [r15], rcx
jne 0x1402d3222
mov rcx, r15
call fcn.1402d36f4
mov r14d, eax
test eax, eax
js 0x1402d33af
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x31]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1402d325d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
jmp 0x1402d33af
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1402d3241
mov rsi, rax
mov qword [rbp - 0x31], rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
cmp eax, 0xffffffff
je 0x1402d3241
test eax, eax
jne 0x1402d32ba
mov r14d, 0x80040c14
jmp 0x1402d33af
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x1402d3241
mov rbx, rax
mov qword [rbp - 0x19], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
test rax, rax
je 0x1402d3241
xor r9d, r9d
mov r8d, r12d
mov rdx, rax
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1402d333c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r14d, ax
or r14d, 0x80070000
test eax, eax
cmovle r14d, eax
jmp 0x1402d33a6
and dword [rsp + 0x20], 0
lea r9, [rbp - 1]
lea r8, [rbp - 0x11]
mov edx, 4
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1402d3323
mov ecx, dword [rbp - 0x11]
call fcn.1401695ac
mov rdi, rax
test rax, rax
jne 0x1402d3374
mov r14d, 0x8007000e
jmp 0x1402d33a6
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x11]
mov r8, rdi
mov edx, 2
mov rcx, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1402d3323
mov eax, dword [rbp - 0x11]
mov dword [r13], eax
mov rax, rdi
xor edi, edi
mov rcx, qword [rbp - 0x29]
mov qword [rcx], rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1402d33c3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rbp - 9], 0
test rbx, rbx
je 0x1402d33d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rcx, rdi
call fcn.1400385dc
nop
test rbx, rbx
je 0x1402d33eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x1402d33f9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140038910
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret