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

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x10c0
call fcn.1400a7980
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1108], rbx
mov rax, qword [0x14014c228]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x58], rdx
mov rax, qword [rdx]
mov ecx, dword [rax - 0x10]
inc ecx
movsxd rcx, ecx
xor r12d, r12d
mov qword [rsp + 0x48], r12
call fcn.1400a7a1c
mov rbx, rax
mov qword [rsp + 0x50], rax
mov r9, qword [rsi]
mov eax, dword [r9 - 0x10]
inc eax
movsxd r8, eax
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400c51a0
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0xb0]
call fcn.1400aeef0
nop
mov rcx, r14
call fcn.14003f4c0
test eax, eax
jne 0x140040540
test rbx, rbx
je 0x14004051c
mov rcx, rbx
call fcn.1400a7308
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140040536
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 3
jmp 0x14004089b
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
lea r8, [0x1400f94c0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400c556c
cmp qword [rsp + 0x30], 0
jne 0x1400405b5
mov r14, qword [rsp + 0x38]
mov rcx, qword [r14]
test rcx, rcx
je 0x140040580
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [r14], r12
test rbx, rbx
je 0x140040591
mov rcx, rbx
call fcn.1400a7308
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400405ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14004089b
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140040638
mov r14, qword [rsp + 0x38]
mov rcx, qword [r14]
test rcx, rcx
je 0x140040603
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [r14], r12
test rbx, rbx
je 0x140040614
mov rcx, rbx
call fcn.1400a7308
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004062e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 2
jmp 0x14004089b
mov rcx, qword [rsp + 0x30]
call fcn.1400c56b4
test eax, eax
jne 0x140040697
nop word [rax + rax]
mov r9, qword [rsp + 0x30]
mov edx, 1
mov r8d, 0x1000
lea rcx, [rsp + 0xb0]
call fcn.1400c5e24
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
call fcn.1400c56b4
test eax, eax
je 0x140040650
mov dword [rsp + 0x40], 0x10
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400406d4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x80], r12
mov rcx, qword [rsp + 0x30]
call fcn.1400c5648
movdqa xmm0, xmmword [0x1400f5620]
movdqu xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x88], r12w
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14003eae0
test al, al
jne 0x1400407b0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x140040766
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040760
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400408c3
call fcn.1400a7308
nop
mov r14, qword [rsp + 0x38]
mov rcx, qword [r14]
test rcx, rcx
je 0x14004077b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [r14], r12
test rbx, rbx
je 0x14004078c
mov rcx, rbx
call fcn.1400a7308
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400407a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 5
jmp 0x14004089b
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdx, qword [rsp + 0x88]
mov rcx, r15
call fcn.14000ac00
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x14004081c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040816
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400408c9
call fcn.1400a7308
nop
mov r14, qword [rsp + 0x38]
mov rcx, qword [r14]
test rcx, rcx
je 0x140040831
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [r14], r12
test rbx, rbx
je 0x140040842
mov rcx, rbx
call fcn.1400a7308
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004085c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14004089b
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.1400a79f0
mov rbx, qword [rsp + 0x1108]
add rsp, 0x10c0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.1400b7964
nop
call fcn.1400b7964
int3