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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x320
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x180175020]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rsi, r8
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0x78
lea rdi, str._Utils::MD5::Calculate_
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x88], rax
mov rcx, qword [0x180179420]
test rcx, rcx
je 0x18004f51f
mov rax, qword [rcx]
mov edx, 0x3e8
call qword [rax + 0x10]
test eax, eax
je 0x18004f51f
lea edx, [rbx + 2]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int____ptr64]
nop
call qword [sym.imp.MSVCP90.dll_public:_static_class_std::locale_const____ptr64___cdecl_std::locale::classic_void_]
mov r8, rax
mov rax, qword [rsp + 0x1d0]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x1d0]
lea rdx, [rsp + 0x68]
call qword [sym.imp.MSVCP90.dll_public:_class_std::locale___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::imbue_class_std::locale_const____ptr64____ptr64]
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::locale::destructor_void____ptr64]
mov rdx, rdi
lea rcx, [rsp + 0x1d0]
call fcn.18000fa60
mov rcx, rax
lea rdx, str.Started
call fcn.18000fa60
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void____ptr64]
nop
lea r8, [rsp + 0x2c8]
cmp qword [rsp + 0x2e0], 8
cmovae r8, qword [rsp + 0x2c8]
mov rcx, qword [0x180179420]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x2d8]
mov edx, 0x3e8
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void____ptr64]
nop
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18004f583
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.CryptAcquireContext
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xa0], xmm0
lea rdx, [0x18016f0e0]
lea rcx, [rsp + 0xa0]
call sub.MSVCR90.dll__CxxThrowException
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x18004f5df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x180131868]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x18016f0e0]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x18004f62f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x180131888]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xc0], xmm0
lea rdx, [0x18016f0e0]
lea rcx, [rsp + 0xc0]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x60], 0x10
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x60]
mov r8, rsi
mov edx, 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18004f68f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, [0x1801318a8]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0xd0], xmm0
lea rdx, [0x18016f0e0]
lea rcx, [rsp + 0xd0]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18004f6ab
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18004f6bd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.18000d370
nop
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1800e9aa0
add rsp, 0x320
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret