Function at 0x1402174e0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x140442e70]
test rcx, rcx
jne 0x1402175c4
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [rcx + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140442e70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1402175bd
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rdx, str.CryptAcquireContext_has_failed
test rdx, 0xffffffffffff0000
jne 0x140217583
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001440
test rax, rax
je 0x140217591
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140002960
jmp 0x140217591
lea rcx, [rsp + 0x88]
call fcn.140049220
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140217763
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140217763
mov rcx, qword [0x140442e70]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140217645
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.CryptCreateHash_has_failed
test rdx, 0xffffffffffff0000
jne 0x140217630
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001440
test rax, rax
je 0x14021763b
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002960
jmp 0x14021763b
lea rcx, [rsp + 0x30]
call fcn.140049220
nop
mov rdx, qword [rsp + 0x30]
jmp 0x140217599
mov rdx, qword [rdi]
mov r8d, dword [rdx - 0x10]
add r8d, r8d
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1402176c3
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, str.CryptHashData_has_failed
test rdx, 0xffffffffffff0000
jne 0x1402176ae
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001440
test rax, rax
je 0x1402176b9
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002960
jmp 0x1402176b9
lea rcx, [rsp + 0x38]
call fcn.140049220
nop
mov rdx, qword [rsp + 0x38]
jmp 0x140217599
mov dword [rsp + 0x80], 0x10
lea r8, [rbx + 8]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140217758
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.CryptGetHashParam_has_failed
test rdx, 0xffffffffffff0000
jne 0x140217743
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001440
test rax, rax
je 0x14021774e
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
jmp 0x14021774e
lea rcx, [rsp + 0x40]
call fcn.140049220
nop
mov rdx, qword [rsp + 0x40]
jmp 0x140217599
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret