Function at 0x414497
Capabilities:
Copy file
Set file attributes
Set registry value

Disassembly:
mov eax, 0x432a22
call fcn.00425db8
mov eax, 0x1c08
call fcn.004264e0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call fcn.00401046
mov esi, eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x120b]
mov byte [ebp - 0x120c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
mov dword [ebp - 0x28], esi
stosb byte es:[edi], al
call fcn.0041b854
test eax, eax
jne 0x414622
lea ecx, [ebp - 0x40]
call fcn.0040197c
push dword [0x43c5a8]
lea eax, [ebp - 0x120c]
mov dword [ebp - 4], ebx
push 0x442d24
push eax
call fcn.0041f680
lea eax, [ebp - 0x120c]
push ebx
push eax
push 0x441e50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x120c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x120c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401de8
xor eax, eax
lea edi, [ebp - 0xa3]
mov byte [ebp - 0xa4], bl
push dword [0x44246c]
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 - 0xa4]
push 0x43b7d8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xe0c]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0x441e50
call fcn.0041f43f
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xe0c]
push eax
call fcn.0041f680
lea eax, [ebp - 0xe0c]
push 0x43b7e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x60b]
mov byte [ebp - 0x60c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x60c]
push 0x442d24
push eax
call fcn.0041f680
lea eax, [ebp - 0x60c]
push 0x43b7e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x60c]
push ebx
push eax
lea eax, [ebp - 0xe0c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x60c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401de8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004019a9
jmp 0x414634
lea eax, [ebp - 0x120c]
push 0x441e50
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1814]
push 0x104
push eax
push ebx
push dword [0x43469c]
lea ecx, [esi + 0x4020]
push dword [0x43466c]
call fcn.00407406
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x160b]
mov byte [ebp - 0x160c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 1
sub eax, ebx
je 0x4146a5
dec eax
je 0x414691
dec eax
jne 0x4146b7
push 0x43b5b0
jmp 0x414696
push 0x43bfd0
lea eax, [ebp - 0x160c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4146c1
lea eax, [ebp - 0x160c]
push 0x43bf9c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x20], 3
je 0x414b7a
lea eax, [ebp - 0x160c]
push 0xf003f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.0040f9b2
test eax, eax
jne 0x414b7a
mov ecx, 0xff
lea edi, [ebp - 0x60b]
mov byte [ebp - 0x60c], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x60c]
push eax
call fcn.004258f0
cmp dword [ebp + 0xc], ebx
pop ecx
pop ecx
je 0x414720
lea eax, [ebp - 0x60c]
push 0x43bf8c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xa0b]
mov byte [ebp - 0xa0c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x14bc]
dec eax
je 0x41478e
dec eax
je 0x414780
dec eax
je 0x414762
dec eax
je 0x41475b
dec eax
je 0x414754
push 0x440140
jmp 0x414793
push 0x43bf88
jmp 0x414793
push 0x43bf84
jmp 0x414793
lea eax, [esi + 0x14c0]
push eax
push 0x43bf7c
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4147a2
lea eax, [esi + 0x14c0]
push eax
push 0x43bf74
jmp 0x41476e
push 0x43b6e4
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00426620
add esp, 0xc
mov ecx, esi
call fcn.0041b854
test eax, eax
je 0x4147d4
lea eax, [ebp - 0x20c]
push 0x43bf70
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xe0b]
mov byte [ebp - 0xe0c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.0041ab37
push eax
lea eax, [ebp - 0xe0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041b854
test eax, eax
je 0x41484a
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x38], ebx
jne 0x41484a
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0x60c]
push eax
push 0x442d24
call fcn.0041ab85
push eax
lea eax, [ebp - 0xa0c]
push dword [0x44246c]
push eax
lea eax, [ebp - 0xe0c]
push eax
push 0x43bf44
jmp 0x41487e
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
lea eax, [ebp - 0x60c]
push eax
push 0x442d24
call fcn.0041ab85
push eax
lea eax, [ebp - 0xa0c]
push dword [0x44246c]
push eax
lea eax, [ebp - 0xe0c]
push eax
push 0x43bf1c
lea eax, [ebp - 0x1c14]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push 1
pop edi
cmp dword [ebp - 0x20], edi
jne 0x4148e6
lea eax, [ebp - 0x160c]
push 0x43bf14
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 - 0x160c]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4148e6
cmp dword [ebp - 0x14], ebx
je 0x4148e0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
push eax
lea eax, [ebp - 0x1c14]
push eax
lea ecx, [ebp - 0x108]
call fcn.004014ff
lea eax, [ebp + 0xf]
push edi
push eax
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.004014ff
lea eax, [ebp - 0x21]
push edi
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041ab85
push eax
lea ecx, [ebp - 0xb8]
call fcn.004014ff
lea eax, [ebp - 0xd]
push edi
push eax
push 0x442d24
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.004014ff
cmp dword [ebp - 0xac], ebx
mov byte [ebp - 4], 5
je 0x414970
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0xb8]
push eax
call fcn.00417485
lea ecx, [ebp - 0x68]
call fcn.0040191f
cmp dword [ebp - 0x84], ebx
je 0x41498f
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x90]
push eax
call fcn.00417485
lea ecx, [ebp - 0x68]
call fcn.0040191f
mov dword [ebp - 0x18], ebx
push 0xf003f
push 0x43b6ac
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040f9b2
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x414af6
lea ecx, [ebp - 0xb8]
call fcn.004016f0
push eax
mov dword [ebp - 0x1c], eax
call esi
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push 0x43b5f0
push dword [ebp - 0x18]
call edi
lea ecx, [ebp - 0x90]
call fcn.004016f0
push eax
mov dword [ebp - 0x1c], eax
call esi
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push 0x43b6d8
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0xd4], ebx
je 0x414a32
lea ecx, [ebp - 0xe0]
call fcn.004016f0
push eax
mov dword [ebp - 0x1c], eax
call esi
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push 0x43b598
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x18], ebx
je 0x414a43
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0xd]
push 1
push eax
push 0x43b5f0
lea ecx, [ebp - 0x68]
call fcn.004172f8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x108]
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 7
call fcn.0040bb28
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.0040191f
lea eax, [ebp - 0xd]
push 1
push eax
push 0x43b6d8
lea ecx, [ebp - 0x68]
call fcn.004172f8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x108]
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 8
call fcn.0040bb28
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.0040191f
cmp dword [ebp - 0xd4], ebx
je 0x414af6
lea eax, [ebp - 0xd]
push 1
push eax
push 0x43b598
lea ecx, [ebp - 0x68]
call fcn.004172f8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x108]
push eax
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 9
call fcn.0040bb28
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.0040191f
lea ecx, [ebp - 0x108]
call fcn.004016f0
push eax
mov dword [ebp - 0x1c], eax
call esi
inc eax
push eax
push dword [ebp - 0x1c]
push 1
push ebx
push 0x43b5a8
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x14], ebx
je 0x414b2a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x414b3b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.0040191f
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.0040191f
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.0040191f
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 1
call fcn.0040191f
mov esi, dword [ebp - 0x28]
xor eax, eax
lea edi, [ebp - 0x33]
mov byte [ebp - 0x34], bl
push 0x104
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x1710]
lea edi, [esi + 0x8ac]
push eax
push ebx
push dword [0x43467c]
lea ecx, [esi + 0x4020]
push edi
call fcn.00407406
cmp dword [esi + 0x1cfc], ebx
jne 0x414bbc
cmp eax, 1
je 0x414bbc
cmp eax, 2
jne 0x414c2f
push 4
lea eax, [ebp - 0x34]
push 0x43bf10
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x88]
call fcn.004020fd
lea eax, [ebp - 0x120c]
lea ecx, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402145
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x88]
push eax
push dword [0x43467c]
push edi
call fcn.00402184
lea ecx, [ebp - 0x88]
call fcn.00402171
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call fcn.004042ec
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00403317
cmp dword [ebp - 0x20], 3
je 0x414c4f
cmp dword [0x44312c], ebx
je 0x414c44
call fcn.0041fba3
jmp 0x414c4f
push 0x453
call fcn.0041ef05
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x414c5d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8