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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x180120040]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1800046f0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1800036e8
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x180003591
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.1800056d0
nop
lea rcx, [rbp + 0xa0]
call fcn.180098b20
nop
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova r8, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
lea r9, [r8 + rax*2]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.180098f00
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0xe0]
call fcn.1800053e0
lea rcx, [rbp + 0xc0]
call fcn.180002fc0
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x18000362f
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18000362f
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x180003672
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000366d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000366d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ad954
movdqa xmm0, xmmword [0x18010b3c0]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], si
mov ecx, dword [0x180148094]
cmp dword [0x18014a588], ecx
cmovg ecx, dword [0x18014a588]
cmp ecx, 0xfffffffe
jl 0x1800036d5
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0xf
cmova rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, str.MD5Hash:_Failed_to_open_file:__s
mov r8d, 0x10
lea rdx, str.C:UsersTOTOMAN2_source_reposWOLF2_QOLS_PUBLICMD5md5Check.cpp
lea ecx, [r8 - 0x12]
call fcn.1800aae50
nop
lea rcx, [rbp + 0x80]
call fcn.180002fc0
xor bl, bl
jmp 0x18000390d
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180003754
mov ecx, dword [0x180148094]
cmp dword [0x18014a588], ecx
cmovg ecx, dword [0x18014a588]
cmp ecx, 0xfffffffe
jl 0x1800038c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x16
lea rdx, str.C:UsersTOTOMAN2_source_reposWOLF2_QOLS_PUBLICMD5md5Check.cpp
lea ecx, [r8 - 0x18]
call fcn.1800aae50
xor bl, bl
jmp 0x18000390d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1800037cf
mov ecx, dword [0x180148094]
cmp dword [0x18014a588], ecx
cmovg ecx, dword [0x18014a588]
cmp ecx, 0xfffffffe
jl 0x1800038bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x1c
lea rdx, str.C:UsersTOTOMAN2_source_reposWOLF2_QOLS_PUBLICMD5md5Check.cpp
lea ecx, [r8 - 0x1e]
call fcn.1800aae50
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
jmp 0x18000390d
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x180003845
nop word [rax + rax]
mov r8d, 0x400
lea rdx, [rbp + 0x120]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
lea rdx, [rbp + 0x120]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800038cd
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x1800037f0
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x30]
mov r8, rdi
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800038f3
mov ecx, dword [0x180148094]
cmp dword [0x18014a588], ecx
cmovg ecx, dword [0x18014a588]
cmp ecx, 0xfffffffe
jl 0x1800038b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x32
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
lea rdx, str.C:UsersTOTOMAN2_source_reposWOLF2_QOLS_PUBLICMD5md5Check.cpp
mov ecx, 0xfffffffe
call fcn.1800aae50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
jmp 0x18000390d
mov ecx, dword [0x180148094]
cmp dword [0x18014a588], ecx
cmovg ecx, dword [0x18014a588]
cmp ecx, 0xfffffffe
jl 0x1800038b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x28
jmp 0x180003895
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov bl, 1
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x60]
call fcn.180004680
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
movzx eax, bl
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.1800ad580
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret