Function at 0x41f9ca
Capabilities:
Get common file path
Get startup folder
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x457494
call fcn.004324bc
sub esp, 0x2bc
mov al, byte [0x4747d0]
push ebx
push esi
push edi
mov esi, ecx
push 0x40
mov byte [ebp - 0x130], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1c], esi
je 0x41fa4e
lea ecx, [ebp - 0x130]
push ecx
push ebx
push ebx
push 7
push ebx
call eax
test eax, eax
jne 0x41fa4e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.004483c4
lea eax, [ebp - 0x130]
push eax
push ebx
push ebx
push 0x18
push ebx
call dword [esi + 0x54]
test eax, eax
jne 0x41fa4e
lea eax, [ebp - 0x130]
lea ecx, [esi + 0x48]
push eax
call fcn.004483c4
jmp 0x41fb0c
lea edi, [esi + 0x4c]
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41fb0c
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x1c4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x1b4], 1
lea eax, [ebp - 0x10]
push eax
push 7
push ebx
call esi
cmp eax, ebx
jne 0x41fb1d
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x41fac0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.004483c4
cmp dword [ebp - 0x1b4], 1
lea eax, [ebp - 0x10]
push eax
push 0x18
push ebx
call esi
cmp eax, ebx
jne 0x41faf6
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x41faf6
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x48]
call fcn.004483c4
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
push 0x4747d0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x20], ebx
call fcn.004482f5
cmp dword [ebp - 0x1b4], 1
mov dword [ebp - 4], ebx
jne 0x41fb4f
mov esi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x41fb59
mov esi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x18]
call fcn.004483c4
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41fbc3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.StartUp
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fbb8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c8]
push eax
call fcn.004483c4
mov eax, dword [ebp - 0x1c]
push dword [ebp + 8]
lea ecx, [eax + 0x48]
call fcn.00448374
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41fc1b
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Startup
call fcn.004482f5
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea eax, [esi + 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00447ffc
lea eax, [ebp - 0x28]
mov byte [ebp - 4], bl
push eax
call fcn.0040bffd
add esp, 0x10
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00448374
push eax
lea ecx, [esi + 0x48]
call fcn.00448374
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00448287
jmp 0x41faf9