Function at 0x14002e1d0
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r14, r9
mov edi, r8d
mov esi, edx
mov r15, rcx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13d, 7
xor r12d, r12d
test eax, eax
jne 0x14002e264
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x70], r12
mov word [rbp - 0x80], r12w
lea r8d, [r13 + 7]
lea rdx, [0x140048b60]
lea rcx, [rsp + 0x78]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rsp + 0x78]
call fcn.140012d24
mov edx, edi
lea rcx, [rbp - 0x10]
call fcn.14001339c
mov rbx, rax
mov edx, esi
lea rcx, [rbp - 0x38]
call fcn.14001339c
nop
lea r8, [0x140048dcc]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400187a8
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400186f0
nop
cmp qword [rbp - 0x68], 0x10
jb 0x14002e2b3
mov rcx, qword [rbp - 0x80]
call fcn.1400110f8
mov ebx, 0xf
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x80], r12b
cmp qword [rbp - 0x18], 0x10
jb 0x14002e2d4
mov rcx, qword [rbp - 0x30]
call fcn.1400110f8
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], r12b
cmp qword [rbp + 0x10], 0x10
jb 0x14002e2f0
mov rcx, qword [rbp - 8]
call fcn.1400110f8
mov qword [rbp + 0x10], rbx
mov qword [rbp + 8], r12
mov byte [rbp - 8], r12b
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
xor r9d, r9d
mov r8d, dword [rbp - 0x48]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14002e361
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
lea r8d, [rax + 0xd]
lea rdx, [0x140048dd0]
lea rcx, [rsp + 0x38]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rsp + 0x38]
call fcn.140012d24
lea rdx, [0x140042a1b]
mov r13d, 0x100000
mov ecx, r13d
call fcn.14001233c
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14002e49f
test edi, edi
je 0x14002e466
mov esi, r13d
cmp edi, r13d
cmovb esi, edi
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002e401
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
lea r8d, [rax + 8]
lea rdx, [0x140048c10]
lea rcx, [rsp + 0x38]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rsp + 0x38]
call fcn.140012d24
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14002e45e
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
lea r8d, [rax + 0xd]
lea rdx, [0x140048dd0]
lea rcx, [rsp + 0x38]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rsp + 0x38]
call fcn.140012d24
sub edi, esi
jne 0x14002e38f
mov rcx, rbx
call fcn.1400110f8
nop
cmp qword [rbp - 0x40], 0x10
jb 0x14002e47f
mov rcx, qword [rbp - 0x58]
call fcn.1400110f8
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140012560
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x78]
call fcn.140011074
lea rdx, [0x140059488]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll__CxxThrowException
int3