Function at 0x40fe10
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4526d2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1f4], esi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x1f0], 0
call dword [sym.imp.PsfRuntime32.dll__PSFQueryStartScriptInfo_0]
mov edi, eax
mov dword [ebp - 0x1fc], edi
call dword [sym.imp.PsfRuntime32.dll__PSFQueryEndScriptInfo_0]
mov dword [ebp - 0x218], eax
test edi, edi
jne 0x40fe8e
test eax, eax
je 0x40fff1
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f8], eax
test eax, eax
je 0x40fee5
mov byte [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 2
push dword [ebp - 0x1f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x1f4]
push 0
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1ec], 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftPowerShell1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, 2
jne 0x40ff3e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x40ff32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1ec], 1
jmp 0x40ffd1
test eax, eax
jne 0x41061e
push str.Error_with_querying_the_key_to_see_if_PowerShell_is_installed.
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x200], 4
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x204], 4
push eax
push 0
push str.Install
push dword [ebp - 0x1ec]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov eax, dword [ebp + 4]
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherPsfPowershellScriptRunner.h
push 0x1dd
push eax
call fcn.0040f700
add esp, 0x14
cmp dword [ebp - 0x208], 1
je 0x40ffb2
jmp 0x40ff1a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x40ffca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x1ec], 0
mov eax, dword [ebp + 4]
push str.PowerShell_is_not_installed.__Please_install_PowerShell_to_run_scripts_in_PSF
push dword [ebp - 0x1ec]
push 0x32
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherPsfPowershellScriptRunner.h
push 0x1d
push eax
call fcn.0040f740
add esp, 0x18
mov eax, dword [esi]
push str.stopOnScriptError
mov byte [ebp - 0x1ec], 0
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, dword [ebp - 0x1f4]
call esi
test eax, eax
jne 0x410034
test edi, edi
je 0x410054
mov eax, dword [edi]
push str.stopOnScriptError
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
test eax, eax
je 0x410054
mov ecx, eax
call fcn.0040d090
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
mov byte [ebp - 0x1ec], al
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x4623e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00404650
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0x1f4]
push str.scriptExecutionMode
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
test eax, eax
je 0x4100cf
mov ecx, eax
call fcn.0040cf40
mov edi, eax
lea eax, [ebp - 0x1f8]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
push dword [ebp - 0x1f8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00415750
lea eax, [ebp - 0x70]
mov dword [ebp - 0x204], eax
mov byte [ebp - 4], 7
mov byte [ebp - 4], 8
xorps xmm0, xmm0
push 0x2e
push str.LocalCacheLocalMicrosoftWritablePackageRoot
mov ecx, eax
mov dword [ebp - 0x60], 0
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
call fcn.00404650
mov esi, 2
mov dword [ebp - 0x1f0], 2
mov dword [ebp - 0x1f0], esi
and esi, 0xfffffffd
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 4], 7
or esi, 1
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 6
and esi, 0xfffffffe
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x58]
mov edx, dword [sym.imp.KERNEL32.dll_GetCurrentPackageFamilyName]
call fcn.0040d510
or esi, 4
xor eax, eax
mov dword [ebp - 0x1f0], esi
movups xmm0, xmmword [ebp - 0x58]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x88], xmm0
mov word [ebp - 0x58], ax
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x78], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
xorps xmm0, xmm0
push 8
push str.Packages
mov ecx, eax
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00404650
or esi, 0x10
mov dword [ebp - 0x1f0], esi
and esi, 0xffffffef
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 4], 0xd
or esi, 8
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0xc
and esi, 0xfffffff7
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0xf
push ecx
lea ecx, [ebp - 0x100]
call fcn.0040fac0
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xb8]
push eax
call fcn.00404240
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x40]
or esi, 0x20
lea ecx, [ebp - 0xb8]
push eax
mov dword [ebp - 0x1f0], esi
call fcn.0040b930
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404240
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x88]
or esi, 0x40
lea ecx, [ebp - 0xa0]
push eax
mov dword [ebp - 0x1f0], esi
call fcn.0040b930
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xe8]
call fcn.0040bdf0
add esp, 4
mov byte [ebp - 4], 0x15
and esi, 0xffffffbf
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xa0]
call fcn.00404310
and esi, 0xffffffdf
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xb8]
call fcn.00404310
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x100]
call fcn.00404310
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x40]
call fcn.00404310
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x88]
call fcn.00404310
and esi, 0xfffffffb
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x58]
call fcn.00404310
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x70]
call fcn.00404310
mov edi, dword [ebp - 0x1fc]
test edi, edi
je 0x410482
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00404240
mov byte [ebp - 4], 0x23
mov eax, dword [edi]
push str.scriptExecutionMode
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
test eax, eax
je 0x410376
mov ecx, eax
call fcn.0040cf40
mov edi, eax
lea eax, [ebp - 0x1f4]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0xd0]
push eax
call fcn.00415750
mov edi, dword [ebp - 0x1fc]
sub esp, 0x18
lea eax, [ebp - 0xe8]
mov ecx, esp
mov dword [ebp - 0x204], esp
mov dword [ebp - 0x200], ecx
push eax
call fcn.00404240
mov byte [ebp - 4], 0x25
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f8], esp
mov dword [ebp - 0x208], ecx
push dword [ebp - 0x20c]
call fcn.00404240
mov byte [ebp - 4], 0x27
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f4], esp
mov dword [ebp - 0x21c], ecx
push dword [ebp - 0x210]
call fcn.00404240
mov byte [ebp - 4], 0x29
sub esp, 0x18
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00404240
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x174]
push dword [ebp - 0x1ec]
push edi
push eax
mov byte [ebp - 4], 0x23
call fcn.00410a60
mov byte [ebp - 4], 0x2b
mov esi, dword [ebp - 0x214]
mov ecx, esi
push eax
call fcn.004123d0
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 0x2e
mov ecx, eax
call fcn.00404310
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x134]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 0x2d
mov ecx, eax
call fcn.00404310
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x15c]
call fcn.00404310
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x174]
call fcn.00404310
mov byte [esi + 0x70], 1
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xd0]
call fcn.00404310
mov edi, dword [ebp - 0x218]
test edi, edi
je 0x4105e3
mov eax, dword [edi]
push str.scriptExecutionMode
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
test eax, eax
je 0x4104e0
mov ecx, eax
call fcn.0040cf40
mov edi, eax
lea eax, [ebp - 0x1fc]
push eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00415750
mov edi, dword [ebp - 0x218]
sub esp, 0x18
lea eax, [ebp - 0xe8]
mov ecx, esp
mov dword [ebp - 0x224], esp
mov dword [ebp - 0x220], ecx
push eax
call fcn.00404240
mov byte [ebp - 4], 0x33
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x204], ecx
push dword [ebp - 0x20c]
call fcn.00404240
mov byte [ebp - 4], 0x35
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x200], esp
mov dword [ebp - 0x1f8], ecx
push dword [ebp - 0x210]
call fcn.00404240
mov byte [ebp - 4], 0x37
sub esp, 0x18
lea eax, [ebp - 0x28]
mov dword [ebp - 0x210], esp
mov ecx, esp
push eax
call fcn.00404240
mov byte [ebp - 4], 0x38
lea eax, [ebp - 0x1e8]
push 0
push edi
push eax
mov byte [ebp - 4], 0x21
call fcn.00410a60
mov byte [ebp - 4], 0x39
mov esi, dword [ebp - 0x214]
push eax
lea ecx, [esi + 0x74]
call fcn.004123d0
mov byte [ebp - 4], 0x3c
lea eax, [ebp - 0x190]
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 0x3c
mov ecx, eax
call fcn.00404310
mov byte [ebp - 4], 0x3b
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 0x3b
mov ecx, eax
call fcn.00404310
mov byte [ebp - 4], 0x3a
lea ecx, [ebp - 0x1d0]
call fcn.00404310
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1e8]
call fcn.00404310
mov byte [esi + 0xe4], 1
mov word [esi + 0xb0], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe8]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
ret 0xc
jle 0x410628
movzx eax, ax
or eax, 0x80070000
push str.Error_with_getting_the_key_to_see_if_PowerShell_is_installed.
mov ecx, eax
call fcn.00401ee0
push eax
mov eax, dword [ebp + 4]
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherPsfPowershellScriptRunner.h
push 0x1d6
push eax
call fcn.0040f6d0
int3