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

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 - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov rsi, rcx
mov qword [rbp - 0x68], rcx
xor r14d, r14d
mov r8, rcx
cmp qword [rcx + 0x18], 8
jb 0x140004a5f
mov r8, qword [rcx]
lea rdx, str.Run_Ps_script_1:_file____s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140004a7f
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
jne 0x14000521a
mov rbx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140004a9c
mov rbx, qword [rsi]
test rbx, rbx
je 0x14000521a
cmp word [rbx], 0
je 0x140004ac4
call fcn.140008a40
mov rdx, qword [rax]
mov rax, qword [rdx]
test rax, rax
je 0x140004ac4
mov rcx, rbx
call rax
test eax, eax
je 0x140004ad4
mov rcx, rbx
call fcn.140001b60
test al, al
je 0x14000521a
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
xor r8d, r8d
lea rdx, [0x14000b6e0]
lea rcx, [rbp - 0x60]
call fcn.140007b10
nop
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140004baa
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.140008120
lea rax, [rbp + 0x280]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140004b60
mov rax, qword [rbp - 0x48]
cmp rdx, rax
ja 0x140004ba1
lea rdi, [rbp - 0x60]
cmp rax, 8
cmovae rdi, qword [rbp - 0x60]
mov qword [rbp - 0x50], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x280]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r14w
jmp 0x140004bfa
lea r9, [rbp + 0x280]
jmp 0x140004bf1
mov rax, qword [rbp - 0x48]
cmp rax, 0x39
jb 0x140004be5
lea rbx, [rbp - 0x60]
cmp rax, 8
cmovae rbx, qword [rbp - 0x60]
mov qword [rbp - 0x50], 0x39
mov r8d, 0x72
lea rdx, str.C:WindowsSystem32WindowsPowerShell_v1.0PowerShell.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + 0x72], r14w
jmp 0x140004bfa
lea r9, str.C:WindowsSystem32WindowsPowerShell_v1.0PowerShell.exe
mov edx, 0x39
lea rcx, [rbp - 0x60]
call fcn.140007c50
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
test eax, eax
je 0x140004c8c
lea r8, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r8, qword [rbp - 0x60]
lea rdx, str.Run_Ps_script_3_failed._Ps_EXE_path_not_exist:___s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140004c76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051ae
call fcn.140008cb0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
jmp 0x14000523b
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov r8d, 0x4e
lea rdx, str.__ExecutionPolicy_bypass__NoProfile__NonInteractive__WindowStyle_Hidden__File
lea rcx, [rbp - 0x20]
call fcn.140007b10
nop
mov r15, qword [rbp - 0x50]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
mov r13, qword [rbp - 0x10]
cmp rax, r13
jb 0x1400052c5
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x50], r9
lea rax, [rbp - 0x20]
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 8]
cmp r12, 8
cmovae rax, r14
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rdx, [r15 + r13]
mov ebx, 7
lea rdi, [rsp + 0x58]
cmp rdx, rbx
jbe 0x140004dca
mov rbx, rdx
or rbx, 7
cmp rbx, rcx
jbe 0x140004d46
mov rbx, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140004d75
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400052bf
add rcx, rcx
cmp rcx, 0x1000
jb 0x140004daa
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400052bf
mov rcx, rax
call fcn.140008ce4
test rax, rax
je 0x140004edf
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
lea rdx, [r15 + r13]
mov r9, qword [rsp + 0x50]
jmp 0x140004dc5
test rcx, rcx
je 0x140004dc2
call fcn.140008ce4
mov rdi, rax
lea rdx, [r15 + r13]
mov r9, qword [rsp + 0x50]
jmp 0x140004dc5
mov rdi, rcx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
lea r8, [r13*2]
mov rdx, qword [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [r15 + r13]
xor ebx, ebx
mov word [rdi + rax*2], bx
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x140004e13
mov r9, qword [rsi]
mov rdi, qword [rsi + 0x10]
mov r15, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r15
cmp rdi, rax
ja 0x140004e67
lea rax, [r15 + rdi]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + r15*2]
lea r8, [rdi + rdi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r15 + rdi]
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rax, [rsp + 0x58]
xor ebx, ebx
jmp 0x140004e79
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140007dc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140004eeb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ee6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ee6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
xorps xmm1, xmm1
movups xmmword [rbp + 4], xmm1
movups xmmword [rbp + 0x14], xmm1
movups xmmword [rbp + 0x24], xmm1
movups xmmword [rbp + 0x34], xmm1
movups xmmword [rbp + 0x44], xmm1
movups xmmword [rbp + 0x54], xmm1
mov dword [rbp + 0x64], eax
mov dword [rbp], 0x68
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400050d1
mov edx, 0x493e0
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Run_Ps_script_4:_execute_finished__________
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140004fdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004fda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000511b
call fcn.140008cb0
movdqa xmm0, xmmword [0x14000e710]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], bx
cmp r12, 8
jb 0x14000502c
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140005023
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005167
mov rcx, r14
call fcn.140008cb0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14000506c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005067
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051ae
call fcn.140008cb0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1400050bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400050b6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400052b8
mov rcx, r8
call fcn.140008cb0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov al, 1
jmp 0x140005288
lea rdx, str.Run_Ps_script_5:_execute_failed_....
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140005127
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005122
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005122
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
movdqa xmm0, xmmword [0x14000e710]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], bx
cmp r12, 8
jb 0x140005177
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14000516e
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000516e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140008cb0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400051ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cb0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140005209
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140005204
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400052b8
mov rcx, r8
call fcn.140008cb0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
jmp 0x140005286
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x140005227
mov r8, qword [rsi]
lea rdx, str.Run_Ps_script_2_failed__Because_file_not_exist:___s_
lea rcx, vtable.CBGSimpleLogger.0
call fcn.140001900
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140005276
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140005271
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400052b8
mov rcx, r8
call fcn.140008cb0
mov word [rsi], r14w
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r14
xor al, al
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.140008c90
lea r11, [rsp + 0x7a0]
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 qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001110
nop
call fcn.1400011b0
int3