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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x14031a320]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x38], rcx
mov rbx, rcx
mov ecx, 0x1f4
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov rsi, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x1f4
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400c69f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptAcquireContext_failed:__d_n
call fcn.1400c4c80
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
jmp 0x1400c6bc6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400c6a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptCreateHash_failed:__d_n
call fcn.1400c4c80
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400c69e2
mov rdx, qword [rsi + 0x18]
mov rcx, rsi
mov qword [rsp + 0x90], rdi
cmp rdx, 0x10
jb 0x1400c6a57
mov rcx, qword [rsi]
mov rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400c6a61
cmp rdx, 0x10
jb 0x1400c6a73
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400c6acd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptHashData_failed:__d_n
call fcn.1400c4c80
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor esi, esi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
jmp 0x1400c6bbe
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor esi, esi
lea r8, [rsp + 0x48]
mov dword [rsp + 0x20], esi
lea edx, [rsi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400c6b2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CryptGetHashParam_failed:__d_n
call fcn.1400c4c80
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
jmp 0x1400c6bbe
mov r8d, esi
cmp dword [rsp + 0x30], esi
jbe 0x1400c6b80
lea rcx, [rsp + 0x48]
mov rdx, rbp
lea r9, str.0123456789abcdef
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
shr rax, 4
lea rdx, [rdx + 2]
inc r8d
movzx eax, byte [rax + r9]
mov byte [rdx - 2], al
movzx eax, byte [rcx - 1]
and eax, 0xf
movzx eax, byte [rax + r9]
mov byte [rdx - 1], al
cmp r8d, dword [rsp + 0x30]
jb 0x1400c6b50
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], sil
inc rdi
cmp byte [rdi + rbp], sil
jne 0x1400c6ba7
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.1400bc380
mov rdi, qword [rsp + 0x90]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140252d20
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret