Function at 0x1400049a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x14005f020]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1400049e6
mov rax, qword [r8]
xor r12d, r12d
mov qword [r8 + 0x10], r12
mov byte [rax], r12b
mov rcx, rbx
cmp qword [rdx + 0x18], 8
jb 0x1400049fd
mov rcx, qword [rdx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140004a5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
jb 0x140004a3d
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_Error_opening_file___File:___S___ErrorCode:___d__
mov edx, 0xc8
lea rcx, [rdi + 0x18]
call fcn.140007ee0
jmp 0x140004bc9
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140004aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rcx, [rdi + 0x18]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
mov edx, 0xc8
call fcn.140007ee0
jmp 0x140004bc0
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140004b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rcx, [rdi + 0x18]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
mov edx, 0xc8
call fcn.140007ee0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140004bc9
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.140022450
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004b8a
mov r8d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
test r8d, r8d
je 0x140004c04
xor r9d, r9d
lea rdx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140004bf5
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004b41
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_ReadFile_failed:_ErrorCode:___d__
mov r9d, eax
mov edx, 0xc8
lea rcx, [rdi + 0x18]
call fcn.140007ee0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14001f770
mov rbx, qword [rsp + 0x518]
add rsp, 0x4c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptHashData_failed:_ErrorCode:___d__
jmp 0x140004b97
mov dword [rsp + 0x6c], 0x10
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x6c]
lea r8, [rbp - 0x68]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140004e2a
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov rbx, r12
mov qword [rbp - 0x70], rbx
mov edi, r12d
mov rdx, qword [rbp - 0x78]
cmp dword [rsp + 0x6c], r12d
jbe 0x140004cd1
lea r13, str.0123456789abcdef
nop dword [rax]
mov eax, edi
lea rsi, [rbp - 0x68]
add rsi, rax
movzx r8d, byte [rsi]
shr r8, 4
add r8, r13
cmp rdx, rbx
je 0x140004c88
movzx eax, byte [r8]
mov byte [rdx], al
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004c99
lea rcx, [rbp - 0x80]
call fcn.140005c20
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
movzx r8d, byte [rsi]
and r8d, 0xf
add r8, r13
cmp rdx, rbx
je 0x140004cb8
movzx eax, byte [r8]
mov byte [rdx], al
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004cc9
lea rcx, [rbp - 0x80]
call fcn.140005c20
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
inc edi
cmp edi, dword [rsp + 0x6c]
jb 0x140004c60
mov byte [rsp + 0x40], 0
cmp rdx, rbx
je 0x140004ce7
mov byte [rdx], 0
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004cf9
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140005c20
mov rbx, qword [rbp - 0x70]
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov rdi, qword [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne 0x140004d20
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140005770
lea rax, [rsp + 0x48]
cmp r14, rax
je 0x140004d90
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140004d7b
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140004d76
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004e53
mov rcx, r8
call fcn.14001f790
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r14 + 0x10], xmm1
jmp 0x140004dce
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140004dce
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004e53
call fcn.14001f790
nop
test rdi, rdi
je 0x140004e02
sub rbx, rdi
mov rax, rdi
cmp rbx, 0x1000
jb 0x140004df7
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004e4d
mov rdx, rbx
mov rcx, rdi
call fcn.14001f790
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140004bcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rcx, [rdi + 0x18]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptGetHashParam_failed:_ErrorCode:___d__
mov edx, 0xc8
call fcn.140007ee0
jmp 0x140004bc0
call fcn.14002b368
nop
call fcn.14002b368
int3