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

Disassembly:
push 0xffffffffffffffff
push 0x42b711
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
mov al, byte [0x4399d0]
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 0x410bc9
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push 7
push ebx
call eax
test eax, eax
jne 0x410bc9
lea edx, [esp + 0x30]
mov ecx, ebp
push edx
call fcn.00420e8a
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push 0x18
push ebx
call dword [esi + 0x5c]
test eax, eax
jne 0x410bc9
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x4c]
call fcn.00420e8a
jmp 0x410dda
lea eax, [esi + 0x54]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x410dda
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 0x410c0d
lea eax, [esp + 0x10]
push eax
jmp 0x410c12
lea ecx, [esp + 0x10]
push ecx
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 7
push ebx
call edi
cmp eax, ebx
jne 0x410c8e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x410c41
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00420e8a
cmp dword [esp + 0x144], 1
jne 0x410c52
lea edx, [esp + 0x10]
push edx
jmp 0x410c57
lea eax, [esp + 0x10]
push eax
push 0x18
push ebx
call edi
cmp eax, ebx
jne 0x410dc1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x410dc1
lea eax, [esp + 0x30]
lea ecx, [esi + 0x4c]
push eax
call fcn.00420e8a
jmp 0x410dc1
push 0x4399d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x24], ebx
call fcn.00420dbb
mov eax, dword [esp + 0x144]
mov dword [esp + 0x2d4], ebx
cmp eax, 1
jne 0x410ccb
mov edi, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
jmp 0x410cd5
mov edi, 0x80000003
push str..DefaultSoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0x18]
call fcn.00420e8a
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 0x410d45
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 0x410d38
lea ecx, [esp + 0x1c8]
push ecx
mov ecx, ebp
call fcn.00420e8a
push ebp
lea ecx, [esi + 0x4c]
call fcn.00420e3a
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410dad
push str.Startup
lea ecx, [esp + 0x20]
call fcn.00420dbb
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.0040d540
add esp, 0x10
push eax
mov ecx, ebp
mov byte [esp + 0x2d8], 2
call fcn.00420e3a
push eax
lea ecx, [esi + 0x4c]
call fcn.00420e3a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d4], 1
call fcn.00420d4d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], bl
call fcn.00420d4d
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.00420d4d
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