Function at 0x1400e0530
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 [0x14027f238]
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, [0x1402271c4]
mov rcx, r15
call fcn.1400be520
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, [0x1402271c4]
lea rcx, [rbp + 0x28]
call fcn.1400be520
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
cmp word [r14], di
jne 0x1400e05d7
mov r8d, edi
jmp 0x1400e05eb
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400e05e0
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.1400be520
nop
lea r8, [rbp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400e11e0
mov esi, eax
test eax, eax
setns bl
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e062b
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
test bl, bl
je 0x1400e0ab6
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.1400be8c0
nop
lea r8, [rsp + 0x58]
lea rdx, str._n_WaCLRHostUtils__invoke_:_funcName:_Execute__params:
lea rcx, [rbp - 0x68]
call fcn.1400c58d0
mov rbx, rax
call fcn.1400da700
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400d5bf0
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e06b2
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400be810
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e06df
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
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.1400c2c80
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.1400c02b0]
mov rcx, rbx
call qword [fcn.1400059b0]
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, [0x140228d20]
lea rcx, [rsp + 0x58]
call fcn.1400be520
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.1400be520
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.1400e2060
nop
call fcn.1400e1dc0
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.1400dd1f0
mov esi, eax
lea rcx, [rbp - 0x48]
call fcn.1400c4770
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e0817
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400be810
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e0844
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
lea r9, [fcn.1400bf410]
mov edx, SafeArrayCopy
lea r8d, [rdx - 0x16]
lea rcx, [rbp - 8]
call fcn.1401654ac
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 0x1400e0aa9
test esi, esi
js 0x1400e0aa9
mov dword [rsp + 0x40], 0
test rdx, rdx
jne 0x1400e08bc
call fcn.1400c4750
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call rbx
test al, al
je 0x1400e094d
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 0x1400e090c
call fcn.1400c4750
int3
mov rax, qword [rdi]
mov rbx, qword [rax + 0x168]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call rbx
mov rdx, rax
mov rcx, r15
call fcn.1400c44d0
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e094d
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400be810
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 0x1400e0988
call fcn.1400c4750
int3
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call rbx
test al, al
je 0x1400e09fa
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 0x1400e09de
call fcn.1400c4750
int3
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + 0x160]
mov rcx, rbx
call qword [fcn.1400059b0]
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 0x1400e0a35
call fcn.1400c4750
int3
mov rdx, qword [rdi + 0x30]
mov rbx, qword [rdx + 0xa8]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x30]
call rbx
test al, al
je 0x1400e0aa9
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 0x1400e0a8b
call fcn.1400c4750
int3
mov rax, qword [rdi + 0x30]
mov rbx, qword [rax + 0x160]
mov rcx, rbx
call qword [fcn.1400059b0]
lea rcx, [rdi + 0x30]
call rbx
mov dword [r12], eax
lea rcx, [rsp + 0x78]
call fcn.1400c4770
nop
xor edi, edi
test esi, esi
jns 0x1400e118d
mov edx, esi
lea rcx, [rbp - 0x28]
call fcn.1400bee90
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.1400be8c0
nop
lea r8, [rsp + 0x58]
lea rdx, str._nPowershell_Host_Execution_failed._Error:
lea rcx, [rsp + 0x78]
call fcn.1400c58d0
nop
lea r8, str.._Return_code:
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400c5940
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400c56e0
mov rbx, rax
call fcn.1400da700
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400d5bf0
nop
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e0b62
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400be810
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400e0b8c
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400be810
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400e0bb8
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400be810
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e0be6
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e0c13
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400be810
cmp byte [rbp + 0x2f0], 0
je 0x1400e118d
cmp esi, 0xffffffcf
je 0x1400e118d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.1401a85d0
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400e0c72
movups xmm0, xmmword [str.C:Windows]
movaps xmmword [rbp + 0x70], xmm0
mov eax, dword [0x140228d40]
mov dword [rbp + 0x80], eax
movzx eax, word [0x140228d44]
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 0x1400e0c91
mov r8, rdi
jmp 0x1400e0cab
lea rax, [rbp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400e0ca0
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.1400be520
nop
lea r8, str.System32WindowsPowerShell_v1.0powershell.exe
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.1400c5940
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e0ced
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
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 0x1400e0d1c
mov r8, rdi
jmp 0x1400e0d2b
or r8, 0xffffffffffffffff
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400e0d20
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.1400be520
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 1
lea rdx, [0x140228da8]
lea rcx, [rsp + 0x58]
call fcn.1400be520
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 1
lea rdx, [0x140227254]
lea rcx, [rsp + 0x78]
call fcn.1400be520
nop
mov rsi, qword [rbp - 0x78]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rbp - 0x70]
test rsi, rsi
je 0x1400e0e2b
lea rdx, [rsp + 0x78]
cmp rdi, 8
cmovae rdx, r14
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.1400be3d0
mov rbx, rax
xor r12d, r12d
cmp rax, 0xffffffffffffffff
je 0x1400e0e2e
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.1400c65f0
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.1400be3d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400e0dd0
jmp 0x1400e0e2e
xor r12d, r12d
cmp rdi, 8
jb 0x1400e0e45
lea r8, [rdi + 1]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400be810
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e0e74
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
mov dword [rsp + 0x40], r12d
lea r8, [rbp - 0x48]
lea rdx, str._noprofile__ExecutionPolicy_Bypass__
lea rcx, [rbp - 0x28]
call fcn.1400dc290
nop
lea r8, [0x140227254]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400c5940
mov r14, rax
lea rdx, [rsp + 0x44]
lea rcx, [rbp - 0x68]
call fcn.1401399c0
mov esi, eax
test eax, eax
js 0x1400e0f61
movzx ebx, byte [rsp + 0x44]
test bl, bl
je 0x1400e0f02
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 0x1400e0f02
mov rcx, rax
call qword [fcn.1400059b0]
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.14013bc50
mov esi, eax
test bl, bl
je 0x1400e0f61
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 0x1400e0f61
mov rcx, rax
call qword [fcn.1400059b0]
mov rcx, qword [rsp + 0x48]
call rbx
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e0f7e
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e0fac
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400be810
test esi, esi
jns 0x1400e1110
mov edx, esi
lea rcx, [rbp - 8]
call fcn.1400bee90
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.1400be8c0
nop
lea r8, [rsp + 0x58]
lea rdx, str._nSystem_Powershell_Execution_failed._Error:
lea rcx, [rbp - 0x28]
call fcn.1400c58d0
nop
lea r8, str.._Return_code:
mov rdx, rax
lea rcx, [rbp + 0x48]
call fcn.1400c5940
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400c56e0
mov rbx, rax
call fcn.1400da700
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call fcn.1400d5bf0
nop
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400e105b
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400be810
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov r8, qword [rbp + 0x60]
cmp r8, 8
jb 0x1400e1087
inc r8
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x48]
call fcn.1400be810
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x1400e10b2
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.1400be810
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r12
mov word [rbp - 0x28], r12w
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400e10e0
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.1400be810
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r12
mov word [rsp + 0x58], r12w
mov r8, qword [rbp + 0x10]
cmp r8, 8
jb 0x1400e1147
inc r8
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 8]
call fcn.1400be810
jmp 0x1400e1147
cmp qword [r15 + 0x18], 8
jb 0x1400e111c
mov rcx, qword [r15]
jmp 0x1400e111f
mov rcx, r15
call fcn.1400c9cc0
test al, al
je 0x1400e1147
cmp qword [r15 + 0x18], 8
jb 0x1400e1134
mov rcx, qword [r15]
jmp 0x1400e1137
mov rcx, r15
mov r8, r15
lea rdx, str._.__r_n
call fcn.1400c9b00
nop
mov r8, qword [rbp - 0x30]
cmp r8, 8
jb 0x1400e1161
inc r8
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
call fcn.1400be810
mov word [rbp - 0x48], r12w
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400e118d
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400be810
nop
mov r8, qword [rbp + 0x40]
cmp r8, 8
jb 0x1400e11a7
inc r8
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x28]
call fcn.1400be810
mov eax, esi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140164ec0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret