Function at 0x4297d3
Capabilities:
Copy file
Persist via run registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a259
mov eax, dword fs:[0]
push eax
mov eax, 0x2314
call fcn.00443590
mov eax, dword [0x49d850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x231c], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2300], edi
call fcn.0040b6e4
mov ebx, eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x824], ax
xor esi, esi
lea eax, [ebp - 0x822]
push esi
push eax
mov dword [ebp - 0x22fc], ebx
call fcn.004416e0
add esp, 0xc
mov ecx, ebx
call fcn.00436d67
test eax, eax
jne 0x4299c3
lea ecx, [ebp - 0x230c]
call fcn.0040c8a0
mov dword [ebp - 4], esi
cmp dword [0x4a4c90], 8
mov eax, 0x4a4c7c
cmovae eax, dword [0x4a4c7c]
push eax
push 0x4a4da0
lea eax, [ebp - 0x824]
push eax
call fcn.0043f570
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
lea eax, [ebp - 0x824]
push eax
push 0x4a43e0
call ebx
push 0x80
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x230c]
call fcn.0040e4cb
mov esi, dword [ebp - 0x22fc]
xor eax, eax
push 9
mov word [ebp - 0x204c], ax
pop ecx
lea edi, [ebp - 0x204a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x260]
movzx eax, word [eax + 0x44]
push eax
lea eax, [ebp - 0x204c]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1824]
push eax
lea eax, [ebp - 0x2024]
push eax
push 0x4a43e0
call fcn.0043f8c6
lea eax, [ebp - 0x204c]
push eax
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x1824]
push eax
call fcn.0043f570
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, str..ini
push edi
lea eax, [ebp - 0x1824]
push eax
call esi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1024], ax
lea eax, [ebp - 0x1022]
push eax
call fcn.004416e0
add esp, 0xc
lea eax, [ebp - 0x204c]
push eax
push 0x4a4da0
lea eax, [ebp - 0x1024]
push eax
call fcn.0043f570
push edi
lea eax, [ebp - 0x1024]
push eax
call esi
xor esi, esi
push esi
lea eax, [ebp - 0x1024]
push eax
lea eax, [ebp - 0x1824]
push eax
call ebx
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x230c]
call fcn.0040e4cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230c]
call fcn.0040c9be
mov ebx, dword [ebp - 0x22fc]
mov edi, dword [ebp - 0x2300]
jmp 0x4299d5
push 0x4a43e0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x22f5]
push eax
push str.NoSuppressRebootKey
lea ecx, [ebp - 0x21d4]
call fcn.004025e0
xor eax, eax
inc eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x22f5]
push eax
push str.Startup
lea ecx, [ebp - 0x21a4]
call fcn.004025e0
mov byte [ebp - 4], 2
push 0xa
push esi
lea eax, [ebp - 0x21d4]
push eax
lea eax, [ebp - 0x21a4]
push eax
mov ecx, ebx
call fcn.00436097
mov dword [ebp - 0x2300], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21a4]
call fcn.00401580
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d4]
call fcn.00401580
push esi
lea eax, [ebp - 0x22f5]
push eax
lea ecx, [ebp - 0x2084]
mov dword [ebp - 0x2084], 0x47c4e4
mov dword [ebp - 0x205c], 0x477350
call fcn.00402580
mov dword [ebp - 4], 6
mov dword [ebp - 0x230c], esi
mov dword [ebp - 0x2308], esi
mov dword [ebp - 0x2304], esi
mov byte [ebp - 4], 7
push esi
lea eax, [ebp - 0x22f5]
push eax
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0x47c4e4
mov dword [ebp - 0x220c], 0x477350
call fcn.00402580
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2300]
sub eax, esi
je 0x429ae4
dec eax
je 0x429add
dec eax
jne 0x429af4
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x2230]
call fcn.00405070
jmp 0x429b01
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
jmp 0x429ad0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 0x2230]
call fcn.00405070
cmp dword [ebp - 0x2300], 3
je 0x42a306
cmp dword [ebp - 0x221c], 8
lea eax, [ebp - 0x2230]
cmovae eax, dword [ebp - 0x2230]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x230c]
call fcn.00401410
test eax, eax
jne 0x42a306
push 1
lea eax, [ebp - 0x22f5]
push eax
push edi
lea ecx, [ebp - 0x2204]
call fcn.0040c6e1
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0xc], 0
je 0x429b6b
mov edi, str._AFTERREBOOT1
push edi
call fcn.00442644
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2200]
call fcn.00417f62
push esi
lea eax, [ebp - 0x22f5]
push eax
lea ecx, [ebp - 0x2054]
mov dword [ebp - 0x2054], 0x47c4e4
mov dword [ebp - 0x202c], 0x477350
call fcn.00402580
mov byte [ebp - 4], 0xc
mov eax, dword [ebx + 0xc]
dec eax
je 0x429c71
dec eax
je 0x429c18
dec eax
je 0x429bc4
dec eax
je 0x429bba
dec eax
jne 0x429c81
push 0x47ab3c
jmp 0x429c76
push 0x47b080
jmp 0x429c76
push 8
lea eax, [ebp - 0x22f4]
push eax
mov ecx, ebx
call fcn.004122b3
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x20e4]
push 0x477aa0
push eax
call fcn.00410c74
add esp, 0xc
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x2054]
call fcn.0040ca5e
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x20e4]
call fcn.00401580
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x22f4]
jmp 0x429c6a
push 8
lea eax, [ebp - 0x2114]
push eax
mov ecx, ebx
call fcn.004122b3
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x22c4]
push 0x477a74
push eax
call fcn.00410c74
add esp, 0xc
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x2054]
call fcn.0040ca5e
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x22c4]
call fcn.00401580
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2114]
call fcn.00401580
jmp 0x429c81
push 0x4779c4
lea ecx, [ebp - 0x2050]
call fcn.00405070
push 1
lea eax, [ebp - 0x22f5]
push eax
mov ecx, ebx
call fcn.00436d67
mov edx, 0x483e18
test eax, eax
mov ecx, 0x47b088
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x21a4]
call fcn.0040c6e1
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x21d4]
push eax
mov ecx, ebx
call fcn.004354b4
mov byte [ebp - 4], 0x16
push 1
lea eax, [ebp - 0x22f5]
push eax
mov ecx, ebx
call fcn.00436205
push eax
lea ecx, [ebp - 0x2264]
call fcn.0040c6e1
mov byte [ebp - 4], 0x17
push 1
lea eax, [ebp - 0x22f5]
push eax
push 0x4a4da0
lea ecx, [ebp - 0x2294]
call fcn.0040c6e1
mov byte [ebp - 4], 0x18
mov ecx, ebx
call fcn.00436d67
test eax, eax
je 0x429db4
mov eax, dword [ebp - 0x231c]
cmp dword [eax + 0x54], esi
jne 0x429db4
push 8
pop ecx
cmp dword [ebp - 0x218c], ecx
lea ebx, [ebp - 0x21a0]
cmovae ebx, dword [ebp - 0x21a0]
cmp dword [ebp - 0x21ec], ecx
push ebx
lea edi, [ebp - 0x2200]
cmovae edi, dword [ebp - 0x2200]
cmp dword [ebp - 0x227c], ecx
push edi
lea esi, [ebp - 0x2290]
cmovae esi, dword [ebp - 0x2290]
cmp dword [ebp - 0x224c], ecx
push esi
mov esi, dword [ebp - 0x22fc]
lea eax, [ebp - 0x2260]
cmovae eax, dword [ebp - 0x2260]
cmp dword [ebp - 0x203c], ecx
push eax
mov eax, dword [esi + 0x260]
lea edx, [ebp - 0x2050]
movzx eax, word [eax + 0x44]
cmovae edx, dword [ebp - 0x2050]
cmp dword [ebp - 0x21bc], 8
push eax
lea ecx, [ebp - 0x21d0]
cmovae ecx, dword [ebp - 0x21d0]
push edx
push ecx
push str.__s___k__s__l_d__t__s___e__s___w__v__s___s
jmp 0x429e46
push 8
pop ecx
cmp dword [ebp - 0x218c], ecx
lea ebx, [ebp - 0x21a0]
cmovae ebx, dword [ebp - 0x21a0]
cmp dword [ebp - 0x21ec], ecx
push ebx
lea edi, [ebp - 0x2200]
cmovae edi, dword [ebp - 0x2200]
cmp dword [ebp - 0x227c], ecx
push edi
lea esi, [ebp - 0x2290]
cmovae esi, dword [ebp - 0x2290]
cmp dword [ebp - 0x224c], ecx
push esi
mov esi, dword [ebp - 0x22fc]
lea eax, [ebp - 0x2260]
cmovae eax, dword [ebp - 0x2260]
cmp dword [ebp - 0x203c], ecx
push eax
mov eax, dword [esi + 0x260]
lea edx, [ebp - 0x2050]
movzx eax, word [eax + 0x44]
cmovae edx, dword [ebp - 0x2050]
cmp dword [ebp - 0x21bc], 8
push eax
lea ecx, [ebp - 0x21d0]
cmovae ecx, dword [ebp - 0x21d0]
push edx
push ecx
push str.__s___s__l_d__t__s___e__s___v__s___s
lea eax, [ebp - 0x2084]
push eax
call fcn.0041803a
add esp, 0x24
lea eax, [ebp - 0x2114]
push eax
mov ecx, esi
call fcn.00426158
mov byte [ebp - 4], 0x19
xor esi, esi
cmp dword [eax + 0x14], esi
setne bl
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2114]
call fcn.00401580
test bl, bl
mov ebx, dword [ebp - 0x22fc]
je 0x429f02
lea eax, [ebp - 0x22f4]
push eax
mov ecx, ebx
call fcn.00426158
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x22c4]
push str.__debuglog_
push eax
call fcn.00410c74
mov byte [ebp - 4], 0x1c
push 0x479df8
push eax
lea eax, [ebp - 0x2114]
push eax
call fcn.0041705e
add esp, 0x18
mov byte [ebp - 4], 0x1d
push eax
lea ecx, [ebp - 0x2084]
call fcn.004104eb
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2114]
call fcn.00401580
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x22c4]
call fcn.00401580
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x22f4]
call fcn.00401580
cmp dword [ebp - 0x2300], 1
jne 0x429f29
push esi
push esi
push 0x2001f
push esi
push esi
push str.0001
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x230c]
call fcn.00421a78
push esi
lea eax, [ebp - 0x2204]
push eax
lea ecx, [ebp - 0x20b4]
mov dword [ebp - 0x20b4], 0x47c4e4
mov dword [ebp - 0x208c], 0x477350
call fcn.0040c384
mov byte [ebp - 4], 0x22
push 1
lea eax, [ebp - 0x22f5]
push eax
mov ecx, ebx
call fcn.00436205
push eax
lea ecx, [ebp - 0x2144]
call fcn.0040c6e1
mov byte [ebp - 4], 0x23
push 1
lea eax, [ebp - 0x22f5]
push eax
push 0x4a4da0
lea ecx, [ebp - 0x2174]
call fcn.0040c6e1
mov byte [ebp - 4], 0x24
cmp dword [ebp - 0x2130], 0
je 0x429fbd
push esi
push esi
lea eax, [ebp - 0x2114]
push eax
lea ecx, [ebp - 0x2144]
call fcn.0041d825
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x2114]
call fcn.00401580
cmp dword [ebp - 0x2160], 0
je 0x429fe9
push esi
push esi
lea eax, [ebp - 0x2114]
push eax
lea ecx, [ebp - 0x2174]
call fcn.0041d825
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x2114]
call fcn.00401580
push 8
pop edi
cmp dword [ebp - 0x206c], edi
lea eax, [ebp - 0x2080]
cmovae eax, dword [ebp - 0x2080]
push eax
lea eax, [ebp - 0x2320]
push str.MsiAction::Reboot_command_line__s
push eax
mov dword [ebp - 0x2320], str.msiaction.cpp
mov dword [ebp - 0x231c], 0x71d
call fcn.00411965
add esp, 0xc
mov dword [ebp - 0x2318], esi
mov dword [ebp - 0x2314], esi
mov dword [ebp - 0x2310], esi
mov byte [ebp - 4], 0x27
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2318]
call fcn.00401410
test eax, eax
jne 0x42a23f
cmp dword [ebp - 0x212c], edi
lea eax, [ebp - 0x2140]
cmovae eax, dword [ebp - 0x2140]
push 1
push eax
push str._IS_T_
lea ecx, [ebp - 0x2318]
call fcn.0042b6b9
cmp dword [ebp - 0x215c], edi
lea eax, [ebp - 0x2170]
cmovae eax, dword [ebp - 0x2170]
push 1
push eax
push str._IS_E_
lea ecx, [ebp - 0x2318]
call fcn.0042b6b9
cmp dword [ebp - 0x20a0], 0
je 0x42a0db
cmp dword [ebp - 0x209c], edi
lea eax, [ebp - 0x20b0]
cmovae eax, dword [ebp - 0x20b0]
push 1
push eax
push str._IS_V_
lea ecx, [ebp - 0x2318]
call fcn.0042b6b9
lea ecx, [ebp - 0x2318]
call fcn.004013e0
push 1
lea eax, [ebp - 0x22f5]
push eax
push str._IS_T_
lea ecx, [ebp - 0x20e4]
call fcn.0040c487
mov byte [ebp - 4], 0x28
push dword [ebp - 0x2130]
cmp dword [ebp - 0x212c], edi
lea eax, [ebp - 0x2140]
cmovae eax, dword [ebp - 0x2140]
push esi
push eax
lea ecx, [ebp - 0x2080]
call fcn.0040f6e1
cmp eax, 0xffffffff
je 0x42a147
lea ecx, [ebp - 0x20e4]
push ecx
push dword [ebp - 0x2130]
lea ecx, [ebp - 0x2084]
push eax
call fcn.00410040
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x20e4]
call fcn.00401580
push 1
lea eax, [ebp - 0x22f5]
push eax
push str._IS_E_
lea ecx, [ebp - 0x20e4]
call fcn.0040c487
mov byte [ebp - 4], 0x29
push dword [ebp - 0x2160]
cmp dword [ebp - 0x215c], edi
lea eax, [ebp - 0x2170]
cmovae eax, dword [ebp - 0x2170]
push esi
push eax
lea ecx, [ebp - 0x2080]
call fcn.0040f6e1
cmp eax, 0xffffffff
je 0x42a1b7
lea ecx, [ebp - 0x20e4]
push ecx
push dword [ebp - 0x2160]
lea ecx, [ebp - 0x2084]
push eax
call fcn.00410040
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x20e4]
call fcn.00401580
cmp dword [ebp - 0x20a0], 0
je 0x42a23f
push 1
lea eax, [ebp - 0x22f5]
push eax
push str._IS_V_
lea ecx, [ebp - 0x20e4]
call fcn.0040c487
mov byte [ebp - 4], 0x2a
push dword [ebp - 0x20a0]
cmp dword [ebp - 0x209c], edi
lea eax, [ebp - 0x20b0]
cmovae eax, dword [ebp - 0x20b0]
push esi
push eax
lea ecx, [ebp - 0x2080]
call fcn.0040f6e1
cmp eax, 0xffffffff
je 0x42a230
lea ecx, [ebp - 0x20e4]
push ecx
push dword [ebp - 0x20a0]
lea ecx, [ebp - 0x2084]
push eax
call fcn.00410040
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x20e4]
call fcn.00401580
cmp dword [ebp - 0x206c], edi
lea eax, [ebp - 0x2080]
cmovae eax, dword [ebp - 0x2080]
push 1
push eax
push str.ISSetup
lea ecx, [ebp - 0x230c]
call fcn.0042b6b9
lea ecx, [ebp - 0x230c]
call fcn.004013e0
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x2318]
call fcn.004013e0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2174]
call fcn.00401580
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2144]
call fcn.00401580
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x20b4]
call fcn.00401580
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2294]
call fcn.00401580
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2264]
call fcn.00401580
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x21d4]
call fcn.00401580
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x21a4]
call fcn.00401580
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2054]
call fcn.00401580
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2204]
call fcn.00401580
xor eax, eax
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
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
push 1
lea eax, [ebp - 0x22f5]
push eax
push str.Type
lea ecx, [ebp - 0x20e4]
call fcn.004025e0
mov byte [ebp - 4], 0x34
push 5
lea eax, [ebp - 0x22c4]
push eax
mov ecx, ebx
call fcn.004122b3
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x2114]
push ecx
mov ecx, eax
call fcn.0042bdab
mov byte [ebp - 4], 0x36
push 0xa
push esi
lea ecx, [ebp - 0x20e4]
push ecx
push eax
mov ecx, ebx
call fcn.00436097
mov edi, eax
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x2114]
call fcn.00401580
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x22c4]
call fcn.00401580
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20e4]
call fcn.00401580
push 0xb
mov ecx, ebx
call fcn.004123e9
test al, al
jne 0x42a3b4
cmp edi, 1
je 0x42a3b4
cmp edi, 2
jne 0x42a48b
push 4
lea eax, [ebp - 0x24]
push 0x477e68
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x2044]
call fcn.0040c2bb
mov byte [ebp - 4], 0x3b
cmp word [ebp - 0x824], 0
je 0x42a3f0
lea eax, [ebp - 0x824]
push eax
call fcn.00442644
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x203c]
call fcn.0040ee78
lea ecx, [ebp - 0x2044]
call fcn.0040ef12
lea ecx, [ebp - 0x2044]
call fcn.0040d860
push 5
lea eax, [ebp - 0x2114]
push eax
mov ecx, ebx
call fcn.004122b3
mov byte [ebp - 4], 0x3c
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x42a438
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push str.Type
push eax
lea ecx, [ebp - 0x2044]
call fcn.0040e151
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x2114]
call fcn.00401580
cmp dword [ebp - 0x2028], 8
lea eax, [ebp - 0x203c]
cmovae eax, dword [ebp - 0x203c]
push eax
lea ecx, [ebp - 0x2044]
call fcn.0040dda1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2044]
call fcn.0041927c
cmp dword [ebp - 0x2300], 3
je 0x42a4b8
mov eax, dword [ebx + 0x260]
cmp byte [eax + 1], 0
je 0x42a4ad
cmp byte [eax + 2], 0
jne 0x42a4ad
call fcn.00440bb7
jmp 0x42a4b8
push 0x453
call fcn.0043f821
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2234]
call fcn.00401580
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230c]
call fcn.004013e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2084]
call fcn.00401580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004416c3
leave
ret 8