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

Disassembly:
push ebp
lea ebp, [esp - 0x2290]
mov eax, 0x2290
call fcn.004682e0
push 0xffffffffffffffff
push 0x4a5c3d
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x228c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2298]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
call fcn.004056e6
mov esi, eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x1a78], ax
lea eax, [ebp + 0x1a7a]
push eax
mov dword [ebp - 0x1c], esi
call fcn.00468220
add esp, 0xc
mov ecx, esi
call fcn.00435f6d
test eax, eax
jne 0x42ba5c
lea ecx, [ebp - 0x30]
call fcn.00405e5a
and dword [ebp - 4], 0
cmp dword [0x4dfd50], 8
mov eax, dword [0x4dfd3c]
jae 0x42b924
mov eax, 0x4dfd3c
push eax
push 0x4dfe70
lea eax, [ebp + 0x1a78]
push eax
call fcn.004433a9
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [ebp + 0x1a78]
push eax
mov ebx, 0x4decc8
push ebx
call esi
push 0x80
lea eax, [ebp + 0x1a78]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x1a78]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c963
xor eax, eax
mov word [ebp + 0x250], ax
push 9
pop ecx
lea edi, [ebp + 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x294]
movzx eax, word [eax + 0x50]
push eax
lea eax, [ebp + 0x250]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + 0xa78]
push eax
lea eax, [ebp + 0x278]
push eax
push ebx
call fcn.00442bad
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp + 0x278]
push eax
lea eax, [ebp + 0xa78]
push eax
call fcn.004433a9
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, str..ini
push ebx
lea eax, [ebp + 0xa78]
push eax
call edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x1278], ax
lea eax, [ebp + 0x127a]
push eax
call fcn.00468220
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
push 0x4dfe70
lea eax, [ebp + 0x1278]
push eax
call fcn.004433a9
push ebx
lea eax, [ebp + 0x1278]
push eax
call edi
push 0
lea eax, [ebp + 0x1278]
push eax
lea eax, [ebp + 0xa78]
push eax
call esi
lea eax, [ebp + 0x1278]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040c963
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405e6b
mov esi, dword [ebp - 0x1c]
jmp 0x42ba6e
push 0x4decc8
lea eax, [ebp + 0x1a78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push str.NoSuppressRebootKey
lea ecx, [ebp + 0x16c]
call fcn.00401890
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0xd]
push eax
push str.Startup
lea ecx, [ebp + 0x1a0]
call fcn.00401890
mov byte [ebp - 4], 2
push 0xa
push 0
lea eax, [ebp + 0x16c]
push eax
lea eax, [ebp + 0x1a0]
push eax
mov ecx, esi
call fcn.00439e66
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x1a0]
call fcn.00401640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x16c]
call fcn.00401640
push ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x210]
call fcn.00401f50
push 3
pop edi
mov dword [ebp - 4], edi
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 4
push ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x104]
call fcn.00401f50
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
sub eax, 0
je 0x42bb38
dec eax
je 0x42bb31
dec eax
jne 0x42bb48
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp + 0x104]
call fcn.00401f90
jmp 0x42bb51
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
jmp 0x42bb24
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp + 0x104]
call fcn.00401f90
cmp dword [ebp - 0x1c], edi
je 0x42c1ec
mov eax, dword [ebp + 0x10c]
push 8
pop edi
cmp dword [ebp + 0x120], edi
jae 0x42bb68
lea eax, [ebp + 0x10c]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.004014b0
test eax, eax
jne 0x42c1ec
push ebx
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp + 0x138]
call fcn.0040921c
mov byte [ebp - 4], 6
cmp dword [ebp + 0x229c], 0
je 0x42bbb3
push str._AFTERREBOOT1
lea ecx, [ebp + 0x13c]
call fcn.00415b23
push ebx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x244]
call fcn.00401f50
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x24]
dec eax
je 0x42bc9a
dec eax
je 0x42bc48
dec eax
je 0x42bbf5
dec eax
je 0x42bbeb
dec eax
jne 0x42bcaa
push 0x4b4140
jmp 0x42bc9f
push 0x4b4138
jmp 0x42bc9f
push edi
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.0040f640
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x98]
push 0x4b1b24
push eax
call fcn.0040f8d6
add esp, 0xc
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp + 0x244]
call fcn.0040912a
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004016a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xcc]
jmp 0x42bc93
push edi
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0040f640
mov byte [ebp - 4], 8
push eax
lea eax, [ebp + 0x1dc]
push 0x4b1b60
push eax
call fcn.0040f8d6
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 0x244]
call fcn.0040912a
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x1dc]
call fcn.004016a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.004016a0
jmp 0x42bcaa
push 0x4b1bfc
lea ecx, [ebp + 0x244]
call fcn.00401f90
mov ecx, esi
call fcn.00435f6d
test eax, eax
mov eax, 0x4b4130
jne 0x42bcbf
mov eax, 0x4c1c70
push ebx
lea ecx, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp + 0x1a0]
call fcn.0040921c
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x16c]
push eax
mov ecx, esi
call fcn.00437805
mov byte [ebp - 4], 0xd
push ebx
lea eax, [ebp - 0xd]
push eax
mov ecx, esi
call fcn.00435e49
push eax
lea ecx, [ebp + 0x68]
call fcn.0040921c
mov byte [ebp - 4], 0xe
push ebx
lea eax, [ebp - 0xd]
push eax
push 0x4dfe70
lea ecx, [ebp + 0x9c]
call fcn.0040921c
mov byte [ebp - 4], 0xf
mov ecx, esi
call fcn.00435f6d
test eax, eax
je 0x42bdce
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x54], 0
jne 0x42bdce
cmp dword [ebp + 0x1bc], edi
mov edi, dword [ebp + 0x1a8]
jae 0x42bd48
lea edi, [ebp + 0x1a8]
mov ecx, dword [ebp + 0x140]
push 8
pop eax
cmp dword [ebp + 0x154], eax
jae 0x42bd5f
lea ecx, [ebp + 0x140]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xa4]
cmp dword [ebp + 0xb8], eax
jae 0x42bd76
lea ecx, [ebp + 0xa4]
mov edx, dword [ebp + 0x70]
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x84], eax
jae 0x42bd87
lea edx, [ebp + 0x70]
mov ecx, dword [ebp + 0x24c]
cmp dword [ebp + 0x260], eax
jae 0x42bd9b
lea ecx, [ebp + 0x24c]
cmp dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x174]
jae 0x42bdaf
lea eax, [ebp + 0x174]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push edx
mov edx, dword [esi + 0x294]
movzx edx, word [edx + 0x50]
push edx
push ecx
push eax
push str.__s___k__s__l_d__t__s___e__s___w__v__s___s
jmp 0x42be63
cmp dword [ebp + 0x1bc], edi
mov edi, dword [ebp + 0x1a8]
jae 0x42bde2
lea edi, [ebp + 0x1a8]
mov ecx, dword [ebp + 0x140]
push 8
pop eax
cmp dword [ebp + 0x154], eax
jae 0x42bdf9
lea ecx, [ebp + 0x140]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xa4]
cmp dword [ebp + 0xb8], eax
jae 0x42be10
lea ecx, [ebp + 0xa4]
mov edx, dword [ebp + 0x70]
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0x84], eax
jae 0x42be21
lea edx, [ebp + 0x70]
mov ecx, dword [ebp + 0x24c]
cmp dword [ebp + 0x260], eax
jae 0x42be35
lea ecx, [ebp + 0x24c]
cmp dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x174]
jae 0x42be49
lea eax, [ebp + 0x174]
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push edx
mov edx, dword [esi + 0x294]
movzx edx, word [edx + 0x50]
push edx
push ecx
push eax
push str.__s___s__l_d__t__s___e__s___v__s___s
lea eax, [ebp + 0x210]
push eax
call fcn.00415f63
add esp, 0x24
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
xor edi, edi
call fcn.0042289b
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x18], edi
setne byte [ebp - 0xd]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x64]
call fcn.004016a0
cmp byte [ebp - 0xd], 0
je 0x42bf10
lea eax, [ebp - 0xcc]
push eax
mov ecx, esi
call fcn.0042289b
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0x1dc]
push str.__debuglog_
push eax
call fcn.0040f8d6
mov byte [ebp - 4], 0x12
push 0x4b25f0
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00415beb
add esp, 0x18
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp + 0x210]
call fcn.0040f27c
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x64]
call fcn.004016a0
mov byte [ebp - 4], 0x11
lea ecx, [ebp + 0x1dc]
call fcn.004016a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xcc]
call fcn.004016a0
cmp dword [ebp - 0x1c], ebx
jne 0x42bf30
push edi
push edi
push 0x2001f
push edi
push edi
push str.0001
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
call fcn.0041f7cf
push ebx
lea eax, [ebp + 0x138]
push eax
lea ecx, [ebp + 0xd0]
call fcn.0040914f
mov byte [ebp - 4], 0x14
push ebx
lea eax, [ebp - 0xd]
push eax
mov ecx, esi
call fcn.00435e49
push eax
lea ecx, [ebp + 0x34]
call fcn.0040921c
mov byte [ebp - 4], 0x15
push ebx
lea eax, [ebp - 0xd]
push eax
push 0x4dfe70
lea ecx, [ebp]
call fcn.0040921c
mov byte [ebp - 4], 0x16
cmp dword [ebp + 0x4c], edi
je 0x42bf90
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp + 0x34]
call fcn.0041ca2e
lea ecx, [ebp - 0x64]
call fcn.004016a0
cmp dword [ebp + 0x18], edi
je 0x42bfaa
push edi
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp]
call fcn.0041ca2e
lea ecx, [ebp - 0x64]
call fcn.004016a0
cmp dword [ebp + 0x22c], 8
mov eax, dword [ebp + 0x218]
jae 0x42bfbf
lea eax, [ebp + 0x218]
push eax
lea eax, [ebp - 0x24]
push str.MsiAction::Reboot_command_line__s
push eax
mov dword [ebp - 0x24], str.C:CodeBasesisdev_srcRuntimeMSISharedSetupmsiaction.cpp
mov dword [ebp - 0x20], 0x716
call fcn.004113cc
add esp, 0xc
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0x17
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.004014b0
test eax, eax
jne 0x42c136
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x42c014
lea eax, [ebp + 0x3c]
push ebx
push eax
push str._IS_T_
lea ecx, [ebp - 0x18]
call fcn.0041f81d
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x42c02f
lea eax, [ebp + 8]
push ebx
push eax
mov edi, str._IS_E_
push edi
lea ecx, [ebp - 0x18]
call fcn.0041f81d
cmp dword [ebp + 0xe8], 0
je 0x42c06c
cmp dword [ebp + 0xec], 8
mov eax, dword [ebp + 0xd8]
jae 0x42c05d
lea eax, [ebp + 0xd8]
push ebx
push eax
push str._IS_V_
lea ecx, [ebp - 0x18]
call fcn.0041f81d
lea ecx, [ebp - 0x18]
call fcn.00401460
push ebx
lea eax, [ebp - 0xd]
push eax
push str._IS_T_
lea ecx, [ebp - 0x98]
call fcn.004090b3
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x210]
call fcn.00408db1
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x98]
call fcn.004016c0
push ebx
lea eax, [ebp - 0xd]
push eax
push edi
lea ecx, [ebp - 0x98]
call fcn.004090b3
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x210]
call fcn.00408db1
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x98]
call fcn.004016c0
cmp dword [ebp + 0xe8], 0
je 0x42c136
push ebx
lea eax, [ebp - 0xd]
push eax
push str._IS_V_
lea ecx, [ebp - 0x98]
call fcn.004090b3
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp + 0xd0]
push eax
lea ecx, [ebp + 0x210]
call fcn.00408db1
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x98]
call fcn.004016c0
cmp dword [ebp + 0x22c], 8
mov eax, dword [ebp + 0x218]
jae 0x42c14b
lea eax, [ebp + 0x218]
push ebx
push eax
push str.ISSetup
lea ecx, [ebp - 0x2c]
call fcn.0041f81d
lea ecx, [ebp - 0x2c]
call fcn.00401460
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x18]
call fcn.00401460
mov byte [ebp - 4], 0x15
lea ecx, [ebp]
call fcn.004016a0
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x34]
call fcn.004016a0
mov byte [ebp - 4], 0xf
lea ecx, [ebp + 0xd0]
call fcn.004016a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x9c]
call fcn.004016a0
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x68]
call fcn.004016a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x16c]
call fcn.004016a0
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x1a0]
call fcn.004016a0
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x244]
call fcn.004016a0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x138]
call fcn.004016a0
xor eax, eax
mov word [ebp + 0x2278], ax
lea edi, [ebp + 0x227a]
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 ebx
lea eax, [ebp - 0xd]
push eax
mov edi, str.Type
push edi
lea ecx, [ebp - 0x98]
call fcn.00401890
mov byte [ebp - 4], 0x1b
push 5
lea eax, [ebp + 0x1dc]
push eax
mov ecx, esi
call fcn.0040f640
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.00421b79
mov byte [ebp - 4], 0x1d
push 0xa
push 0
lea ecx, [ebp - 0x98]
push ecx
push eax
mov ecx, esi
call fcn.00439e66
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x64]
call fcn.00401640
mov byte [ebp - 4], 0x1b
lea ecx, [ebp + 0x1dc]
call fcn.004016a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.00401640
push 0xb
mov ecx, esi
call fcn.0040eda6
test al, al
jne 0x42c29a
cmp dword [ebp - 0x14], ebx
je 0x42c29a
cmp dword [ebp - 0x14], 2
jne 0x42c341
push 4
lea eax, [ebp + 0x2278]
push 0x4b3264
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp + 0x1d4]
call fcn.0040c48e
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x1a78]
push eax
lea ecx, [ebp + 0x1d4]
call fcn.0040c46d
push 5
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0040f640
mov byte [ebp - 4], 0x1f
cmp dword [eax + 0x1c], 8
jb 0x42c2ee
mov eax, dword [eax + 8]
jmp 0x42c2f1
add eax, 8
lea ecx, [ebp + 0x2278]
push ecx
push edi
push eax
lea ecx, [ebp + 0x1d4]
call fcn.0040be67
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x64]
call fcn.004016a0
cmp dword [ebp + 0x20c], 8
mov eax, dword [ebp + 0x1f8]
jae 0x42c326
lea eax, [ebp + 0x1f8]
push eax
lea ecx, [ebp + 0x1d4]
call fcn.0040a19c
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x1d4]
call fcn.0040c4af
cmp dword [ebp - 0x1c], 3
je 0x42c36b
mov esi, dword [esi + 0x294]
cmp byte [esi + 1], 0
je 0x42c360
cmp byte [esi + 2], 0
jne 0x42c360
call fcn.00443031
jmp 0x42c36b
push 0x453
call fcn.00444510
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x104]
call fcn.004016a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401460
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x210]
call fcn.004016a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228c]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x2290
leave
ret 8