Function at 0x140011320
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x14007b040]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 0x20
movups xmm0, xmmword [str.0123456789abcdef]
movups xmmword [rsp + 0x70], xmm0
movzx eax, byte [0x140059d50]
mov byte [rbp - 0x80], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], 0xf
mov byte [rbp - 0x78], r14b
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400113c5
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x1400114c4
lea rdx, str.Error_opening_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400064a0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x14001141f
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140008ee0
lea rdx, [0x140008380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x140059d80]
mov rcx, rdi
call fcn.1400066a0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140011497
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011492
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400119ac
call fcn.140050f60
mov rax, rdi
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140050f40
mov rbx, qword [rsp + 0x530]
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword ss:[rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14001151b
lea rdx, str.CryptAcquireContext_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400064a0
lea rdx, [0x140008380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001143a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140011585
lea rdx, str.CryptCreateHash_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400064a0
lea rdx, [0x140008380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop dword [rax]
jmp 0x14001143a
mov qword ss:[rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400115f5
nop word [rax + rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x1400115f5
xor r9d, r9d
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14001167b
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400115b0
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x58]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400119ba
mov r15d, r14d
cmp dword [rsp + 0x44], r14d
jbe 0x1400118d8
movabs rdx, 0x7fffffffffffffff
mov eax, r15d
movzx ecx, byte [rbp + rax - 0x58]
shr rcx, 4
movzx r12d, byte [rsp + rcx + 0x70]
mov rsi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x60]
cmp rsi, r14
jae 0x1400116c5
lea rax, [rsi + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp r14, 0xf
cmova rax, qword [rbp - 0x78]
mov byte [rax + rsi], r12b
mov byte [rax + rsi + 1], 0
mov rdi, qword [rbp - 0x78]
jmp 0x14001179c
lea rdx, str.CryptHashData_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400064a0
lea rdx, [0x140008380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
jmp 0x14001143a
mov rax, rdx
sub rax, rsi
cmp rax, 1
jb 0x1400119e5
lea r13, [rsi + 1]
mov rbx, r13
or rbx, 0xf
cmp rbx, rdx
jbe 0x1400116ea
mov rbx, rdx
jmp 0x14001170d
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x140011702
mov rbx, rdx
jmp 0x14001170d
lea rax, [r14 + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
call fcn.1400069a0
mov rdi, rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], rbx
mov r8, rsi
mov rcx, rax
cmp r14, 0xf
jbe 0x14001177a
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], r12b
mov byte [rsi + rdi + 1], 0
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x14001176d
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400119b3
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.140050f60
jmp 0x14001178e
lea rdx, ds:[rbp - 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], r12b
mov byte [rsi + rdi + 1], 0
movabs rdx, 0x7fffffffffffffff
mov qword [rbp - 0x78], rdi
mov eax, r15d
movzx ecx, byte [rbp + rax - 0x58]
and ecx, 0xf
movzx r12d, byte [rsp + rcx + 0x70]
mov rsi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x60]
cmp rsi, r14
jae 0x1400117dc
lea rax, [rsi + 1]
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x78]
cmp r14, 0xf
cmova rax, rdi
mov byte [rax + rsi], r12b
mov byte [rax + rsi + 1], 0
jmp 0x1400118b2
mov rax, rdx
sub rax, rsi
cmp rax, 1
jb 0x1400119e5
lea r13, [rsi + 1]
mov rbx, r13
or rbx, 0xf
cmp rbx, rdx
jbe 0x140011802
mov rbx, rdx
jmp 0x140011823
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x140011818
mov rbx, rdx
jmp 0x140011823
lea rax, [r14 + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
call fcn.1400069a0
mov rdi, rax
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], rbx
mov r8, rsi
mov rcx, rax
cmp r14, 0xf
jbe 0x14001189a
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte ds:[rsi + rdi], r12b
mov byte [rsi + rdi + 1], 0
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x14001188d
add rdx, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x1400119b3
mov rbx, rcx
lfence
mov rcx, rbx
call fcn.140050f60
jmp 0x1400118ae
lea rdx, ds:[rbp - 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], r12b
mov byte [rsi + rdi + 1], 0
mov qword [rbp - 0x78], rdi
inc r15d
cmp r15d, dword [rsp + 0x44]
jb 0x14001162b
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
xor r14d, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r8, qword [rbp - 0x78]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14000a360
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140011945
mov rax, qword [rdi]
lea r8, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova r8, qword [rbp - 0x78]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140011497
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011492
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140011492
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.CryptGetHashParam_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400064a0
lea rdx, [0x140008380]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop dword [rax]
jmp 0x1400118d8
call fcn.140003f80
int3