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

Disassembly:
push 0xffffffffffffffff
push 0x4324d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
mov al, byte [0x444d08]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0x30], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [esp + 0x2dc]
xor ebx, ebx
stosb byte es:[edi], al
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x407a79
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push 7
push ebx
call eax
test eax, eax
jne 0x407a79
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
call fcn.004274a1
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push 0x18
push ebx
call dword [esi + 0x5c]
test eax, eax
jne 0x407a79
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x4c]
call fcn.004274a1
jmp 0x407c8a
lea eax, [esi + 0x54]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x407c8a
lea edx, [esp + 0x134]
mov dword [esp + 0x10], ebx
push edx
mov dword [esp + 0x138], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x144], 1
jne 0x407abd
lea eax, [esp + 0x10]
push eax
jmp 0x407ac2
lea ecx, [esp + 0x10]
push ecx
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 7
push ebx
call edi
cmp eax, ebx
jne 0x407b3e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x407af1
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004274a1
cmp dword [esp + 0x144], 1
jne 0x407b02
lea edx, [esp + 0x10]
push edx
jmp 0x407b07
lea eax, [esp + 0x10]
push eax
push 0x18
push ebx
call edi
cmp eax, ebx
jne 0x407c71
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x407c71
lea eax, [esp + 0x30]
lea ecx, [esi + 0x4c]
push eax
call fcn.004274a1
jmp 0x407c71
push 0x444d08
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x24], ebx
call fcn.00427386
mov eax, dword [esp + 0x144]
mov dword [esp + 0x2d4], ebx
cmp eax, 1
jne 0x407b7b
mov edi, reloc.WSOCK32.dll_accept
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x407b85
mov edi, reloc.WSOCK32.dll_closesocket
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0x18]
call fcn.004274a1
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bf5
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c8]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push str.StartUp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407be8
lea ecx, [esp + 0x1c8]
push ecx
mov ecx, ebp
call fcn.004274a1
push ebp
lea ecx, [esi + 0x4c]
call fcn.00427451
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407c5d
push str.Startup
lea ecx, [esp + 0x20]
call fcn.00427386
lea eax, [esp + 0x1c]
push 1
lea ecx, [esi + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x2e4], 1
call fcn.004050b0
add esp, 0x10
push eax
mov ecx, ebp
mov byte [esp + 0x2d8], 2
call fcn.00427451
push eax
lea ecx, [esi + 0x4c]
call fcn.00427451
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d4], 1
call fcn.00427318
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], bl
call fcn.00427318
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.00427318
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c8
ret 4