Function at 0x401560
Capabilities:
Copy file
Create process on windows
Delete file
Hide graphical window
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x678
mov eax, dword [0x45bf00]
xor eax, esp
mov dword [esp + 0x674], eax
mov eax, dword [ebp + 8]
push esi
push edi
push str.updater_xenone
push 0
push 0x100002
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
je 0x4015a1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.updater_xenone
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp byte [0x4609d8], 0
je 0x4015fb
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.004075cb
add esp, 4
push eax
push 0x44bd04
push str.CONOUT_
call fcn.004074cb
add esp, 0xc
push 0
call fcn.004075cb
add esp, 4
push eax
push 0x44bf30
push str.CONIN_
call fcn.004074cb
add esp, 0xc
push 0x104
lea eax, [esp + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x68]
push str..new.exe
push eax
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x40172f
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x174]
push str._s.new.exe
push eax
call fcn.004012a0
add esp, 0xc
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call fcn.004077d5
add esp, 4
push eax
call fcn.004074f1
mov eax, dword [esp + 0x10]
add esp, 4
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0x2c], 0
push 0x7f00
push 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0x401370
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], str.Update_Checker
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], 6
call dword [sym.imp.USER32.dll_RegisterClassA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
push 0
push dword [esp + 0x10]
sub eax, 0x96
push 0
push 0
cdq
push 0x96
sub eax, edx
push 0x190
sar eax, 1
push eax
lea eax, [edi - 0x190]
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10c20000
push str.Update_Checker
push str.Update_Checker
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
jne 0x401825
pop edi
pop esi
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.0040191c
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
xor ecx, ecx
nop
mov al, byte [esp + ecx + 0x68]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x16f], al
test al, al
jne 0x401740
lea ecx, [esp + 0x68]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401760
sub ecx, edx
add ecx, 0xfffffff8
cmp ecx, 0x104
jae 0x4018a0
mov byte [esp + ecx + 0x68], al
xor esi, esi
nop
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40164f
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40164f
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x401780
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x174]
push eax
lea eax, [esp + 0x280]
push str.Failed_to_replace_updater_file_n_nPlease_manually_rename__s_to__s
push eax
call fcn.004012a0
add esp, 0x10
lea eax, [esp + 0x278]
push 0x30
push str.Updater
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 5
push 0
push 0
push 0x44c000
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x40]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
push eax
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
call esi
test eax, eax
je 0x401885
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x401862
mov ecx, dword [esp + 0x67c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0040191c
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401a7e
int3