Function at 0x471607
Capabilities:
Get common file path
Get program files directory
Persist via run registry key

Disassembly:
push 0x134
mov eax, 0x5bdc27
call fcn.00595e89
and dword [ebp - 0x124], 0
mov ebx, str._windows_
push ebx
xor ecx, ecx
mov esi, edi
call fcn.0040b731
cmp eax, 0xffffffff
je 0x471645
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x471669
mov ebx, str._system_
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x47168a
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x471d51
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
jmp 0x471d51
mov ebx, str._temp_
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x4716c9
lea esi, [ebp - 0x120]
call fcn.0040c4a8
and dword [ebp - 4], 0
push dword [eax]
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
jmp 0x471d4c
mov ebx, str._programfiles_
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x47179d
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x120]
call fcn.004015a6
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.004048be
mov byte [ebp - 4], 2
xor esi, esi
push esi
push 0x26
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x471724
lea eax, [ebp - 0x118]
jmp 0x47177b
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.ProgramFilesDir
call fcn.004015a6
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
call fcn.004728d1
add esp, 0x10
cmp eax, esi
je 0x471789
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x471789
push eax
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.00401752
jmp 0x4716ba
mov ebx, str._local_appdata_
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x471866
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.004015a6
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.004048be
mov byte [ebp - 4], 6
xor esi, esi
push esi
push 0x1c
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4717f8
lea eax, [ebp - 0x118]
jmp 0x47184f
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.Local_AppData
call fcn.004015a6
mov byte [ebp - 4], 7
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 8
push SysReAllocString
mov byte [ebp - 4], 6
call fcn.004728d1
add esp, 0x10
cmp eax, esi
je 0x47185d
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x47185d
push eax
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 5
jmp 0x47178d
mov ebx, str._appdata_
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x47192f
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.004015a6
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x11c]
call fcn.004048be
mov byte [ebp - 4], 0xa
xor esi, esi
push esi
push 0x1a
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4718c1
lea eax, [ebp - 0x118]
jmp 0x471918
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.AppData
call fcn.004015a6
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 0xc
push SysReAllocString
mov byte [ebp - 4], 0xa
call fcn.004728d1
add esp, 0x10
cmp eax, esi
je 0x471926
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x471926
push eax
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 9
jmp 0x47178d
push str._mydocuments_
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x4719fd
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.004015a6
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x11c]
call fcn.004048be
mov byte [ebp - 4], 0xe
xor esi, esi
push esi
push 5
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x47198f
lea eax, [ebp - 0x118]
push eax
push str._mydocuments_
jmp 0x4719e8
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.Personal
call fcn.004015a6
mov byte [ebp - 4], 0xf
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 0x10
push SysReAllocString
mov byte [ebp - 4], 0xe
call fcn.004728d1
add esp, 0x10
cmp eax, esi
je 0x4719f4
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x4719f4
push eax
push ebx
push edi
call fcn.00413e10
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xd
jmp 0x47178d
mov ebx, str._reg:
push ebx
xor ecx, ecx
call fcn.0040b731
cmp eax, 0xffffffff
je 0x471d51
push ebx
xor ecx, ecx
call fcn.0040b731
lea ebx, [eax + 5]
push 0x634588
mov ecx, ebx
mov dword [ebp - 0x120], eax
call fcn.0040b731
test eax, eax
mov dword [ebp - 0x130], eax
jge 0x471a97
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.CCoreSystem::ReplaceSystemVars
call fcn.004015a6
mov dword [ebp - 4], 0x11
push 0xd0
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push str..CoreSystem.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.Ending___not_found_
call fcn.004015a6
mov byte [ebp - 4], 0x13
push 1
or dword [ebp - 4], 0xffffffff
call fcn.0040abe3
jmp 0x471d51
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
call fcn.0040be93
mov dword [ebp - 4], 0x14
lea eax, [ebp - 0x11c]
push eax
lea esi, [ebp - 0x12c]
call fcn.004721ee
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax - 0xc]
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
mov ecx, esi
call fcn.0040be39
mov byte [ebp - 4], 0x16
push eax
mov ecx, esi
call fcn.004048fa
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x128]
call fcn.00401752
push 0x5c
mov ecx, esi
call fcn.0040b75f
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040be39
mov byte [ebp - 4], 0x17
push 0x6345d4
push dword [ebp - 0x134]
call fcn.0058d09d
test eax, eax
pop ecx
pop ecx
jne 0x471b45
push 0x61b5f4
lea ecx, [ebp - 0x134]
call fcn.004014d3
push esi
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040ddca
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x12c]
call fcn.004048fa
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x128]
call fcn.00401752
lea ecx, [ebp - 0x138]
call fcn.004048be
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x138]
push eax
push ecx
lea eax, [ebp - 0x134]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 0x1a
push ecx
lea eax, [ebp - 0x12c]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 0x1b
push ecx
lea eax, [ebp - 0x11c]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x19
call fcn.0047283b
add esp, 0x10
test eax, eax
je 0x471c63
mov eax, dword [ebp - 0x138]
cmp dword [eax - 0xc], 0
je 0x471c63
mov eax, dword [ebp - 0x130]
sub eax, dword [ebp - 0x120]
push dword [ebp - 0x120]
inc eax
push edi
call fcn.00411487
push dword [ebp - 0x138]
mov eax, dword [ebp - 0x120]
push edi
call fcn.004114fd
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x138]
call fcn.00401752
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x134]
call fcn.00401752
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x11c]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00401752
xor eax, eax
inc eax
jmp 0x471d57
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.CCoreSystem::ReplaceSystemVars
call fcn.004015a6
mov byte [ebp - 4], 0x1d
push 0xea
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str..CoreSystem.cpp
call fcn.004015a6
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x128]
push str.Failed_to_read_value_from
push eax
lea ecx, [ebp - 0x12c]
call fcn.004046a1
mov byte [ebp - 4], 0x1f
push 0x6345e0
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0040463d
mov byte [ebp - 4], 0x20
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x120], esp
lea edx, [ebp - 0x134]
push edx
push eax
push ecx
call fcn.004045e6
add esp, 0xc
mov byte [ebp - 4], 0x21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 0x23
call fcn.0040abe3
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x130]
call fcn.00401752
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x128]
call fcn.00401752
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x138]
call fcn.00401752
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x134]
call fcn.00401752
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x11c]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00401752
mov eax, dword [ebp - 0x124]
call fcn.00595f0c
ret