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

Disassembly:
push 0x138
mov eax, 0x50ce57
call fcn.004e25f2
cmp dword [ebp + 8], 0
je 0x41b3d5
call fcn.0041ce7d
and dword [ebp - 0x124], 0
mov ebx, str._windows_
push ebx
xor ecx, ecx
mov esi, edi
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b404
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x41b428
mov ebx, str._system_
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b449
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x41bccc
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
jmp 0x41bccc
mov ebx, str._temp_
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b47e
lea esi, [ebp - 0x120]
call fcn.00413447
and dword [ebp - 4], 0
push dword [eax]
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
jmp 0x41bcbd
mov ebx, str._programfiles_
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b548
push 0x522e10
lea ecx, [ebp - 0x120]
call fcn.00401769
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x11c]
call fcn.00404312
mov byte [ebp - 4], 2
push 0
push 0x26
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x41b4d8
lea eax, [ebp - 0x118]
jmp 0x41b531
push esi
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.ProgramFilesDir
call fcn.00401769
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
call fcn.0041e90f
add esp, 0x14
test eax, eax
je 0x41b53f
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], 0
je 0x41b53f
push eax
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 1
jmp 0x41bcb2
mov ebx, str._local_appdata_
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b613
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.00401769
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x11c]
call fcn.00404312
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 0x41b5a3
lea eax, [ebp - 0x118]
jmp 0x41b5fc
push 1
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.Local_AppData
call fcn.00401769
mov byte [ebp - 4], 7
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 8
push SysReAllocString
mov byte [ebp - 4], 6
call fcn.0041e90f
add esp, 0x14
cmp eax, esi
je 0x41b60a
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x41b60a
push eax
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 5
jmp 0x41bcb2
mov ebx, str._appdata_
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b6de
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.00401769
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x11c]
call fcn.00404312
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 0x41b66e
lea eax, [ebp - 0x118]
jmp 0x41b6c7
push 1
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.AppData
call fcn.00401769
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0xc
push SysReAllocString
mov byte [ebp - 4], 0xa
call fcn.0041e90f
add esp, 0x14
cmp eax, esi
je 0x41b6d5
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x41b6d5
push eax
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 9
jmp 0x41bcb2
push str._programdata_
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b7ac
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.00401769
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x11c]
call fcn.00404312
mov byte [ebp - 4], 0xe
xor esi, esi
push esi
push 0x23
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x41b738
lea eax, [ebp - 0x118]
jmp 0x41b791
push 1
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.Common_AppData
call fcn.00401769
mov byte [ebp - 4], 0xf
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x10
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 0xe
call fcn.0041e90f
add esp, 0x14
cmp eax, esi
je 0x41b7a3
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x41b7a3
push eax
push str._programdata_
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0xd
jmp 0x41bcb2
push str._mydocuments_
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41b87c
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.00401769
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x11c]
call fcn.00404312
mov byte [ebp - 4], 0x12
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 0x41b80c
lea eax, [ebp - 0x118]
push eax
push str._mydocuments_
jmp 0x41b867
push 1
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.Personal
call fcn.00401769
mov byte [ebp - 4], 0x13
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x14
push SysReAllocString
mov byte [ebp - 4], 0x12
call fcn.0041e90f
add esp, 0x14
cmp eax, esi
je 0x41b873
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x41b873
push eax
push ebx
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0x11
jmp 0x41bcb2
push str._desktop_
xor ecx, ecx
call fcn.0041271e
mov ebx, str._desktopdir_
cmp eax, 0xffffffff
jne 0x41bbc8
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
jne 0x41bbc8
mov ebx, str._reg:
push ebx
xor ecx, ecx
call fcn.0041271e
cmp eax, 0xffffffff
je 0x41bccc
push ebx
xor ecx, ecx
call fcn.0041271e
lea ebx, [eax + 5]
push 0x522f24
mov ecx, ebx
mov dword [ebp - 0x138], eax
call fcn.0041271e
mov dword [ebp - 0x130], eax
test eax, eax
jge 0x41b941
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.CCoreSystem::ReplaceSystemVars
call fcn.00401769
mov dword [ebp - 4], 0x19
push 0xfe
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push str..CoreSystem.cpp
call fcn.00401769
mov byte [ebp - 4], 0x1a
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.Ending___not_found_
call fcn.00401769
mov byte [ebp - 4], 0x1b
push 1
or dword [ebp - 4], 0xffffffff
call fcn.0041129b
jmp 0x41bccc
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
call fcn.00407f8a
mov dword [ebp - 4], 0x1c
lea eax, [ebp - 0x120]
push eax
lea esi, [ebp - 0x12c]
call fcn.0041c4a1
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x120]
mov eax, dword [eax - 0xc]
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
mov ecx, esi
call fcn.00411e4e
mov byte [ebp - 4], 0x1e
push eax
mov ecx, esi
call fcn.004043ce
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x128]
call fcn.00401898
push 0x5c
mov ecx, esi
call fcn.0041274c
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00411e4e
mov byte [ebp - 4], 0x1f
push 0x522f70
lea ecx, [ebp - 0x134]
call fcn.00403fee
test eax, eax
jne 0x41b9ed
push 0x51d067
lea ecx, [ebp - 0x134]
call fcn.00401732
push esi
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004133f6
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp - 0x12c]
call fcn.004043ce
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x128]
call fcn.00401898
lea ecx, [ebp - 0x11c]
call fcn.00404312
mov byte [ebp - 4], 0x21
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x11c]
push eax
push ecx
lea eax, [ebp - 0x134]
mov ecx, esp
mov dword [ebp - 0x128], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x22
push ecx
lea eax, [ebp - 0x12c]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x23
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x24
mov byte [ebp - 4], 0x21
call fcn.0041e876
add esp, 0x14
test eax, eax
je 0x41bad6
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], 0
je 0x41bad6
mov eax, dword [ebp - 0x130]
sub eax, dword [ebp - 0x138]
push dword [ebp - 0x138]
inc eax
push edi
call fcn.00412d88
push dword [ebp - 0x11c]
mov eax, dword [ebp - 0x138]
push edi
call fcn.00412dfe
mov dword [ebp - 0x124], esi
jmp 0x41bb8c
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.CCoreSystem::ReplaceSystemVars
call fcn.00401769
mov byte [ebp - 4], 0x25
push 0x118
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str..CoreSystem.cpp
call fcn.00401769
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
push str.Failed_to_read_value_from
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 0x27
push 0x522f7c
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00404094
mov byte [ebp - 4], 0x28
add esp, 8
mov ecx, esp
mov dword [ebp - 0x138], esp
lea edx, [ebp - 0x134]
push edx
push eax
push ecx
call fcn.0040403d
add esp, 0xc
mov byte [ebp - 4], 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 0x2b
call fcn.0041129b
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x130]
call fcn.00401898
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x128]
call fcn.00401898
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x11c]
call fcn.00401898
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x134]
call fcn.00401898
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x120]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
jmp 0x41bcc7
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x120]
call fcn.00401769
mov dword [ebp - 4], 0x15
lea ecx, [ebp - 0x11c]
call fcn.00404312
mov byte [ebp - 4], 0x16
xor esi, esi
push esi
push 0x10
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x41bc24
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
call fcn.0040c20e
test eax, eax
jne 0x41bca4
lea eax, [ebp - 0x118]
push eax
jmp 0x41bc8f
push 1
lea eax, [ebp - 0x11c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push 0x522f14
call fcn.00401769
mov byte [ebp - 4], 0x17
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x18
push SysReAllocString
mov byte [ebp - 4], 0x16
call fcn.0041e90f
add esp, 0x14
cmp eax, esi
je 0x41bcae
mov eax, dword [ebp - 0x11c]
cmp dword [eax - 0xc], esi
je 0x41bcae
push eax
push ebx
push edi
call fcn.0040c20e
test eax, eax
jne 0x41bca4
push dword [ebp - 0x11c]
push str._desktop_
push edi
call fcn.0040c20e
mov dword [ebp - 0x124], esi
test eax, eax
je 0x41bcae
mov dword [ebp - 0x124], 1
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x11c]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00401898
cmp dword [ebp + 8], 0
je 0x41bcd7
call fcn.0040dffe
mov eax, dword [ebp - 0x124]
call fcn.004e2675
ret