Function at 0x140005770
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 - 0x10130]
mov eax, 0x10230
call fcn.1400073a0
sub rsp, rax
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x10120], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x44], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov dword [rsp + 0x44], 1
mov rcx, rdx
call fcn.1400022d0
test al, al
je 0x140005be1
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140005be1
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r14 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140005bd7
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rsi
test eax, eax
je 0x1400058c4
mov dword [rsp + 0x58], r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
lea r8d, [r14 + 0x40]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
je 0x1400058c4
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400058dc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140005be1
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, 0x108
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
je 0x1400058c4
movsxd rax, dword [rbp - 0x44]
lea r12, [rax + 0x58]
lea r13, [rax + 0xa8]
mov r15d, dword [rbp + 0x68]
mov r14d, dword [rbp + 0x6c]
mov dword [rsp + 0x48], r14d
xor edi, edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rsi
cmp eax, 0xffffffff
je 0x1400058c4
mov byte [rsp + 0x40], dil
mov byte [rsp + 0x41], dil
test r14d, r14d
setle byte [rsp + 0x42]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, 0x10000
lea rdx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov r14d, eax
je 0x140005bbf
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x140005a90
add edi, r8d
cmp byte [rsp + 0x40], 0
jne 0x1400059d9
movsxd rcx, edi
cmp rcx, r12
jle 0x1400059d9
mov byte [rsp + 0x40], 1
mov eax, r12d
sub eax, edi
add r8d, eax
mov dword [rsp + 0x58], r8d
lea edi, [r12 + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140005a87
mov r8d, dword [rsp + 0x58]
cmp byte [rsp + 0x41], 0
jne 0x140005a19
movsxd rax, edi
cmp rax, r13
jle 0x140005a19
mov byte [rsp + 0x41], 1
mov eax, r13d
sub eax, edi
add r8d, eax
mov dword [rsp + 0x58], r8d
lea edi, [r13 + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140005a87
mov r8d, dword [rsp + 0x58]
cmp byte [rsp + 0x42], 0
jne 0x140005a59
cmp edi, r15d
jle 0x140005a59
mov byte [rsp + 0x42], 1
mov eax, r15d
sub eax, edi
add r8d, eax
mov dword [rsp + 0x58], r8d
mov edi, dword [rsp + 0x48]
add edi, r15d
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140005a87
mov r8d, dword [rsp + 0x58]
xor r9d, r9d
lea rdx, [rbp + 0x120]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140005bbf
mov qword [rsp + 0x20], 0
mov rcx, rsi
jmp 0x140005960
test r14d, r14d
je 0x140005bbf
mov dword [rsp + 0x68], 0x20
movups xmm0, xmmword [str.0123456789ABCDEF]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [0x14000a190]
movups xmmword [rbp + 0xe0], xmm1
movzx eax, word [0x14000a1a0]
mov word [rbp + 0xf0], ax
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x68]
lea r8, [rbp + 0xf8]
lea edx, [r15 + 2]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140005ba5
mov edi, r15d
cmp dword [rsp + 0x68], r15d
jbe 0x140005ba5
nop dword [rax + rax]
mov eax, edi
lea r14, [rbp + 0xf8]
add r14, rax
movzx eax, byte [r14]
shr rax, 4
movzx r9d, word [rbp + rax*2 + 0xd0]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140005b4b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x140005b3e
mov rax, qword [rbx]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r15w
jmp 0x140005b53
mov rcx, rbx
call fcn.140005fe0
movzx eax, byte [r14]
and eax, 0xf
movzx r9d, word [rbp + rax*2 + 0xd0]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140005b91
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 8
jb 0x140005b84
mov rax, qword [rbx]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r15w
jmp 0x140005b99
mov rcx, rbx
call fcn.140005fe0
inc edi
cmp edi, dword [rsp + 0x68]
jb 0x140005b00
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140005bd7
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x10120]
xor rcx, rsp
call fcn.140006280
mov rbx, qword [rsp + 0x10280]
add rsp, 0x10230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret