Function at 0x406fc4
Capabilities:
Copy file
Persist via run registry key
Read .ini file
Set file attributes
Set registry value

Disassembly:
mov eax, 0x41ac5c
call fcn.00411544
mov eax, 0x1538
call fcn.00411720
push ebx
push esi
push edi
call fcn.00401046
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00407474
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
test eax, eax
jne 0x407215
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x543]
mov byte [ebp - 0x544], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x41f6ac
push edi
push dword [ebp + 8]
call fcn.004120e4
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x407088
lea eax, [ebp - 0x544]
push 0x4230e0
push eax
call fcn.00410f20
pop ecx
pop ecx
push dword [ebp + 8]
test eax, eax
jne 0x40706c
lea eax, [ebp - 0x544]
push str._s_
push eax
call esi
add esp, 0xc
jmp 0x407084
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x544]
push str._s_s_
push eax
call esi
add esp, 0x10
push edi
push ebx
jmp 0x407031
cmp dword [ebp + 0xc], ebx
je 0x40709f
lea eax, [ebp - 0x544]
push str._AFTERREBOOT1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x943]
mov byte [ebp - 0x944], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x1420]
dec eax
je 0x40710c
dec eax
je 0x4070fe
dec eax
je 0x4070e4
dec eax
je 0x4070dd
dec eax
je 0x4070d6
push 0x4230e0
jmp 0x407111
push 0x41f688
jmp 0x407111
push 0x41f684
jmp 0x407111
lea eax, [edi + 0x1424]
push eax
push str._j_s
lea eax, [ebp - 0x944]
push eax
call esi
add esp, 0xc
jmp 0x40711c
lea eax, [edi + 0x1424]
push eax
push str._f_s
jmp 0x4070f0
push 0x41f360
lea eax, [ebp - 0x944]
push eax
call esi
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.00410ec0
add esp, 0xc
mov ecx, edi
call fcn.0040a416
test eax, eax
je 0x40714e
lea eax, [ebp - 0x144]
push 0x41f670
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1143]
mov byte [ebp - 0x1144], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1144]
push 0x400
push eax
push dword [0x424d88]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 0x10]
call fcn.0040a416
mov ecx, dword [ebp - 0x10]
test eax, eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x544]
push eax
push 0x4230e4
je 0x4071c1
call fcn.00409df6
push eax
lea eax, [ebp - 0x944]
push dword [0x4244d4]
push eax
lea eax, [ebp - 0x1144]
push eax
push str.__s___k__s__l_d__t__s___e__s___w__v__s___s
jmp 0x4071e0
call fcn.00409df6
push eax
lea eax, [ebp - 0x944]
push dword [0x4244d4]
push eax
lea eax, [ebp - 0x1144]
push eax
push str.__s___s__l_d__t__s___e__s___v__s___s
lea eax, [ebp - 0x1544]
push eax
call esi
mov edi, dword [str.Setup]
add esp, 0x24
lea eax, [ebp - 0x1544]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1544]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xd43]
mov byte [ebp - 0xd44], bl
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040a416
test eax, eax
jne 0x407368
lea ecx, [ebp - 0x2c]
call fcn.004013aa
push dword [0x41f970]
lea eax, [ebp - 0xd44]
mov byte [ebp - 4], 1
push 0x4230e4
push eax
call fcn.0040c475
lea eax, [ebp - 0xd44]
push ebx
push eax
push 0x423eb8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0xd44]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0xd44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401505
xor eax, eax
lea edi, [ebp - 0x3f]
mov byte [ebp - 0x40], bl
push dword [0x4244d4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
push str._04x
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x1144]
push eax
lea eax, [ebp - 0x944]
push eax
push 0x423eb8
call fcn.0040c2c6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x1144]
push eax
call fcn.0040c475
lea eax, [ebp - 0x1144]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x543]
mov byte [ebp - 0x544], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x544]
push 0x4230e4
push eax
call fcn.0040c475
lea eax, [ebp - 0x544]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x544]
push ebx
push eax
lea eax, [ebp - 0x1144]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x544]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00401505
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004013d7
jmp 0x40737a
lea eax, [ebp - 0xd44]
push 0x423eb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xd44]
push eax
push ebx
push dword [0x41b578]
push dword [0x41b588]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0x10]
cmp dword [edi + 0x2064], ebx
jne 0x4073b4
cmp eax, 1
je 0x4073b4
cmp eax, 2
jne 0x4073e1
push 4
lea eax, [ebp - 0x20]
push 0x41f618
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd44]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41b578]
push dword [0x41b588]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0xd44]
lea eax, [edi + 0x810]
push ecx
push ebx
push dword [0x41b578]
mov dword [ebp + 8], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [edi + 0x1c60], ebx
jne 0x407411
cmp eax, 1
je 0x407411
cmp eax, 2
jne 0x40743b
push 4
lea eax, [ebp - 0x20]
push 0x41f618
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xd44]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41b578]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [0x424d84], ebx
je 0x40744a
call fcn.0040c88f
jmp 0x407455
push 0x453
call fcn.0040bdf7
pop ecx
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
pop ebx
je 0x407466
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8