Function at 0x402460
Capabilities:
Create process on windows
Delete file
Enumerate processes
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ddf1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x42d010]
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
cmp dword [ebp + 8], 3
mov esi, dword [ebp + 0xc]
jge 0x4024ce
mov edx, str.Uso:
mov ecx, 0x42df88
call fcn.00402bd0
mov edx, dword [esi]
mov ecx, eax
call fcn.00402f20
mov edx, str.__actual_executable___nuevo_executable_
mov ecx, eax
call fcn.00402bd0
push eax
call fcn.00402e80
add esp, 4
mov eax, 1
jmp 0x402ad0
mov edx, dword [esi + 4]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024d6
sub ecx, edi
push ecx
lea eax, [edx + ecx]
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.004032b0
mov dword [ebp - 4], 0
mov edx, dword [esi + 8]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402500
sub ecx, esi
push ecx
lea eax, [edx + ecx]
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.004032b0
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x2c0], 0x22c
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x2dc], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402692
nop dword [eax]
nop word [eax + eax]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2c4], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402587
sub ecx, edx
lea eax, [ebp - 0x29c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00403520
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x2c4]
lea esi, [ebp - 0x2d8]
cmovae eax, dword [ebp - 0x28]
cmp ecx, 8
mov edi, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x2c8]
setae bh
cmovae esi, edi
cmp edx, dword [ebp - 0x18]
jne 0x402601
test edx, edx
je 0x4025f7
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4025fb
add eax, 2
sub edx, 1
jne 0x4025e0
mov ecx, dword [ebp - 0x2c4]
mov bl, 1
jmp 0x402603
mov ecx, dword [ebp - 0x2c4]
xor bl, bl
test bh, bh
je 0x402636
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40262c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402aec
push ecx
push edi
call fcn.0040673a
add esp, 8
test bl, bl
je 0x402670
push dword [ebp - 0x2b8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402670
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
jmp 0x402676
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402560
push esi
call ebx
mov edx, str.All_processes_of
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
mov edx, str._terminated.
mov ecx, eax
call fcn.00402bd0
push eax
call fcn.00402e80
add esp, 8
mov dword [ebp - 0x2e0], 5
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2dc], 0
call fcn.004033c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402957
mov edx, str.File_deleted:
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
add esp, 8
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, 0x42df88
test eax, eax
jne 0x402828
mov edx, str.Failed_to_rename_file_from
call fcn.00402bd0
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.00403e30
mov edx, str._to
mov ecx, eax
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
add esp, 0xc
lea ecx, [ebp - 0x2d8]
call fcn.00402380
mov esi, eax
mov edx, str.Error:
mov byte [ebp - 4], 4
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4027d2
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
mov ecx, dword [ebp - 0x2c4]
add esp, 8
cmp ecx, 8
jb 0x402a49
mov edx, dword [ebp - 0x2d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402aec
jmp 0x402a3f
mov edx, str.File_renamed_successfully_from
call fcn.00402bd0
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, eax
call fcn.00403e30
mov edx, str._to
mov ecx, eax
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
push 0x40
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0x44
push 0
push eax
call fcn.004081f0
add esp, 0x18
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, 0x42df88
test eax, eax
jne 0x402918
mov edx, str.Failed_to_execute:
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
add esp, 8
lea ecx, [ebp - 0x2d8]
call fcn.00402380
mov esi, eax
mov byte [ebp - 4], 5
mov edx, str.Error:
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4027d2
jmp 0x4027d0
mov edx, str.Executable_started:
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
add esp, 8
push dword [ebp - 0x94]
call ebx
push dword [ebp - 0x90]
call ebx
xor esi, esi
jmp 0x402a4e
lea ecx, [ebp - 0x2d8]
call fcn.00402380
mov esi, eax
mov edx, str.Failed_to_delete_file:
mov byte [ebp - 4], 2
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
add esp, 4
mov edx, str._nError:
mov ecx, eax
call fcn.00402bd0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4029a5
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x2c4]
cmp ecx, 8
jb 0x4029fc
mov edx, dword [ebp - 0x2d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4029f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402aec
push ecx
push edx
call fcn.0040673a
add esp, 8
mov edx, str.Failed_to_delete_file:
mov ecx, 0x42df88
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
mov ecx, eax
call fcn.00403e30
push eax
call fcn.00402e80
add esp, 8
lea ecx, [ebp - 0x2d8]
call fcn.00402380
mov esi, eax
mov byte [ebp - 4], 3
jmp 0x4028f8
push ecx
push edx
call fcn.0040673a
add esp, 8
mov esi, 1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x402a84
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402aec
push ecx
push edx
call fcn.0040673a
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x402ace
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402ac4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402aec
push ecx
push edx
call fcn.0040673a
add esp, 8
mov eax, esi
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.004066fc
mov esp, ebp
pop ebp
ret
call fcn.0040b12a
int3