Function at 0x1400015e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
mov eax, 0x10c0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], r14d
mov edx, 0x80100000
mov rdi, rcx
mov qword [rsp + 0x68], r14
lea r8d, [r14 + 1]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 1
jae 0x140001651
lea eax, [r14 - 1]
jmp 0x140001923
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x14000168a
mov eax, 0xfffffffe
jmp 0x140001923
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._v__create_section_from
mov qword [rsp + 0x10f0], rbp
call fcn.140001c70
mov rcx, rax
mov rdx, rdi
call fcn.140001c70
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0xec]
lea rdx, str._v__locate_entry__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov ebp, dword [rsp + rax + 0xd8]
call fcn.140001c70
mov rcx, rax
lea rdx, [0x1400011b0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
mov byte [rsp + 0x40], r14b
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov edx, 0x1fffff
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtCreateProcessEx]
mov rdi, qword [rsp + 0x60]
lea r8, [rsp + 0x78]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r14
mov rcx, rdi
mov r9d, 0x30
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
je 0x1400017b1
mov rbx, r14
jmp 0x1400017f3
mov ecx, 0x7c8
call fcn.140002280
xor edx, edx
mov r8d, 0x7c8
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, qword [rsp + 0x80]
mov r9d, 0x7c8
mov r8, rbx
mov qword [rsp + 0x20], r14
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
cmovne rbx, r14
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._v__process__
mov rdi, rbp
add rdi, qword [rbx + 0x10]
call fcn.140001c70
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str.__spawned_from_section_
call fcn.140001e90
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0x60]
mov rdx, rsi
call fcn.140001370
mov rbp, qword [rsp + 0x10f0]
test al, al
jne 0x14000187b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Parameters_setup_failed
call fcn.140001a60
mov rcx, rax
lea rdx, [0x140001c30]
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 0x140001921
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._v__setup_parameters_for_PEB_ok.
call fcn.140001c70
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, str.ntdll
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
mov edx, 0x1fffff
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov qword [0x140007700], rax
call rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str._v__enjoy_:_
call fcn.140001c70
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.140002260
mov rbx, qword [rsp + 0x10f8]
add rsp, 0x10c0
pop r14
pop rdi
pop rsi
ret
sub rsp, 0x28
mov rax, rdx
cmp ecx, 3
je 0x140001991
mov rdx, qword [rdx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140001c70
mov rcx, rax
lea rdx, str.__exe_to_run___fake_file_path_
call fcn.140001e90
mov rcx, rax
lea rdx, [0x140001e50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
add rsp, 0x28
ret
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rax + 8]
add rsp, 0x28
jmp 0x1400015e0