Function at 0x4cfab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59acf2
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov ecx, edi
push ebx
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2d4], ebx
push 0x5e91b4
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2cc], 0xfffffffb
call fcn.004ab820
mov eax, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], ebx
mov dword [eax], ebx
xor eax, eax
push eax
push 0x5e91b4
mov word [ebp - 0x90], ax
call fcn.004ab820
lea eax, [ebp - 0x2f0]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x2f0], 3
mov dword [ebp - 0x2ec], ebx
call fcn.004d2880
test eax, eax
jne 0x4cfba7
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0x28]
call fcn.004ab630
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ebx, 1
push eax
mov dword [ebp - 0x2d4], ebx
call fcn.004d01b0
mov esi, eax
mov dword [ebp - 0x2cc], esi
test esi, esi
js 0x4cfbad
mov byte [ebp - 0x2cd], bl
jmp 0x4cfbb4
mov esi, dword [ebp - 0x2cc]
mov byte [ebp - 0x2cd], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x4cfbdb
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cfbdb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
mov esi, dword [ebp - 0x2cc]
cmp byte [ebp - 0x2cd], 0
mov ebx, dword [ebp + 0x10]
je 0x4cfe3a
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
mov edx, str._n_WaCLRHostUtils__invoke_:_funcName:_Execute__params:
lea ecx, [ebp - 0x28]
call fcn.004c9510
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004c7930
mov ecx, eax
call fcn.004c4350
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cfc50
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
cmp dword [ebp - 0x7c], 8
lea eax, [ebp - 0x90]
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x48]
cmovae eax, dword [ebp - 0x90]
push eax
mov dword [ebp - 0x48], vtable.WaJson.0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x44], 5
call fcn.004b08d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], vtable.WaJson.0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x38], 5
call fcn.004adb30
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 1
push 0x5eb310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004ab630
push str.libwapshost.WaPSHost
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.004ab630
mov byte [ebp - 4], 7
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2d4], 0
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x2d4]
mov dword [ebp - 0x2ec], 0x66
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], 0
push eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.004d2df0
push ecx
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.004d0f30
mov ecx, eax
call fcn.004ca270
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
call fcn.004b2760
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x4cfd66
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0
cmp eax, 8
jb 0x4cfd8f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
push fcn.004ace30
xor eax, eax
mov dword [ebp - 0x14], 7
push 2
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x48]
push 0xc
push eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
call fcn.00541133
cmp dword [ebp - 0x2cc], 0
jl 0x4cfe21
mov ecx, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x2e8]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4cfe21
lea eax, [ebp - 0x2cc]
push eax
lea edx, [ebp - 0x2e8]
lea ecx, [ebp - 0x30]
call fcn.004ceef0
mov ecx, dword [ebp - 0x2d8]
add esp, 4
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x64], edi
push eax
call fcn.004d28c0
lea ecx, [ebp - 0x30]
call fcn.004cf1d0
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0xa
call fcn.004b2760
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x2cc]
test esi, esi
jns 0x4d016a
mov edx, esi
lea ecx, [ebp - 0x78]
call fcn.004ac910
mov esi, eax
push edi
mov edx, str._nPowershell_Host_Execution_failed._Error:
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call fcn.004c9510
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x60]
call fcn.004b58f0
push esi
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.004b5700
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0xe
call fcn.004c7930
mov ecx, eax
call fcn.004c4350
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4cfead
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4cfed6
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], 0
cmp eax, 8
jb 0x4cfeff
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x38], 0
cmp eax, 8
jb 0x4cff2b
inc eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
call fcn.004abec0
mov esi, dword [ebp - 0x2cc]
cmp esi, 0xffffffcf
je 0x4d016a
cmp byte [ebp + 0x14], 0
je 0x4d016a
push str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe
lea ecx, [ebp - 0xc0]
call fcn.004ab630
push 0x208
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 0xf
push 0
push eax
call fcn.0056fec0
add esp, 0xc
lea eax, [ebp - 0x2c8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4cffc9
lea eax, [ebp - 0x2c8]
push eax
lea ecx, [ebp - 0x60]
call fcn.004ab630
push str.System32WindowsPowerShell_v1.0powershell.exe
mov edx, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.004b58f0
add esp, 4
lea ecx, [ebp - 0xc0]
push eax
call fcn.004b21e0
lea ecx, [ebp - 0x28]
call fcn.004ab5f0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
call fcn.004ab5f0
push dword [ebp - 0x2dc]
lea ecx, [ebp - 0xa8]
call fcn.004ab630
push 0x5eb470
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.004ab630
push 0x5e9594
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.004ab630
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x13
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0xa8]
call fcn.004bb240
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004ab5f0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.004ab5f0
lea eax, [ebp - 0xa8]
mov edx, str._noprofile__ExecutionPolicy_Bypass__
push eax
lea ecx, [ebp - 0x60]
call fcn.004c9510
push 0x5e9594
mov edx, eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.004b58f0
add esp, 8
lea ecx, [ebp - 0xa8]
push eax
call fcn.004b21e0
lea ecx, [ebp - 0x28]
call fcn.004ab5f0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.004ab5f0
push ebx
sub esp, 8
mov dword [ebp - 0x2f4], 0
lea eax, [ebp - 0x2f4]
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0xc0]
push eax
push edi
call fcn.0051d200
add esp, 0x14
mov dword [ebp - 0x2cc], eax
test eax, eax
jns 0x4d011f
mov edx, eax
lea ecx, [ebp - 0x78]
call fcn.004ac910
mov esi, eax
push edi
mov edx, str._nSystem_Powershell_Execution_failed._Error:
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x48]
call fcn.004c9510
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x60]
call fcn.004b58f0
push esi
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
call fcn.004b5700
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0x18
call fcn.004c7930
mov ecx, eax
call fcn.004c4350
lea ecx, [ebp - 0x28]
call fcn.004ab5f0
lea ecx, [ebp - 0x60]
call fcn.004ab5f0
lea ecx, [ebp - 0x48]
call fcn.004ab5f0
lea ecx, [ebp - 0x78]
call fcn.004ab5f0
jmp 0x4d014e
cmp dword [edi + 0x14], 8
jb 0x4d0129
mov ecx, dword [edi]
jmp 0x4d012b
mov ecx, edi
call fcn.004ba180
test al, al
je 0x4d014e
cmp dword [edi + 0x14], 8
jb 0x4d013e
mov ecx, dword [edi]
jmp 0x4d0140
mov ecx, edi
push edi
mov edx, str._.__r_n
call fcn.004b9fd0
add esp, 4
mov esi, dword [ebp - 0x2cc]
lea ecx, [ebp - 0xa8]
call fcn.004ab5f0
lea ecx, [ebp - 0xc0]
call fcn.004ab5f0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x4d0185
inc ecx
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0x90]
call fcn.004abec0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 0x14