Function at 0x14006dc40
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 [0x14049e510]
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]
mov rcx, rdx
call fcn.1401f7190
mov dword [rsp + 0x58], eax
test eax, eax
jns 0x14006dd52
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006dd49
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 0x14006dce8
mov rdi, qword [rdi]
lea rax, [0x140344690]
mov rbx, r15
test rdi, rdi
je 0x14006dd08
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006dcfe
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, [0x1403d69c6]
call fcn.140001158
mov ebx, dword [rsp + 0x58]
jmp 0x14006e13c
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14006de72
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x80000000
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1401f83d8
mov esi, eax
test eax, eax
je 0x14006de6d
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006de5a
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 + 0x64], esi
lea rax, [rsp + 0x64]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], 4
cmp qword [rdi + 0x18], 8
jb 0x14006ddf9
mov rdi, qword [rdi]
lea rax, [0x140344690]
mov rbx, r15
test rdi, rdi
je 0x14006de19
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006de0f
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, [0x1403d6990]
call fcn.140001158
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14006e13c
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14006de88
call fcn.1402b9bb8
mov rbx, qword [rsp + 0x50]
mov esi, 0x28
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea r8d, [rsi - 8]
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x50], 0x38
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, esi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14006dee4
cmp eax, 0x3e5
jne 0x14006e12e
mov dword [rsp + 0x20], r15d
or r9d, 0xffffffff
lea r8, [rsp + 0x5c]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResultEx]
test eax, eax
je 0x14006e128
cmp dword [rsp + 0x5c], esi
jne 0x14006e128
call fcn.14004d8a4
mov r10, qword [rax + 8]
or rbx, 0xffffffffffffffff
cmp dword [r10], 4
jbe 0x14006dffa
lea rax, str.KernelIntegrityWatcher:_get_dump_files_data
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], MsiGetActiveDatabase
cmp qword [rdi + 0x18], 8
jb 0x14006df47
mov rdi, qword [rdi]
lea rax, [0x140344690]
mov rcx, r15
test rdi, rdi
je 0x14006df66
mov rax, rdi
mov rcx, rbx
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x14006df5c
mov qword [rbp + 0x40], rax
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x4c], r15d
lea rax, [rbp - 0x40]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, [rbp - 0x38]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 8
lea rax, [rbp - 0x30]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 8
lea rax, [rbp - 0x28]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 8
lea rax, [rbp - 0x20]
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, [0x1403d6932]
mov rcx, r10
call fcn.140001158
cmp dword [rbp - 0x40], 0x109
jne 0x14006e123
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, esi
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
neg eax
sbb rdx, rdx
and rdx, qword [rbp - 8]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14006d808
nop
cmp qword [rbp - 0x80], r15
jne 0x14006e04b
call fcn.1402b9bb8
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14006e061
lock inc dword [rax + 8]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov rax, qword [r14 + 0x48]
mov qword [rsp + 0x68], rax
mov rcx, qword [r14 + 0x40]
test rcx, rcx
jne 0x14006e08d
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x10]
call qword [case.0x140245398.0]
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14006e0e5
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14006e0e5
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140245398.0]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14006e0e5
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140245398.0]
nop
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14006e123
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14006e123
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140245398.0]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14006e123
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140245398.0]
mov ebx, r15d
jmp 0x14006e13c
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 0x14006e151
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.1402dfdb0
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret