Function at 0x180003360
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 [0x18011e040]
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.180004540
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 0x180003538
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 0x1800033e1
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.180005520
nop
lea rcx, [rbp + 0xa0]
call fcn.180097b00
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.180097ee0
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.180005230
lea rcx, [rbp + 0xc0]
call fcn.180002f60
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x18000347f
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x18000347f
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 0x1800034c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800034bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800034bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ac554
movdqa xmm0, xmmword [0x180109810]
movdqu xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], si
mov ecx, dword [0x180146108]
cmp dword [0x180148698], ecx
cmovg ecx, dword [0x180148698]
cmp ecx, 0xfffffffe
jl 0x180003525
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, 0x14
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x16]
call fcn.1800a9a60
nop
lea rcx, [rbp + 0x80]
call fcn.180002f60
xor bl, bl
jmp 0x18000375d
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 0x1800035a4
mov ecx, dword [0x180146108]
cmp dword [0x180148698], ecx
cmovg ecx, dword [0x180148698]
cmp ecx, 0xfffffffe
jl 0x180003719
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x1a
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x1c]
call fcn.1800a9a60
xor bl, bl
jmp 0x18000375d
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 0x18000361f
mov ecx, dword [0x180146108]
cmp dword [0x180148698], ecx
cmovg ecx, dword [0x180148698]
cmp ecx, 0xfffffffe
jl 0x18000370c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
mov r8d, 0x21
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
lea ecx, [r8 - 0x23]
call fcn.1800a9a60
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
jmp 0x18000375d
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 0x180003695
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 0x18000371d
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 0x180003640
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 0x180003743
mov ecx, dword [0x180146108]
cmp dword [0x180148698], ecx
cmovg ecx, dword [0x180148698]
cmp ecx, 0xfffffffe
jl 0x180003701
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x39
mov dword [rsp + 0x20], eax
lea r9, str.MD5Hash_failed_with_error_code:__d
lea rdx, str.C:UsersTOTOMAN2_source_reposNewColussus_Qols_ModMD5md5Check.cpp
mov ecx, 0xfffffffe
call fcn.1800a9a60
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 0x18000375d
mov ecx, dword [0x180146108]
cmp dword [0x180148698], ecx
cmovg ecx, dword [0x180148698]
cmp ecx, 0xfffffffe
jl 0x180003701
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x2f
jmp 0x1800036e5
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.1800044d0
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.1800ac180
mov rbx, qword [rsp + 0x660]
add rsp, 0x630
pop rdi
pop rsi
pop rbp
ret