Function at 0x4c8740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x6071d4]
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 ebx, dword [ebp + 0xc]
mov ecx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
push 0
push 0x5df834
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], edi
call fcn.004a96a0
xor eax, eax
mov dword [edi], 0
push eax
push 0x5df834
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 7
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
call fcn.004a96a0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [esi], ax
jne 0x4c87f2
xor ecx, ecx
jmp 0x4c8806
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c87f7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004a96a0
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004c9170
mov edi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
test edi, edi
setns al
mov byte [ebp - 0x2dd], al
cmp ecx, 8
jb 0x4c885f
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004a9d40
mov al, byte [ebp - 0x2dd]
test al, al
je 0x4c8cd5
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
xor eax, eax
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x21c], 7
push eax
mov dword [ebp - 0x220], 0
call fcn.004a99e0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
mov edx, str._n_WaCLRHostUtils__invoke_:_funcName:_Execute__params:
lea ecx, [ebp - 0x248]
call fcn.004b06d0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 4
call fcn.004c35f0
mov ecx, eax
call fcn.004c0010
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4c890a
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a9d40
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4c8949
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a9d40
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x2a8]
push eax
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x228], 0
mov dword [ebp - 0x22c], 5
call fcn.004ad7b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x21c], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x220], 5
call fcn.004ab230
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], 1
push 0x5e0f40
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
call fcn.004a94b0
push str.libwapshost.WaPSHost
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 7
call fcn.004a94b0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x218]
mov byte [ebp - 0x2e4], 0
lea ecx, [ebp - 0x26c]
push dword [ebp - 0x2e4]
mov dword [ebp - 0x2dc], 0x66
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x26c], 0
push eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
call fcn.004ca2b0
push ecx
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.004c9ef0
mov ecx, eax
call fcn.004c5f10
mov edi, eax
mov dword [ebp - 0x2e4], edi
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xa
call fcn.004af330
mov eax, dword [ebp - 0x27c]
cmp eax, 8
jb 0x4c8ab8
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4c8af3
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a9d40
push fcn.004aa530
xor eax, eax
mov dword [ebp - 0x234], 7
push 2
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x230]
push 0xc
push eax
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 2
call fcn.0053ba33
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x254]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4c8cc2
test edi, edi
js 0x4c8cc2
mov dword [ebp - 0x2dc], 0
test eax, eax
jne 0x4c8b6b
call fcn.004af320
mov eax, dword [esi]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x5a143c]
mov ecx, dword [ebp - 0x254]
call esi
test al, al
je 0x4c8bc8
push 0
lea ecx, [ebp - 0x254]
call fcn.004aed20
mov edi, eax
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb4]
mov ecx, esi
call dword [0x5a143c]
mov ecx, edi
call esi
push eax
mov ecx, ebx
call fcn.004af000
lea ecx, [ebp - 0x248]
call fcn.004a9470
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x254]
sub ecx, edi
imul ecx
mov dword [ebp - 0x2dc], 1
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4c8bfa
call fcn.004af320
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x5a143c]
lea ecx, [edi + 0xc]
call esi
test al, al
je 0x4c8c41
push 1
lea ecx, [ebp - 0x254]
call fcn.004aed20
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb0]
mov ecx, esi
call dword [0x5a143c]
mov ecx, edi
call esi
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x250]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x254]
sub ecx, edi
imul ecx
mov dword [ebp - 0x2dc], 1
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4c8c73
call fcn.004af320
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x2dc]
push ecx
mov esi, dword [eax + 0x54]
mov ecx, esi
call dword [0x5a143c]
lea ecx, [edi + 0x18]
call esi
test al, al
je 0x4c8cbc
push 2
lea ecx, [ebp - 0x254]
call fcn.004aed20
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0xb0]
mov ecx, esi
call dword [0x5a143c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x2e8]
mov dword [ecx], eax
mov edi, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.004af330
mov byte [ebp - 4], 0
test edi, edi
jns 0x4c9129
mov edx, edi
lea ecx, [ebp - 0x260]
call fcn.004aa010
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0xc
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.004a99e0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xd
push eax
mov edx, str._nPowershell_Host_Execution_failed._Error:
lea ecx, [ebp - 0x278]
call fcn.004b06d0
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x290]
call fcn.004b0740
push esi
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x248]
call fcn.004b0550
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0x10
call fcn.004c35f0
mov ecx, eax
call fcn.004c0010
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4c8d93
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x238], 0
cmp eax, 8
jb 0x4c8dce
inc eax
lea ecx, [ebp - 0x290]
push eax
push dword [ebp - 0x290]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x280], 0
cmp eax, 8
jb 0x4c8e09
inc eax
lea ecx, [ebp - 0x278]
push eax
push dword [ebp - 0x278]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x268], 0
cmp eax, 8
jb 0x4c8e44
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4c8e82
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.004a9d40
cmp byte [ebp + 0x14], 0
je 0x4c9129
cmp edi, 0xffffffcf
je 0x4c9129
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056a7a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4c8ee7
mov eax, dword [0x5e0fd8]
movups xmm0, xmmword [str.C:Windows]
mov dword [ebp - 0x208], eax
mov ax, word [0x5e0fdc]
movups xmmword [ebp - 0x218], xmm0
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004a94b0
push str.System32WindowsPowerShell_v1.0powershell.exe
mov edx, eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x230]
call fcn.004b0740
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x13
call fcn.004a9470
push dword [ebp - 0x2ec]
lea ecx, [ebp - 0x290]
call fcn.004a94b0
push 0x5e1040
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a94b0
push 0x5dfa38
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
call fcn.004a94b0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x16
push eax
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x290]
call fcn.004b5f90
add esp, 4
lea ecx, [ebp - 0x248]
call fcn.004a9470
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a9470
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2dc], 0
push eax
mov edx, str._noprofile__ExecutionPolicy_Bypass__
lea ecx, [ebp - 0x278]
call fcn.004c51d0
push 0x5dfa38
mov edx, eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x248]
call fcn.004b0740
add esp, 8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0x18
sub esp, 8
mov edx, eax
push ecx
push ebx
lea ecx, [ebp - 0x230]
call fcn.00517ab0
add esp, 0x14
lea ecx, [ebp - 0x248]
mov edi, eax
call fcn.004a9470
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x14
call fcn.004a9470
test edi, edi
jns 0x4c90e4
mov edx, edi
lea ecx, [ebp - 0x2d8]
call fcn.004aa010
mov esi, eax
xor eax, eax
mov byte [ebp - 4], 0x19
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.004a99e0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 0x1a
push eax
mov edx, str._nSystem_Powershell_Execution_failed._Error:
lea ecx, [ebp - 0x2c0]
call fcn.004b06d0
push str.._Return_code:
mov edx, eax
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x260]
call fcn.004b0740
push esi
mov edx, eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x278]
call fcn.004b0550
add esp, 0xc
push 1
push eax
mov byte [ebp - 4], 0x1d
call fcn.004c35f0
mov ecx, eax
call fcn.004c0010
lea ecx, [ebp - 0x278]
call fcn.004a9470
lea ecx, [ebp - 0x260]
call fcn.004a9470
lea ecx, [ebp - 0x2c0]
call fcn.004a9470
lea ecx, [ebp - 0x248]
call fcn.004a9470
lea ecx, [ebp - 0x2d8]
call fcn.004a9470
jmp 0x4c9113
cmp dword [ebx + 0x14], 8
jb 0x4c90ee
mov ecx, dword [ebx]
jmp 0x4c90f0
mov ecx, ebx
call fcn.004b4750
test al, al
je 0x4c9113
cmp dword [ebx + 0x14], 8
jb 0x4c9103
mov ecx, dword [ebx]
jmp 0x4c9105
mov ecx, ebx
push ebx
mov edx, str._.__r_n
call fcn.004b45a0
add esp, 4
lea ecx, [ebp - 0x290]
call fcn.004a9470
lea ecx, [ebp - 0x230]
call fcn.004a9470
mov eax, dword [ebp - 0x294]
cmp eax, 8
jb 0x4c9147
inc eax
lea ecx, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2a8]
call fcn.004a9d40
mov eax, edi
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.0053b526
mov esp, ebp
pop ebp
ret 0x14