Function at 0x140008560
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows
Run powershell expression

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11a0]
mov eax, 0x12a0
call fcn.140032490
sub rsp, rax
mov rax, qword [0x140048040]
xor rax, rsp
mov qword [rbp + 0x1190], rax
mov ebx, ecx
mov dword [rsp + 0x60], ecx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xe0], xmm1
lea r8d, [rdi + 0x11]
lea rdx, str.Invoke_RestMethod
lea rcx, [rbp + 0xd0]
call fcn.140003b40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x100], xmm1
lea r8d, [rdi + 0x31]
lea rdx, str.____Found_ImportCode_string:_Invoke_RestMethod.
lea rcx, [rbp + 0xf0]
call fcn.140003b40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x120], xmm1
lea r8d, [rdi + 0x11]
lea rdx, str.Invoke_Expression
lea rcx, [rbp + 0x110]
call fcn.140003b40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x130], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x140], xmm1
lea r8d, [rdi + 0x31]
lea rdx, str.____Found_ImportCode_string:_Invoke_Expression.
lea rcx, [rbp + 0x130]
call fcn.140003b40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x150], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x160], xmm1
lea r8d, [rdi + 0xd]
lea rdx, str.import_base64
lea rcx, [rbp + 0x150]
call fcn.140003b40
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x170], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x180], xmm1
lea r8d, [rdi + 0x2d]
lea rdx, str.____Found_ImportCode_string:_import_base64.
lea rcx, [rbp + 0x170]
call fcn.140003b40
nop
lea rax, [rbp + 0xd0]
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x190]
mov qword [rbp - 0x78], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call fcn.140008d80
nop
lea r9, [fcn.1400046f0]
lea edx, [rdi + 0x40]
lea r8d, [rdi + 3]
lea rcx, [rbp + 0xd0]
call fcn.140031e80
mov edx, ebx
lea rcx, [rbp + 0xb0]
call fcn.1400084a0
nop
lea r9d, [rdi + 0x16]
lea r8, str.memory_scanner.exe__p
mov rcx, rax
call fcn.140004180
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x140008796
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008791
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008791
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140031aa0
movdqa xmm0, xmmword [0x14003d6d0]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], di
mov qword [rbp - 0x58], 0x18
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x50], rdi
xor r9d, r9d
lea r8, [rbp - 0x58]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [rbp - 0x20], 0x68
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movups xmmword [rbp - 8], xmm0
movups xmmword [rbp + 8], xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0x38], rax
psrldq xmm0, 4
movd eax, xmm0
or eax, 0x101
mov dword [rbp + 0x1c], eax
mov word [rbp + 0x20], di
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 7
cmova rdx, qword [rbp + 0x90]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140008c60
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008c3d
mov edx, 0xa
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140008c3d
shr rax, 1
lea r14, [rbp + 0x190]
add r14, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
lea rcx, [rbp + 0x190]
xor r9d, r9d
mov qword [rbp + 0x60], r9
cmp rcx, r14
jne 0x140008919
mov r13d, r9d
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r9w
jmp 0x1400089d4
lea rdi, [rbp + 0x190]
mov rsi, r9
mov ebx, 7
mov qword [rbp + 0x68], rbx
cmp rax, rbx
jbe 0x140008990
mov rbx, rax
or rbx, 7
cmp rbx, 0xa
cmovb rbx, rdx
lea rcx, [rbx*2 + 2]
cmp rcx, 0x1000
jb 0x140008980
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008d60
mov rcx, rax
call fcn.140031bc8
mov rcx, rax
test rax, rax
je 0x140008c36
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140008985
call fcn.140031bc8
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x68], rbx
xor r9d, r9d
lea rcx, [rbp + 0x50]
cmp rbx, 7
cmova rcx, qword [rbp + 0x50]
movsx eax, byte [rdi]
mov word [rcx + rsi*2], ax
mov rsi, qword [rbp + 0x60]
inc rsi
mov qword [rbp + 0x60], rsi
inc rdi
cmp rdi, r14
je 0x1400089bd
mov rbx, qword [rbp + 0x68]
jmp 0x140008990
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rax, qword [rbp + 0x50]
mov word [rax + rsi*2], r9w
mov r13, qword [rbp + 0x60]
mov rbx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp + 0x50]
mov qword [rsp + 0x70], rcx
cmp rbx, rax
je 0x140008be4
nop dword [rax]
nop word [rax + rax]
lea r12, [rbx + 0x20]
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x140008a1b
mov rcx, qword [rbx]
mov rdx, rcx
lea r8, [rcx + rax*2]
jmp 0x140008a22
lea r8, [rbx + rax*2]
mov rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r9
mov qword [rbp + 0x88], r9
cmp rdx, r8
jne 0x140008a59
mov rdi, r9
mov qword [rbp + 0x80], r9
mov esi, 7
mov qword [rbp + 0x88], rsi
mov word [rbp + 0x70], r9w
jmp 0x140008a79
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0x70]
call fcn.140003b40
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x80]
xor r9d, r9d
lea r11, [rbp + 0x70]
mov r14, qword [rbp + 0x70]
cmp rsi, 7
cmova r11, r14
lea r15, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r15, qword [rsp + 0x70]
cmp rdi, r13
ja 0x140008b90
mov rax, r13
sub rax, rdi
test rdi, rdi
je 0x140008b34
inc rax
lea r13, [r15 + rax*2]
mov rax, r15
movzx r10d, word [r11]
nop
mov rcx, r13
sub rcx, rax
sar rcx, 1
mov rdx, r9
je 0x140008aea
cmp word [rax], r10w
je 0x140008ae7
cmp rcx, 1
je 0x140008aea
dec rcx
add rax, 2
cmp word [rax], r10w
jne 0x140008ad4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140008b90
mov r8, rdi
mov rdx, r11
test rdi, rdi
je 0x140008b28
mov r9, rax
sub r9, r11
nop word [rax + rax]
movzx ecx, word [rdx + r9]
cmp cx, word [rdx]
jne 0x140008c23
add rdx, 2
sub r8, 1
jne 0x140008b10
sub rax, r15
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x140008b90
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 7
jbe 0x140008b45
mov r12, qword [r12]
mov rdx, r12
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140004280
lea rdx, str.on_process_with_pid:
mov rcx, rax
call fcn.140003660
mov edx, dword [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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str.._This_is_bannable_
call fcn.140003660
lea rdx, [0x140003840]
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___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]
nop
cmp rsi, 7
jbe 0x140008bc7
lea rdx, [rsi*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140008bbf
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008c2f
mov rcx, r14
call fcn.140031aa0
add rbx, 0x40
cmp rbx, qword [rbp - 0x80]
mov r13, qword [rbp + 0x60]
mov r9d, 0
jne 0x140008a00
mov rcx, qword [rsp + 0x70]
mov rax, qword [rbp + 0x68]
cmp rax, 7
jbe 0x140008c1c
lea rdx, [rax*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008c36
call fcn.140031aa0
xor edi, edi
jmp 0x1400088a2
add rax, 2
xor r9d, r9d
jmp 0x140008ac0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 7
jbe 0x140008cb5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008cb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008cb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140031aa0
movdqa xmm0, xmmword [0x14003d6d0]
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], di
mov rbx, qword [rbp - 0x70]
test rbx, rbx
je 0x140008d30
mov rdi, qword [rbp - 0x68]
cmp rbx, rdi
je 0x140008cf5
nop
mov rcx, rbx
call fcn.1400046f0
add rbx, 0x40
cmp rbx, rdi
jne 0x140008ce0
mov rbx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x60]
sub rdx, rbx
and rdx, 0xffffffffffffffc0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140008d28
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008d28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140031aa0
mov rcx, qword [rbp + 0x1190]
xor rcx, rsp
call fcn.140031a80
lea r11, [rsp + 0x12a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001ef0
nop
int3