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

Disassembly:
mov eax, 0x421b18
call fcn.004175d4
mov eax, 0x267c
call fcn.004176d0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401046
mov esi, 0xff
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x687]
mov byte [ebp - 0x688], bl
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x28]
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040fe8c
test eax, eax
jne 0x40908d
lea ecx, [ebp - 0x6c]
call fcn.0040151a
push dword [0x4281dc]
lea eax, [ebp - 0x688]
mov dword [ebp - 4], ebx
push 0x42bab4
push eax
call fcn.00412012
lea eax, [ebp - 0x688]
push ebx
push eax
push 0x42db88
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 - 0x6c]
push eax
call fcn.00401675
xor eax, eax
lea edi, [ebp - 0x4b]
mov byte [ebp - 0x4c], bl
push dword [0x42e1a4]
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 - 0x4c]
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 0x42db88
call fcn.00411dd1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2688]
push eax
lea eax, [ebp - 0x2288]
push eax
call fcn.00412012
lea eax, [ebp - 0x2288]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, esi
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 - 0x4c]
push eax
lea eax, [ebp - 0x1a88]
push 0x42bab4
push eax
call fcn.00412012
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 - 0x6c]
push eax
call fcn.00401675
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401547
jmp 0x40909f
lea eax, [ebp - 0x688]
push 0x42db88
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x688]
push eax
push ebx
push dword [0x42360c]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ebx
mov ecx, esi
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 0x409103
dec eax
je 0x4090ef
dec eax
jne 0x409115
push str.SoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x4090f4
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
lea eax, [ebp - 0x1288]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40911f
lea eax, [ebp - 0x1288]
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x2c], 3
je 0x4098fd
lea eax, [ebp - 0x1288]
push 0xf003f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
call fcn.0040637c
test eax, eax
jne 0x4098fd
mov ecx, esi
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, 0x427b6c
push edi
push dword [ebp + 8]
call fcn.00418184
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x4091bb
lea eax, [ebp - 0xa88]
push 0x42bab0
push eax
call fcn.00416fc0
pop ecx
pop ecx
push dword [ebp + 8]
test eax, eax
jne 0x40919b
lea eax, [ebp - 0xa88]
push 0x4271e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4091b7
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0xa88]
push 0x4271c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
push ebx
jmp 0x40915c
cmp dword [ebp + 0xc], ebx
je 0x4091d2
lea eax, [ebp - 0xa88]
push str._AFTERREBOOT1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, esi
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 - 0x28]
mov eax, dword [edi + 0x14bc]
dec eax
je 0x409240
dec eax
je 0x409232
dec eax
je 0x409214
dec eax
je 0x40920d
dec eax
je 0x409206
push 0x42bab0
jmp 0x409245
push 0x427b58
jmp 0x409245
push 0x427b54
jmp 0x409245
lea eax, [edi + 0x14c0]
push eax
push str._j_s
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x409254
lea eax, [edi + 0x14c0]
push eax
push str._f_s
jmp 0x409220
push 0x4275d4
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.00416f60
add esp, 0xc
mov ecx, edi
call fcn.0040fe8c
test eax, eax
je 0x409286
lea eax, [ebp - 0x288]
push 0x427b40
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1e87]
mov byte [ebp - 0x1e88], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp - 0x28]
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040f452
push eax
lea eax, [ebp - 0x1e88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040fe8c
test eax, eax
je 0x4092fc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x38], ebx
jne 0x4092fc
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
lea eax, [ebp - 0xa88]
push eax
push 0x42bab4
call fcn.0040f48d
push eax
lea eax, [ebp - 0xe88]
push dword [0x42e1a4]
push eax
lea eax, [ebp - 0x1e88]
push eax
push str.__s___k__s__l_d__t__s___e__s___w__v__s___s
jmp 0x409330
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
lea eax, [ebp - 0xa88]
push eax
push 0x42bab4
call fcn.0040f48d
push eax
lea eax, [ebp - 0xe88]
push dword [0x42e1a4]
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 0x409398
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 0x409398
cmp dword [ebp - 0x1c], ebx
je 0x409392
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 0x4098c4
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.0040c0e9
lea eax, [ebp + 0xf]
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040f48d
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040c0e9
lea eax, [ebp - 0x2d]
push edi
push eax
push 0x42bab4
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.0040c0e9
lea eax, [ebp - 0x15]
push edi
push eax
lea eax, [ebp - 0xa88]
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.0040c0e9
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.0040637c
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x409807
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x60]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 8
push eax
call fcn.0040de4e
mov eax, dword [eax + 8]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x14], 0x423620
je 0x40948d
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x409497
mov dword [ebp - 0x10], ebx
jmp 0x4094c9
push dword [ebp - 0x14]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.004176d0
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x10]
push 1
push ebx
push str._IS_T_
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x94]
call fcn.00407ccf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00407ccf
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x60]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 9
push eax
call fcn.0040de4e
mov eax, dword [eax + 8]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x14], 0x423620
je 0x409538
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x409542
mov dword [ebp - 0x10], ebx
jmp 0x409574
push dword [ebp - 0x14]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.004176d0
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x10]
push 1
push ebx
push str._IS_E_
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x94]
call fcn.00407ccf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00407ccf
cmp dword [ebp - 0xd8], ebx
je 0x409661
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x60]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040de4e
mov eax, dword [eax + 8]
add esp, 0x18
cmp eax, ebx
mov dword [ebp - 0x14], 0x423620
je 0x4095ef
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x4095f9
mov dword [ebp - 0x10], ebx
jmp 0x40962b
push dword [ebp - 0x14]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.004176d0
mov eax, esp
push ebx
push ebx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x10]
mov byte [eax], bl
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x10]
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.00407ccf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00407ccf
cmp dword [ebp - 0x20], ebx
je 0x409672
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 - 0x60]
call fcn.0040bfc7
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x10c]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040de4e
add esp, 0x18
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c0a1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xc
call fcn.00407ccf
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xb
call fcn.00407ccf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00407ccf
lea eax, [ebp - 0x15]
push 1
push eax
push str._IS_E_
lea ecx, [ebp - 0x60]
call fcn.0040bfc7
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x94]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 0xf
push eax
call fcn.0040de4e
add esp, 0x18
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c0a1
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xf
call fcn.00407ccf
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xe
call fcn.00407ccf
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00407ccf
cmp dword [ebp - 0xd8], ebx
je 0x409807
lea eax, [ebp - 0x15]
push 1
push eax
push str._IS_V_
lea ecx, [ebp - 0x94]
call fcn.0040bfc7
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x184]
push 0x22
push eax
call fcn.0040ddbe
push 0x22
push eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 0x12
push eax
call fcn.0040de4e
add esp, 0x18
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x13
push ecx
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c0a1
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0x12
call fcn.00407ccf
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 0x11
call fcn.00407ccf
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00407ccf
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x14], 0x423620
cmp eax, ebx
je 0x40981b
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x409824
xor edi, edi
jmp 0x40984d
push dword [ebp - 0x14]
call edi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.004176d0
mov edi, esp
push ebx
push ebx
push dword [ebp - 0x10]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.ISSetup
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x20], ebx
je 0x409879
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.00407ccf
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 4
call fcn.00407ccf
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 3
call fcn.00407ccf
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.00407ccf
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0x28]
jmp 0x4098ea
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 0x409900
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
jmp 0x409900
mov esi, dword [ebp - 0x28]
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 [0x4235e8]
push dword [0x4235f8]
call edi
cmp dword [esi + 0x2100], ebx
jne 0x409939
cmp eax, 1
je 0x409939
cmp eax, 2
jne 0x40996a
push 4
lea eax, [ebp - 0x38]
push 0x427ae0
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 [0x4235e8]
push dword [0x4235f8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x688]
lea eax, [esi + 0x8ac]
push ecx
push ebx
push dword [0x4235e8]
mov dword [ebp + 8], eax
push eax
call edi
cmp dword [esi + 0x1cfc], ebx
jne 0x409996
cmp eax, 1
je 0x409996
cmp eax, 2
jne 0x4099c4
push 4
lea eax, [ebp - 0x38]
push 0x427ae0
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 [0x4235e8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x2c], 3
je 0x4099e4
cmp dword [0x42ea60], ebx
je 0x4099d9
call fcn.00412462
jmp 0x4099e4
push 0x453
call fcn.004118e2
pop ecx
cmp dword [ebp - 0x1c], ebx
je 0x4099f2
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