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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x473018]
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 - 0x208], 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
call dword [sym.imp.PsfRuntime32.dll__PSFQueryEndScriptInfo_0]
mov dword [ebp - 0x200], eax
test edi, edi
jne 0x40fbb8
test eax, eax
je 0x40fd1f
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1f8], eax
test eax, eax
je 0x40fc15
mov byte [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x21c], 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 [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x40fc6a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x40fc5e
push eax
call esi
mov byte [ebp - 0x1ec], 1
jmp 0x40fcf9
test eax, eax
jne 0x4102e2
push str.Error_with_querying_the_key_to_see_if_PowerShell_is_installed.
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x214], 4
push eax
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x1fc], 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.0040f430
add esp, 0x14
cmp dword [ebp - 0x204], 1
je 0x40fcde
jmp 0x40fc4a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ec]
test eax, eax
je 0x40fcf2
push eax
call esi
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.0040f470
mov esi, dword [ebp - 0x1f4]
add esp, 0x18
mov eax, dword [esi]
mov ecx, esi
push str.stopOnScriptError
mov byte [ebp - 0x1ec], 0
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
jne 0x40fd4e
test edi, edi
je 0x40fd64
mov eax, dword [edi]
mov ecx, edi
push str.stopOnScriptError
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x40fd64
mov ecx, eax
call fcn.0040cdf0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 0x1ec], al
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x45f880
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00404580
mov dword [ebp - 4], 6
mov ecx, esi
mov eax, dword [esi]
push str.scriptExecutionMode
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x40fdc7
mov ecx, eax
call fcn.0040ccb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
lea ecx, [ebp - 0x1f4]
push ecx
mov ecx, eax
call edx
push dword [ebp - 0x1f4]
lea ecx, [ebp - 0x28]
push eax
call fcn.00416ef0
lea eax, [ebp - 0x70]
mov dword [ebp - 0x1f4], 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.00404580
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.0040d230
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 - 0x1fc], 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.00404580
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.0040f7f0
add esp, 4
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xb8]
push eax
call fcn.00403fa0
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.0040b680
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00403fa0
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.0040b680
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0xe8]
call fcn.0040bb70
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.004040c0
and esi, 0xffffffdf
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0xb8]
call fcn.004040c0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x100]
call fcn.004040c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x40]
call fcn.004040c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x88]
call fcn.004040c0
and esi, 0xfffffffb
mov dword [ebp - 0x1f0], esi
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x58]
call fcn.004040c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x70]
call fcn.004040c0
test edi, edi
je 0x41015e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00403fa0
mov byte [ebp - 4], 0x23
mov ecx, edi
mov eax, dword [edi]
push str.scriptExecutionMode
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x410050
mov ecx, eax
call fcn.0040ccb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, eax
call edx
push dword [ebp - 0x1f8]
lea ecx, [ebp - 0xd0]
push eax
call fcn.00416ef0
sub esp, 0x18
lea eax, [ebp - 0xe8]
mov ecx, esp
mov dword [ebp - 0x1f4], esp
mov dword [ebp - 0x1fc], ecx
push eax
call fcn.00403fa0
mov byte [ebp - 4], 0x25
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x214], esp
mov dword [ebp - 0x1f8], ecx
push dword [ebp - 0x20c]
call fcn.00403fa0
mov byte [ebp - 4], 0x27
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x204], esp
mov dword [ebp - 0x218], ecx
push dword [ebp - 0x210]
call fcn.00403fa0
mov byte [ebp - 4], 0x29
sub esp, 0x18
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x21c], esp
mov ecx, esp
push eax
call fcn.00403fa0
mov byte [ebp - 4], 0x2a
lea eax, [ebp - 0x174]
push dword [ebp - 0x1ec]
push edi
push eax
mov byte [ebp - 4], 0x23
call fcn.00410720
mov byte [ebp - 4], 0x2b
mov edi, dword [ebp - 0x208]
mov ecx, edi
push eax
call fcn.00411fc0
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 0x2e
mov ecx, eax
call fcn.004040c0
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x134]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 0x2d
mov ecx, eax
call fcn.004040c0
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x15c]
call fcn.004040c0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x174]
call fcn.004040c0
mov byte [edi + 0x70], 1
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xd0]
call fcn.004040c0
jmp 0x410164
mov edi, dword [ebp - 0x208]
mov esi, dword [ebp - 0x200]
test esi, esi
je 0x4102a7
mov eax, dword [esi]
mov ecx, esi
push str.scriptExecutionMode
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x4101aa
mov ecx, eax
call fcn.0040ccb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
lea ecx, [ebp - 0x200]
push ecx
mov ecx, eax
call edx
push dword [ebp - 0x200]
lea ecx, [ebp - 0x28]
push eax
call fcn.00416ef0
sub esp, 0x18
lea eax, [ebp - 0xe8]
mov ecx, esp
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x218], ecx
push eax
call fcn.00403fa0
mov byte [ebp - 4], 0x33
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x200], esp
mov dword [ebp - 0x1f4], ecx
push dword [ebp - 0x20c]
call fcn.00403fa0
mov byte [ebp - 4], 0x35
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1fc], esp
mov dword [ebp - 0x214], ecx
push dword [ebp - 0x210]
call fcn.00403fa0
mov byte [ebp - 4], 0x37
sub esp, 0x18
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1f8], esp
mov ecx, esp
push eax
call fcn.00403fa0
mov byte [ebp - 4], 0x38
lea eax, [ebp - 0x1e8]
push 0
push esi
push eax
mov byte [ebp - 4], 0x21
call fcn.00410720
mov byte [ebp - 4], 0x39
lea ecx, [edi + 0x74]
push eax
call fcn.00411fc0
mov byte [ebp - 4], 0x3c
lea eax, [ebp - 0x190]
mov dword [ebp - 0x210], eax
mov byte [ebp - 4], 0x3c
mov ecx, eax
call fcn.004040c0
mov byte [ebp - 4], 0x3b
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 0x3b
mov ecx, eax
call fcn.004040c0
mov byte [ebp - 4], 0x3a
lea ecx, [ebp - 0x1d0]
call fcn.004040c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x1e8]
call fcn.004040c0
mov byte [edi + 0xe4], 1
mov word [edi + 0xb0], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe8]
call fcn.004040c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004040c0
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.00432e76
mov esp, ebp
pop ebp
ret 0xc
jle 0x4102ec
movzx eax, ax
or eax, 0x80070000
push str.Error_with_getting_the_key_to_see_if_PowerShell_is_installed.
mov ecx, eax
call fcn.00401e70
push eax
mov eax, dword [ebp + 4]
push str.C:ReleaseAI_toolsmsix_psfPsfLauncherPsfPowershellScriptRunner.h
push 0x1d6
push eax
call fcn.0040f400
int3