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

Disassembly:
mov eax, 0x41ef74
call fcn.00414b54
mov eax, 0x267c
call fcn.00414d30
push ebx
push esi
push edi
call fcn.00401046
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x687]
mov byte [ebp - 0x688], bl
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x24]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040d944
test eax, eax
mov esi, 0x428774
jne 0x40860c
lea ecx, [ebp - 0x44]
call fcn.004013aa
push dword [0x424f48]
lea eax, [ebp - 0x688]
mov dword [ebp - 4], ebx
push esi
push eax
call fcn.0040f821
lea eax, [ebp - 0x688]
push ebx
push eax
push 0x42a448
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x688]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x688]
lea ecx, [ebp - 0x44]
push eax
call fcn.00401505
xor eax, eax
lea edi, [ebp - 0x57]
mov byte [ebp - 0x58], bl
push dword [0x42aa64]
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 - 0x58]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x2288]
push eax
lea eax, [ebp - 0x2688]
push eax
push 0x42a448
call fcn.0040f672
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x2688]
push eax
lea eax, [ebp - 0x2288]
push eax
call fcn.0040f821
lea eax, [ebp - 0x2288]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1a87]
mov byte [ebp - 0x1a88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1a88]
push esi
push eax
call fcn.0040f821
lea eax, [ebp - 0x1a88]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1a88]
push ebx
push eax
lea eax, [ebp - 0x2288]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x1a88]
lea ecx, [ebp - 0x44]
push eax
call fcn.00401505
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004013d7
jmp 0x40861e
lea eax, [ebp - 0x688]
push 0x42a448
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x688]
push eax
push ebx
push dword [0x4205c8]
push dword [0x420574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1287]
mov byte [ebp - 0x1288], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
sub eax, ebx
je 0x408685
dec eax
je 0x408671
dec eax
jne 0x408697
push str.SoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x408676
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea eax, [ebp - 0x1288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4086a1
lea eax, [ebp - 0x1288]
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x2c], 3
je 0x408dcd
lea eax, [ebp - 0x1288]
push 0xf003f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.00405bae
test eax, eax
jne 0x408dcd
mov ecx, 0xff
lea edi, [ebp - 0xa87]
mov byte [ebp - 0xa88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x424c14
push edi
push dword [ebp + 8]
call fcn.00415746
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x408740
lea eax, [ebp - 0xa88]
push 0x428770
push eax
call fcn.00414530
pop ecx
pop ecx
push dword [ebp + 8]
test eax, eax
jne 0x408720
lea eax, [ebp - 0xa88]
push 0x424170
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40873c
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0xa88]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
push ebx
jmp 0x4086e1
cmp dword [ebp + 0xc], ebx
je 0x408757
lea eax, [ebp - 0xa88]
push str._AFTERREBOOT1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xe87]
mov byte [ebp - 0xe88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x24]
mov eax, dword [edi + 0x1488]
dec eax
je 0x4087c8
dec eax
je 0x4087ba
dec eax
je 0x40879c
dec eax
je 0x408795
dec eax
je 0x40878e
push 0x428770
jmp 0x4087cd
push 0x424c00
jmp 0x4087cd
push 0x424bfc
jmp 0x4087cd
lea eax, [edi + 0x148c]
push eax
push str._j_s
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4087dc
lea eax, [edi + 0x148c]
push eax
push str._f_s
jmp 0x4087a8
push 0x4244e4
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.004144d0
add esp, 0xc
mov ecx, edi
call fcn.0040d944
test eax, eax
je 0x40880e
lea eax, [ebp - 0x288]
push 0x424be8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1e87]
mov byte [ebp - 0x1e88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1e88]
push 0x400
push eax
push dword [0x42b31c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 0x24]
call fcn.0040d944
mov ecx, dword [ebp - 0x24]
test eax, eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0xa88]
push eax
push esi
je 0x40887d
call fcn.0040d041
push eax
lea eax, [ebp - 0xe88]
push dword [0x42aa64]
push eax
lea eax, [ebp - 0x1e88]
push eax
push str.__s___k__s__l_d__t__s___e__s___w__v__s___s
jmp 0x40889c
call fcn.0040d041
push eax
lea eax, [ebp - 0xe88]
push dword [0x42aa64]
push eax
lea eax, [ebp - 0x1e88]
push eax
push str.__s___s__l_d__t__s___e__s___v__s___s
lea eax, [ebp - 0x1688]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 1
pop edi
cmp dword [ebp - 0x2c], edi
jne 0x408904
lea eax, [ebp - 0x1288]
push str.0001
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xc]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x1288]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x408904
cmp dword [ebp - 0x1c], ebx
je 0x4088fe
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1688]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x102
jle 0x408d96
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp + 0xb]
push edi
push eax
lea eax, [ebp - 0x1688]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.0040acb1
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0xf]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.0040d041
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040acb1
lea eax, [ebp - 0x2d]
push edi
push eax
push esi
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.0040acb1
lea eax, [ebp - 0x15]
push edi
push eax
lea eax, [ebp - 0xa88]
push eax
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 5
call fcn.0040acb1
mov dword [ebp - 0x20], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00405bae
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x408cdc
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x10], 0x4205dc
cmp eax, ebx
je 0x4089d1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x4089db
mov dword [ebp - 0x14], ebx
jmp 0x408a0d
push dword [ebp - 0x10]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
add eax, 3
and al, 0xfc
call fcn.00414d30
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x14]
push 1
push ebx
push str._IS_T_
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x10], 0x4205dc
cmp eax, ebx
je 0x408a40
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x408a4a
mov dword [ebp - 0x14], ebx
jmp 0x408a7c
push dword [ebp - 0x10]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
add eax, 3
and al, 0xfc
call fcn.00414d30
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x14]
push 1
push ebx
push str._IS_E_
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x100], ebx
je 0x408b36
lea eax, [ebp - 0x10c]
push 0x22
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0040bd2a
mov eax, dword [eax + 8]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x10], 0x4205dc
je 0x408ad0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x408ada
mov dword [ebp - 0x14], ebx
jmp 0x408b0c
push dword [ebp - 0x10]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
add eax, 3
and al, 0xfc
call fcn.00414d30
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x28], eax
push dword [ebp - 0x14]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x14]
push 1
push ebx
push str._IS_V_
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x94]
call fcn.00407311
cmp dword [ebp - 0x20], ebx
je 0x408b47
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x15]
push 1
push eax
push str._IS_T_
lea ecx, [ebp - 0x6c]
call fcn.0040ab8e
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xe4]
push 0x22
push eax
call fcn.0040bdbe
push 0x22
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
call fcn.0040bd2a
add esp, 0x18
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040ac69
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call fcn.00407311
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 8
call fcn.00407311
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00407311
lea eax, [ebp - 0x15]
push 1
push eax
push str._IS_E_
lea ecx, [ebp - 0x6c]
call fcn.0040ab8e
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x94]
push 0x22
push eax
call fcn.0040bdbe
push 0x22
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040bd2a
add esp, 0x18
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040ac69
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xc
call fcn.00407311
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.00407311
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00407311
cmp dword [ebp - 0x100], ebx
je 0x408cdc
lea eax, [ebp - 0x15]
push 1
push eax
push str._IS_V_
lea ecx, [ebp - 0x94]
call fcn.0040ab8e
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x184]
push 0x22
push eax
call fcn.0040bdbe
push 0x22
push eax
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xf
push eax
call fcn.0040bd2a
add esp, 0x18
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040ac69
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0xf
call fcn.00407311
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 0xe
call fcn.00407311
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00407311
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x10], 0x4205dc
cmp eax, ebx
je 0x408cf0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
jne 0x408cf9
xor esi, esi
jmp 0x408d22
push dword [ebp - 0x10]
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
add eax, 3
and al, 0xfc
call fcn.00414d30
mov esi, esp
push ebx
push ebx
push dword [ebp - 0x14]
mov byte [esi], bl
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push ebx
push ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.ISSetup
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x20], ebx
je 0x408d4e
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 5
call fcn.00407311
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.00407311
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 3
call fcn.00407311
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.00407311
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x408dbc
lea eax, [ebp - 0x1688]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1688]
push eax
push edi
push ebx
push str.ISSetup
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x1c], ebx
je 0x408dcd
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
xor eax, eax
lea edi, [ebp - 0x37]
mov byte [ebp - 0x38], bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x688]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push dword [0x4205a4]
push dword [0x4205b4]
call edi
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0x20cc], ebx
jne 0x408e09
cmp eax, 1
je 0x408e09
cmp eax, 2
jne 0x408e3a
push 4
lea eax, [ebp - 0x38]
push 0x424b88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x4205a4]
push dword [0x4205b4]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x688]
lea eax, [esi + 0x878]
push ecx
push ebx
push dword [0x4205a4]
mov dword [ebp + 8], eax
push eax
call edi
cmp dword [esi + 0x1cc8], ebx
jne 0x408e66
cmp eax, 1
je 0x408e66
cmp eax, 2
jne 0x408e94
push 4
lea eax, [ebp - 0x38]
push 0x424b88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [0x4205a4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x2c], 3
je 0x408eb4
cmp dword [0x42b318], ebx
je 0x408ea9
call fcn.0040fc47
jmp 0x408eb4
push 0x453
call fcn.0040f183
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x408ec2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2694]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8