Function at 0x140003320
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 [0x14000e040]
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, [0x140009748]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400033bb
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.1400057f0
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, [0x1400059d0]
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 0x140003aab
mov r9d, 0x18
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
jne 0x1400033e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_get_module_information_for_ntdll.dll._Error:
jmp 0x14000338d
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 0x140003438
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_open_ntdll.dll_file._Error:
jmp 0x14000338d
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 0x1400034a5
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.1400057f0
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, [0x1400059d0]
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 0x140003aab
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 0x140003515
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.1400057f0
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, [0x1400059d0]
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 0x140003aab
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 0x1400035b1
lea rbx, [rbx*4]
test rbx, rbx
jne 0x14000354c
mov r12d, r9d
jmp 0x14000358a
cmp rbx, 0x1000
jb 0x14000357f
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140003ae3
call fcn.140007184
test rax, rax
je 0x140003a9c
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
jmp 0x14000358a
mov rcx, rbx
call fcn.140007184
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 0x1400035be
mov rdi, qword [rbp + 0x28]
mov qword [rsp + 0x40], rdi
mov r12, qword [rbp + 0x20]
mov ecx, r9d
cmp r9w, word [r15 + 6]
jae 0x1400035e1
mov rdx, r12
nop dword [rax + rax]
mov dword [rdx], ecx
inc ecx
lea rdx, [rdx + 4]
movzx eax, word [r15 + 6]
cmp ecx, eax
jl 0x1400035d0
mov rsi, 0xffffffffffffffff
mov r14d, 0x40
nop
lea r14, [r14 - 1]
shr rsi, 1
cmp rsi, 0x7fff
ja 0x1400035f0
cmp r12, rdi
je 0x1400036d1
lea rax, [r12 + 4]
mov qword [rsp + 0x50], rax
cmp rax, rdi
je 0x1400036d1
mov r13d, 2
nop dword [rax]
nop word [rax + rax]
lea r15, [r13 - 1]
mov rdi, r9
mov rbx, r9
test r15, r15
je 0x140003675
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 0x140003650
or rdi, rax
lea rcx, [r14 - 1]
shl rbx, cl
add rbx, rbx
or rbx, rsi
cmp rbx, r15
jb 0x140003640
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 0x140003695
cmp r8, r15
jne 0x140003634
mov r8, qword [rsp + 0x50]
cmp rdx, r15
je 0x1400036ad
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 0x140003630
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 0x140003916
lea r9, [0x1400031d0]
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.140007184
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.1400065b0
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.1400015f0
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140003796
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.1400066b0
cmp rdi, rax
je 0x1400037ff
mov rdx, rax
mov rcx, rdi
call fcn.140005720
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140003838
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140003838
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140003838
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 0x140003880
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x140003872
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x140003880
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 0x14000389f
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rdx], rbx
mov byte [rdx + 8], 1
add qword [rbp + 0x10], 0x10
jmp 0x1400038b2
lea r8, [rsp + 0x40]
lea rcx, [rbp + 8]
call fcn.140005ca0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400038ee
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400038ee
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400038e4
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400038ee
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add r12, 4
cmp r12, qword [rbp + 0x28]
lea r9, [0x1400031d0]
lea rdi, vtable.std::_Task_async_state_void_.0
jne 0x140003701
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 0x14000399f
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 0x140003ad8
cmp byte [rbx + 0xb8], 0
jne 0x140003ad8
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 0x14000398c
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x14000397f
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x14000398c
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
add rdi, 0x10
cmp rdi, rsi
mov r9d, 0
jne 0x140003923
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 0x140003a6a
mov rdi, qword [rbp + 0x10]
cmp rbx, rdi
je 0x140003a1f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003a0e
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140003a0e
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140003a04
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140003a0e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rbx, 0x10
cmp rbx, rdi
jne 0x1400039d4
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 0x140003a52
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140007400
xorps xmm0, xmm0
movdqu xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], 0
test r12, r12
je 0x140003aab
mov rdx, qword [rbp + 0x30]
sub rdx, r12
and rdx, 0xfffffffffffffffc
mov rax, r12
cmp rdx, 0x1000
jb 0x140003aa3
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003aa3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140007400
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140007080
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.140002e20
nop
call fcn.140001280
int3