Function at 0x140004c70
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 [0x14005d020]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140004cb6
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 0x140004ccd
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 0x140004d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
jb 0x140004d0d
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, [rsi + 0x18]
call fcn.1400083a0
jmp 0x140004e99
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 0x140004d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rcx, [rsi + 0x18]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
mov edx, 0xc8
call fcn.1400083a0
jmp 0x140004e90
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 0x140004dda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rcx, [rsi + 0x18]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptAcquireContext_failed:_ErrorCode:___d__
mov edx, 0xc8
call fcn.1400083a0
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 0x140004e99
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x50]
call fcn.140022520
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 0x140004e5a
mov r8d, dword [rsp + 0x68]
test r8d, r8d
je 0x140004ed4
xor r9d, r9d
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140004ec5
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 0x140004e11
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_ReadFile_failed:_ErrorCode:___d__
mov r9d, eax
mov edx, 0xc8
lea rcx, [rsi + 0x18]
call fcn.1400083a0
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.14001f810
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 0x140004e67
mov dword [rsp + 0x6c], 0x10
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov rdi, r12
mov qword [rbp - 0x70], r12
movups xmmword [rbp - 0x68], xmm0
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x6c]
lea r8, [rbp - 0x68]
mov edx, 2
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400050c3
mov ebx, r12d
mov rdx, qword [rbp - 0x78]
cmp dword [rsp + 0x6c], r12d
jbe 0x140004fa2
lea r13, str.0123456789abcdef
mov eax, ebx
lea rsi, [rbp - 0x68]
add rsi, rax
movzx r8d, byte [rsi]
shr r8, 4
add r8, r13
cmp rdx, rdi
je 0x140004f59
movzx eax, byte [r8]
mov byte [rdx], al
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004f6a
lea rcx, [rbp - 0x80]
call fcn.140006280
mov rdi, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
movzx r8d, byte [rsi]
and r8d, 0xf
add r8, r13
cmp rdx, rdi
je 0x140004f89
movzx eax, byte [r8]
mov byte [rdx], al
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004f9a
lea rcx, [rbp - 0x80]
call fcn.140006280
mov rdi, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
inc ebx
cmp ebx, dword [rsp + 0x6c]
jb 0x140004f31
mov byte [rsp + 0x40], 0
cmp rdx, rdi
je 0x140004fb8
mov byte [rdx], 0
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140004fca
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140006280
mov rdi, qword [rbp - 0x70]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov rbx, qword [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140004ff0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140005a30
lea rax, [rsp + 0x48]
cmp r14, rax
je 0x140005060
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x14000504b
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140005046
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005134
mov rcx, r8
call fcn.14001f834
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [r14 + 0x10], xmm1
jmp 0x14000509d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000509d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005098
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005134
call fcn.14001f834
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 sil, 1
jmp 0x1400050f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CDriverInstaller::CalcMD5OfFile__:_CryptGetHashParam_failed:_ErrorCode:___d__
mov edx, 0xc8
lea rcx, [rsi + 0x18]
call fcn.1400083a0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor sil, sil
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x140005125
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14000511a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000512e
mov rdx, rdi
mov rcx, rbx
call fcn.14001f834
movzx eax, sil
jmp 0x140004e9b
call fcn.1400293c8
nop
call fcn.1400293c8
int3