Function at 0x1400e5960
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x3d0], rbx
mov rax, qword [0x14028a238]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r13d, r9d
mov r15, r8
mov r14, rdx
mov r12, qword [rbp + 0x2f8]
xor r8d, r8d
lea rdx, [0x1402305b4]
mov rcx, r15
call fcn.1400c3720
xor edi, edi
mov dword [r12], edi
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rdi
mov word [rbp + 0x28], di
xor r8d, r8d
lea rdx, [0x1402305b4]
lea rcx, [rbp + 0x28]
call fcn.1400c3720
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp word [r14], di
jne 0x1400e5a07
mov r8d, edi
jmp 0x1400e5a1b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400e5a10
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400c3720
nop
lea r8, [rbp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400e6610
mov esi, eax
test eax, eax
setns bl
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e5a5b
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
test bl, bl
je 0x1400e5ee6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400c3ac0
nop
lea r8, [rsp + 0x58]
lea rdx, str._n_WaCLRHostUtils__invoke_:_funcName:_Execute__params:
lea rcx, [rbp - 0x68]
call fcn.1400cac40
mov rbx, rax
call fcn.1400dfb30
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400db020
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e5ae2
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400c3a10
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e5b0f
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rdx, qword [rbp + 0x28]
lea rbx, vtable.WaJson.0
mov qword [rbp - 8], rbx
mov qword [rbp + 8], rdi
mov dword [rbp + 8], edi
mov byte [rbp + 8], 0
mov dword [rbp], 5
lea rcx, [rbp - 8]
call fcn.1400c7f30
nop
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x20], rdi
mov dword [rbp + 0x20], edi
mov byte [rbp + 0x20], 0
mov dword [rbp + 0x18], 5
mov rbx, qword [fcn.1400c54b0]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rcx, [rbp + 0x10]
call rbx
mov dword [rbp + 0x20], r13d
mov dword [rbp + 0x18], 1
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 7
lea rdx, [0x1402320a0]
lea rcx, [rsp + 0x58]
call fcn.1400c3720
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8d, SafeArrayAccessData
lea rdx, str.libwapshost.WaPSHost
lea rcx, [rbp - 0x68]
call fcn.1400c3720
nop
mov dword [rsp + 0x40], 0x66
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rdi
lea r8, [rbp + 0x28]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x48]
call fcn.1400e7490
nop
call fcn.1400e71f0
mov rcx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x40]
call fcn.1400e2620
mov esi, eax
lea rcx, [rbp - 0x48]
call fcn.1400c9ae0
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e5c47
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400c3a10
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e5c74
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r9, [fcn.1400c4610]
mov edx, SafeArrayCopy
lea r8d, [rdx - 0x16]
lea rcx, [rbp - 8]
call fcn.14016d44c
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
jb 0x1400e5ed9
test esi, esi
js 0x1400e5ed9
mov dword [rsp + 0x40], 0
test rdx, rdx
jne 0x1400e5cec
call fcn.1400c9ac0
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rbx
test al, al
je 0x1400e5d7d
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1400e5d3c
call fcn.1400c9ac0
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0x168]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call rbx
mov rdx, rax
mov rcx, r15
call fcn.1400c9840
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e5d7d
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400c3a10
mov dword [rsp + 0x40], 1
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x1400e5db8
call fcn.1400c9ac0
int3
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call rbx
test al, al
je 0x1400e5e2a
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
ja 0x1400e5e0e
call fcn.1400c9ac0
int3
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0x160]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rcx, [rdi + 0x18]
call rbx
mov esi, eax
mov dword [rsp + 0x40], 1
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
ja 0x1400e5e65
call fcn.1400c9ac0
int3
mov rdx, qword [rdi + 0x30]
mov rbx, qword [rdx + 0xa8]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x30]
call rbx
test al, al
je 0x1400e5ed9
mov rcx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x78]
sub rcx, rdi
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
ja 0x1400e5ebb
call fcn.1400c9ac0
int3
mov rax, qword [rdi + 0x30]
mov rbx, qword [rax + 0x160]
mov rcx, rbx
call qword [fcn.140005fb0]
lea rcx, [rdi + 0x30]
call rbx
mov dword [r12], eax
lea rcx, [rsp + 0x78]
call fcn.1400c9ae0
nop
xor edi, edi
test esi, esi
jns 0x1400e65bd
mov edx, esi
lea rcx, [rbp - 0x28]
call fcn.1400c4090
mov rbx, rax
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.1400c3ac0
nop
lea r8, [rsp + 0x58]
lea rdx, str._nPowershell_Host_Execution_failed._Error:
lea rcx, [rsp + 0x78]
call fcn.1400cac40
nop
lea r8, str.._Return_code:
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400cacb0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400caa50
mov rbx, rax
call fcn.1400dfb30
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400db020
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e5f92
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400c3a10
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400e5fbc
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400c3a10
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400e5fe8
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400c3a10
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e6016
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e6043
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400c3a10
cmp byte [rbp + 0x2f0], 0
je 0x1400e65bd
cmp esi, 0xffffffcf
je 0x1400e65bd
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.1401b04b0
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400e60a2
movups xmm0, xmmword [str.C:Windows]
movaps xmmword [rbp + 0x70], xmm0
mov eax, dword [0x140232210]
mov dword [rbp + 0x80], eax
movzx eax, word [0x140232214]
mov word [rbp + 0x84], ax
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp word [rbp + 0x70], 0
jne 0x1400e60c1
mov r8, rdi
jmp 0x1400e60db
lea rax, [rbp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400e60d0
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1400c3720
nop
lea r8, str.System32WindowsPowerShell_v1.0powershell.exe
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.1400cacb0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e611d
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
cmp word [r14], 0
jne 0x1400e614c
mov r8, rdi
jmp 0x1400e615b
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400e6150
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.1400c3720
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 1
lea rdx, [0x14023226c]
lea rcx, [rsp + 0x58]
call fcn.1400c3720
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 1
lea rdx, [0x140230644]
lea rcx, [rsp + 0x78]
call fcn.1400c3720
nop
mov rsi, qword [rbp - 0x78]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rbp - 0x70]
test rsi, rsi
je 0x1400e625b
lea rdx, [rsp + 0x78]
cmp rdi, 8
cmovae rdx, r14
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.1400c35d0
mov rbx, rax
xor r12d, r12d
cmp rax, 0xffffffffffffffff
je 0x1400e625e
nop word [rax + rax]
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1400cb960
lea rdx, [rsp + 0x78]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rbp - 0x70]
cmp rdi, 8
cmovae rdx, r14
mov r8, qword [rsp + 0x68]
add r8, rbx
mov rsi, qword [rbp - 0x78]
mov r9, rsi
lea rcx, [rbp - 0x48]
call fcn.1400c35d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e6200
jmp 0x1400e625e
xor r12d, r12d
cmp rdi, 8
jb 0x1400e6275
lea r8, [rdi + 1]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400c3a10
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e62a4
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov dword [rsp + 0x40], r12d
lea r8, [rbp - 0x48]
lea rdx, str._noprofile__ExecutionPolicy_Bypass__
lea rcx, [rbp - 0x28]
call fcn.1400e16c0
nop
lea r8, [0x140230644]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400cacb0
mov r14, rax
lea rdx, [rsp + 0x44]
lea rcx, [rbp - 0x68]
call fcn.1401418c0
mov esi, eax
test eax, eax
js 0x1400e6391
movzx ebx, byte [rsp + 0x44]
test bl, bl
je 0x1400e6332
xor bl, bl
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400e6332
mov rcx, rax
call qword [fcn.140005fb0]
lea rcx, [rsp + 0x48]
call rdi
test eax, eax
setne bl
mov dword [rsp + 0x30], r13d
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x40]
mov r8, r15
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.140143b50
mov esi, eax
test bl, bl
je 0x1400e6391
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400e6391
mov rcx, rax
call qword [fcn.140005fb0]
mov rcx, qword [rsp + 0x48]
call rbx
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e63ae
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e63dc
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400c3a10
test esi, esi
jns 0x1400e6540
mov edx, esi
lea rcx, [rbp - 8]
call fcn.1400c4090
mov rbx, rax
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.1400c3ac0
nop
lea r8, [rsp + 0x58]
lea rdx, str._nSystem_Powershell_Execution_failed._Error:
lea rcx, [rbp - 0x28]
call fcn.1400cac40
nop
lea r8, str.._Return_code:
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400cacb0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400caa50
mov rbx, rax
call fcn.1400dfb30
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400db020
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400e648b
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400c3a10
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov r8, qword [rbp + 0x60]
cmp r8, 8
jb 0x1400e64b7
inc r8
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x48]
call fcn.1400c3a10
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e64e2
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400c3a10
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e6510
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400c3a10
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x1400e6577
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.1400c3a10
jmp 0x1400e6577
cmp qword [r15 + 0x18], 8
jb 0x1400e654c
mov rcx, qword [r15]
jmp 0x1400e654f
mov rcx, r15
call fcn.1400cf030
test al, al
je 0x1400e6577
cmp qword [r15 + 0x18], 8
jb 0x1400e6564
mov rcx, qword [r15]
jmp 0x1400e6567
mov rcx, r15
mov r8, r15
lea rdx, [0x140232270]
call fcn.1400cee70
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400e6591
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400c3a10
mov word [rbp - 0x48], r12w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e65bd
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400c3a10
nop
mov r8, qword [rbp + 0x40]
cmp r8, 8
jb 0x1400e65d7
inc r8
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x28]
call fcn.1400c3a10
mov eax, esi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.14016ce60
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret