Function at 0x14006fa60
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
lea r9, [rsp + 0x50]
lea esi, [r15 + 1]
mov r8d, esi
mov edx, 0x80000000
mov rcx, rdi
call fcn.1401cc26c
mov dword [rsp + 0x58], eax
test eax, eax
jns 0x14006fb7e
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006fb75
lea rax, str.Failed_to_load_dump_file._Kernel_Integrity_watcher_exit_without_processing_the_dump_files
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], 0x5a
lea rax, [rsp + 0x58]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 4
cmp qword [rdi + 0x18], 8
jb 0x14006fb14
mov rdi, qword [rdi]
lea rax, [0x1402cb810]
mov rbx, r15
test rdi, rdi
je 0x14006fb34
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006fb2a
mov qword [rbp + 0xe0], rax
lea eax, [rbx*2 + 2]
mov dword [rbp + 0xe8], eax
mov dword [rbp + 0xec], r15d
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140346931]
call fcn.140001078
mov ebx, dword [rsp + 0x58]
jmp 0x14006fed7
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14006fc9a
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
mov r9d, 0x80000000
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1401cd3a4
mov esi, eax
test eax, eax
je 0x14006fc95
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006fc82
lea rax, str.Failed_to_load_dump_file._Kernel_Integrity_watcher_exit_without_processing_the_dump_files
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], 0x5a
mov dword [rsp + 0x68], esi
lea rax, [rsp + 0x68]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], 4
cmp qword [rdi + 0x18], 8
jb 0x14006fc21
mov rdi, qword [rdi]
lea rax, [0x1402cb810]
mov rbx, r15
test rdi, rdi
je 0x14006fc41
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006fc37
mov qword [rbp + 0x130], rax
lea eax, [rbx*2 + 2]
mov dword [rbp + 0x138], eax
mov dword [rbp + 0x13c], r15d
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140346966]
call fcn.140001078
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14006fed7
mov rbx, qword [rsp + 0x50]
mov esi, 0x28
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
xor edx, edx
lea r8d, [rsi - 8]
lea rcx, [rbp - 0x68]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov dword [rbp - 0x58], 0x38
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, esi
lea rdx, [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14006fcf6
cmp eax, 0x3e5
jne 0x14006fec9
mov dword [rsp + 0x20], r15d
or r9d, 0xffffffff
lea r8, [rsp + 0x5c]
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_io_l1_1_1.dll_GetOverlappedResultEx]
test eax, eax
je 0x14006fec3
cmp dword [rsp + 0x5c], esi
jne 0x14006fec3
call fcn.140048a14
mov r10, qword [rax + 8]
or rbx, 0xffffffffffffffff
cmp dword [r10], 4
jbe 0x14006fe0c
lea rax, str.KernelIntegrityWatcher:_get_dump_files_data
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x2c
cmp qword [rdi + 0x18], 8
jb 0x14006fd59
mov rdi, qword [rdi]
lea rax, [0x1402cb810]
mov rcx, r15
test rdi, rdi
je 0x14006fd78
mov rax, rdi
mov rcx, rbx
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x14006fd6e
mov qword [rbp + 0x40], rax
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x4c], r15d
lea rax, [rbp - 0x48]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, [rbp - 0x40]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 8
lea rax, [rbp - 0x38]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 8
lea rax, [rbp - 0x30]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 8
lea rax, [rbp - 0x28]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 8
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403468b1]
mov rcx, r10
call fcn.140001078
cmp dword [rbp - 0x48], 0x109
jne 0x14006febe
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov r9d, esi
lea r8, [rbp - 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_GetFileInformationByHandleEx]
neg eax
sbb rdx, rdx
and rdx, qword [rbp - 0x10]
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x80]
call fcn.14006f670
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov r8, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
call fcn.14004cf88
lea rcx, [r14 + 8]
mov r8, qword [r14 + 0x48]
lea rdx, [rsp + 0x70]
call fcn.140057344
nop
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14006febe
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14006febe
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.__v__]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14006febe
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.__v__]
mov ebx, r15d
jmp 0x14006fed7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14006feec
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret