Function at 0x1400044d0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rbp + 0x38], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000456b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_handle_for_ntdll.dll._Error:
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ada0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000af80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140004c65
mov r9d, 0x18
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x140004594
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_module_information_for_ntdll.dll._Error:
jmp 0x14000453d
mov rbx, qword [rbp - 0x10]
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
lea rcx, str.c:windows_system32_ntdll.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1400045e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_open_ntdll.dll_file._Error:
jmp 0x14000453d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
mov qword [rbp - 0x78], rax
test rax, rax
jne 0x140004655
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_create_file_mapping_for_ntdll.dll._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ada0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000af80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004c65
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400046c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_map_view_of_ntdll.dll._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000ada0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000af80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004c65
movsxd r15, dword [rbx + 0x3c]
add r15, rbx
mov qword [rsp + 0x60], r15
xorps xmm0, xmm0
movzx ebx, word [r15 + 6]
movdqu xmmword [rbp + 0x20], xmm0
xor r9d, r9d
mov qword [rbp + 0x30], r9
test rbx, rbx
je 0x140004764
lea rbx, [rbx*4]
test rbx, rbx
jne 0x1400046fc
mov r12d, r9d
jmp 0x14000473d
cmp rbx, 0x1000
jb 0x140004732
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140004c9d
call fcn.14000dbbc
test rax, rax
je 0x14000472b
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x14000473d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14000dbbc
mov r12, rax
mov qword [rbp + 0x20], r12
lea rdi, [r12 + rbx]
mov qword [rsp + 0x40], rdi
mov qword [rbp + 0x30], rdi
mov r8, rbx
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x28], rdi
xor r9d, r9d
jmp 0x140004771
mov rdi, qword [rbp + 0x28]
mov qword [rsp + 0x40], rdi
mov r12, qword [rbp + 0x20]
mov ecx, r9d
cmp r9w, word [r15 + 6]
jae 0x140004791
mov rdx, r12
nop
mov dword [rdx], ecx
inc ecx
lea rdx, [rdx + 4]
movzx eax, word [r15 + 6]
cmp ecx, eax
jl 0x140004780
mov rsi, 0xffffffffffffffff
mov r14d, 0x40
nop
lea r14, [r14 - 1]
shr rsi, 1
cmp rsi, 0x7fff
ja 0x1400047a0
cmp r12, rdi
je 0x140004881
lea rax, [r12 + 4]
mov qword [rsp + 0x50], rax
cmp rax, rdi
je 0x140004881
mov r13d, 2
nop dword [rax]
nop word [rax + rax]
lea r15, [r13 - 1]
mov rdi, r9
mov rbx, r9
test r15, r15
je 0x140004825
nop
lea rcx, [r14 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov eax, eax
cmp rax, rsi
ja 0x140004800
or rdi, rax
lea rcx, [r14 - 1]
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x1400047f0
xor r9d, r9d
xor edx, edx
mov rax, rbx
div r13
mov r8, rdx
mov rcx, rax
xor edx, edx
mov rax, rdi
div r13
cmp rax, rcx
jb 0x140004845
cmp r8, r15
jne 0x1400047e4
mov r8, qword [rsp + 0x50]
cmp rdx, r15
je 0x14000485d
mov ecx, dword [r8]
mov eax, dword [r12 + rdx*4]
mov dword [r8], eax
mov dword [r12 + rdx*4], ecx
inc r13
add r8, 4
mov qword [rsp + 0x50], r8
mov rdi, qword [rsp + 0x40]
cmp r8, rdi
jne 0x1400047e0
mov r15, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
mov qword [rbp + 0x18], r9
cmp r12, rdi
je 0x140004ac6
lea r9, [0x140004380]
lea rdi, vtable.std::_Task_async_state_void_.0
mov rsi, qword [rbp - 0x80]
mov r14, qword [rbp + 0x38]
mov r13, qword [rsp + 0x78]
movsxd rax, dword [r12]
lea rdx, [rax*4 + 3]
movzx ecx, word [r15 + 0x14]
add rcx, r15
add rdx, rax
lea r8, [rcx + rdx*8]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r9
mov ecx, 0x120
call fcn.14000dbbc
mov rbx, rax
mov qword [rbp + 0x38], rax
xor edx, edx
mov r8d, 0x120
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14000cdd0
nop
mov qword [rbx], rdi
lea rdi, [rbx + 0x110]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x80], rax
call fcn.140001830
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140004946
lock inc dword [rcx + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x60], rcx
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], 0
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_private:_void___cdecl_Concurrency::task_continuation_context::constructor_void____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x40], al
mov word [rbp - 0x18], ax
lea r8, [rbp - 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000ced0
cmp rdi, rax
je 0x1400049af
mov rdx, rax
mov rcx, rdi
call fcn.14000aaf0
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400049e8
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400049e8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x1400049e8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov byte [rbx + 0xc2], 1
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], 1
lock inc dword [rbx + 8]
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140004a30
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140004a22
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x140004a30
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, qword [rbp + 0x18]
je 0x140004a4f
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rdx], rbx
mov byte [rdx + 8], 1
add qword [rbp + 0x10], 0x10
jmp 0x140004a62
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.14000bdd0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140004a9e
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140004a9e
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140004a94
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140004a9e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add r12, 4
cmp r12, qword [rbp + 0x28]
lea r9, [0x140004380]
lea rdi, vtable.std::_Task_async_state_void_.0
jne 0x1400048b1
mov r12, qword [rbp + 0x20]
mov r13, qword [rsp + 0x70]
xor r9d, r9d
mov rdi, qword [rbp + 8]
mov rsi, qword [rbp + 0x10]
cmp rdi, rsi
je 0x140004b4f
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov rbx, qword [rdi]
mov qword [rdi], r9
mov qword [rbp + 0x38], rbx
mov byte [rbp + 0x40], 1
test rbx, rbx
je 0x140004c92
cmp byte [rbx + 0xb8], 0
jne 0x140004c92
mov rax, qword [rbx]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x10]
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140004b3c
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140004b2f
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x140004b3c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
add rdi, 0x10
cmp rdi, rsi
mov r9d, 0
jne 0x140004ad3
mov r12, qword [rbp + 0x20]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140004c1b
mov rdi, qword [rbp + 0x10]
cmp rbx, rdi
je 0x140004bcf
mov rcx, qword [rbx]
test rcx, rcx
je 0x140004bbe
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140004bbe
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140004bb4
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140004bbe
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rbx, 0x10
cmp rbx, rdi
jne 0x140004b84
mov r12, qword [rbp + 0x20]
mov rbx, qword [rbp + 8]
mov rdx, qword [rbp + 0x18]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140004c02
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14000de38
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], 0
test r12, r12
je 0x140004c65
mov rax, qword [rbp + 0x30]
sub rax, r12
sar rax, 2
lea rdx, [rax*4]
mov rax, r12
cmp rdx, 0x1000
jb 0x140004c5c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.14000de38
nop
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14000d900
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 4
call fcn.140003050
nop
call fcn.140001460
int3