Function at 0x140003a70
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x6a8]
sub rsp, 0x7a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov rbx, rcx
mov qword [rbp - 0x70], rcx
cmp qword [rcx + 0x18], 8
jb 0x140003ab7
mov r8, qword [rcx]
jmp 0x140003aba
mov r8, rbx
lea rdx, str.Run_Ps_script_1:_file____s_
lea rcx, [0x140010748]
call fcn.1400018a0
cmp qword [rbx + 0x18], 8
jb 0x140003ad9
mov rcx, qword [rbx]
jmp 0x140003adc
mov rcx, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
jne 0x140003d8e
cmp qword [rbx + 0x18], 8
jb 0x140003af8
mov rdi, qword [rbx]
jmp 0x140003afb
mov rdi, rbx
test rdi, rdi
je 0x140003d8e
cmp word [rdi], 0
je 0x140003b21
call fcn.1400071e0
mov rdx, qword [rax]
cmp qword [rdx], 0
je 0x140003b21
mov rcx, rdi
call qword [rdx]
test eax, eax
je 0x140003b31
mov rcx, rdi
call fcn.140001cb0
test al, al
je 0x140003d8e
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x50], 7
xor edi, edi
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
xor r8d, r8d
lea rdx, [0x140009668]
lea rcx, [rbp - 0x68]
call fcn.140005860
nop
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140003bd8
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x70]
lea r8, str._sWindowsPowerShell_v1.0PowerShell.exe
mov edx, 0x207
lea rcx, [rbp + 0x280]
call fcn.140006430
cmp word [rbp + 0x280], di
jne 0x140003bb9
mov r8d, edi
jmp 0x140003bcf
lea rax, [rbp + 0x280]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140003bc4
lea rdx, [rbp + 0x280]
jmp 0x140003be5
mov r8d, 0x39
lea rdx, str.C:WindowsSystem32WindowsPowerShell_v1.0PowerShell.exe
lea rcx, [rbp - 0x68]
call fcn.140005860
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
je 0x140003c38
lea r8, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r8, qword [rbp - 0x68]
lea rdx, str.Run_Ps_script_3_failed._Ps_EXE_path_not_exist:___s_
lea rcx, [0x140010748]
call fcn.1400018a0
nop
lea rcx, [rbp - 0x68]
call fcn.140005600
jmp 0x140003db1
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8d, 0x4e
lea rdx, str.__ExecutionPolicy_bypass__NoProfile__NonInteractive__WindowStyle_Hidden__File
lea rcx, [rbp - 0x48]
call fcn.140005860
nop
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.140006260
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140006300
nop
lea rcx, [rsp + 0x58]
call fcn.140005600
mov qword [rsp + 0x78], rdi
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
xor edx, edx
lea r8d, [rax + 0x60]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp], 0x68
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003d5c
mov edx, 0x493e0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Run_Ps_script_4:_execute_finished__________
lea rcx, [0x140010748]
call fcn.1400018a0
lea rcx, [rbp - 0x28]
call fcn.140005600
nop
lea rcx, [rbp - 0x48]
call fcn.140005600
nop
lea rcx, [rbp - 0x68]
call fcn.140005600
nop
mov rcx, rbx
call fcn.140005600
mov al, 1
jmp 0x140003dbb
lea rdx, str.Run_Ps_script_5:_execute_failed_....
lea rcx, [0x140010748]
call fcn.1400018a0
lea rcx, [rbp - 0x28]
call fcn.140005600
nop
lea rcx, [rbp - 0x48]
call fcn.140005600
nop
lea rcx, [rbp - 0x68]
call fcn.140005600
jmp 0x140003db1
cmp qword [rbx + 0x18], 8
jb 0x140003d9a
mov r8, qword [rbx]
jmp 0x140003d9d
mov r8, rbx
lea rdx, str.Run_Ps_script_2_failed__Because_file_not_exist:___s_
lea rcx, [0x140010748]
call fcn.1400018a0
nop
mov rcx, rbx
call fcn.140005600
xor al, al
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.140007350
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret