Function at 0x4025a3
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x9c
mov eax, dword [0x40b200]
push ebx
push esi
push edi
mov edi, 0x40b200
xor esi, esi
mov ecx, edi
mov dword [ebp + 0x64], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x5c], eax
mov eax, dword [0x40b200]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x7c]
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
jmp 0x402969
mov eax, dword [0x40b200]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x6c], eax
lea eax, [ebp + 0x6c]
push eax
mov eax, dword [ebp + 0x7c]
call fcn.00402f8d
pop ecx
lea ebx, [ebp + 0x6c]
mov dword [ebp + 0x54], eax
call fcn.0040426a
call fcn.004042b7
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x402656
jge 0x402636
push 0x80070057
call fcn.00404e5f
mov ecx, dword [ebp + 0x6c]
cmp byte [ecx], 0x5b
jne 0x402656
mov ecx, dword [ecx - 0xc]
lea esi, [ecx - 1]
lea edi, [ebp + 0x6c]
call fcn.00403a1f
cmp al, 0x5d
je 0x402a5b
mov edi, 0x40b200
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x7c], eax
lea eax, [ebp + 0x14]
push eax
push 4
pop ecx
lea eax, [ebp + 0x6c]
call fcn.00403cfc
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.exe
push eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00404c4b
test bl, bl
je 0x402815
mov eax, dword [ebp + 0x5c]
cmp dword [eax - 0xc], 0
jne 0x40295b
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax - 0xc]
push 4
pop edx
lea eax, [ebp + 0x30]
push eax
sub ecx, edx
lea eax, [ebp + 0x6c]
call fcn.00403c94
mov edi, 0x409550
push edi
lea eax, [ebp + 0x60]
push eax
lea esi, [ebp + 0x30]
call fcn.00403d43
mov eax, dword [ebp + 0x30]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x60]
mov edx, dword [eax - 0xc]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0x40]
add edx, 5
push eax
sub ecx, edx
lea eax, [ebp + 0x6c]
call fcn.00403c94
push edi
lea eax, [ebp + 0x58]
push eax
lea esi, [ebp + 0x40]
call fcn.00403d43
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x58]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp + 0x60]
mov ecx, dword [ecx - 0xc]
lea edx, [eax + ecx + 6]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax - 0xc]
lea eax, [ebp + 0x34]
push eax
sub ecx, edx
lea eax, [ebp + 0x6c]
call fcn.00403c94
push edi
lea eax, [ebp + 0x50]
push eax
lea esi, [ebp + 0x34]
call fcn.00403d43
mov eax, dword [ebp + 0x34]
add eax, 0xfffffff0
call fcn.00404c4b
lea ebx, [ebp + 0x60]
call fcn.0040426a
call fcn.004042b7
lea ebx, [ebp + 0x58]
call fcn.0040426a
call fcn.004042b7
lea ebx, [ebp + 0x50]
call fcn.0040426a
call fcn.004042b7
lea eax, [ebp + 0x60]
push str..exe
push eax
mov eax, dword [ebp + 0x78]
add eax, 0x4c
lea edi, [ebp + 0x20]
call fcn.00403d87
pop ecx
lea edi, [ebp + 0x38]
call fcn.00403dde
mov eax, dword [ebp + 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00404c4b
mov esi, dword [ebp + 0x38]
push esi
push str.WHENU
push dword [ebp + 0x60]
call fcn.0040379f
add esp, 0xc
test al, al
je 0x402a70
mov eax, edi
lea edi, [ebp + 0x5c]
call fcn.00404196
lea eax, [ebp + 0x58]
lea edi, [ebp + 0x48]
call fcn.00404196
mov eax, dword [ebp + 0x50]
cmp dword [eax - 0xc], 1
jne 0x4027de
cmp byte [eax], 0x31
mov byte [ebp + 0x6b], 1
je 0x4027e2
mov byte [ebp + 0x6b], 0
lea eax, [esi - 0x10]
call fcn.00404c4b
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x58]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
call fcn.00404c4b
mov edi, 0x40b200
jmp 0x40295b
lea eax, [ebp + 0x18]
push eax
push 7
pop ecx
lea eax, [ebp + 0x6c]
call fcn.00403cfc
mov eax, dword [eax]
push str.string
push eax
call esi
mov ebx, eax
mov eax, dword [ebp + 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00404c4b
test bl, bl
je 0x4028d3
mov eax, dword [0x40b200]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x4c], eax
mov eax, dword [0x40b200]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax - 0xc]
push 7
pop edx
lea eax, [ebp + 0x10]
push eax
sub ecx, edx
lea eax, [ebp + 0x6c]
call fcn.00403c94
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x24]
push eax
push esi
push dword [ebp + 0x78]
lea eax, [ebp + 0x4c]
call fcn.00402feb
lea eax, [esi - 0x10]
call fcn.00404c4b
mov eax, dword [ebp + 0x4c]
cmp dword [eax - 0xc], 0
je 0x4028b8
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x24]
call fcn.00403f48
mov eax, dword [ebp + 0x44]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x4c]
add eax, 0xfffffff0
call fcn.00404c4b
jmp 0x40295b
or dword [ebp + 0x64], 1
lea eax, [ebp + 0x1c]
push eax
push 0xa
pop ecx
lea eax, [ebp + 0x6c]
call fcn.00403cfc
mov eax, dword [eax]
push str.condition
push eax
call esi
test eax, eax
jne 0x402927
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax - 0xc]
or dword [ebp + 0x64], 2
lea eax, [ebp + 0x3c]
push eax
push 0xa
sub ecx, 0xa
pop edx
lea eax, [ebp + 0x6c]
call fcn.00403c94
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x3c]
push dword [ebp + 0x78]
call fcn.0040316d
test al, al
jne 0x402927
mov bl, 1
jmp 0x402929
xor bl, bl
test byte [ebp + 0x64], 2
je 0x40293e
mov eax, dword [ebp + 0x3c]
and dword [ebp + 0x64], 0xfffffffd
add eax, 0xfffffff0
call fcn.00404c4b
test byte [ebp + 0x64], 1
je 0x402953
mov eax, dword [ebp + 0x1c]
and dword [ebp + 0x64], 0xfffffffe
add eax, 0xfffffff0
call fcn.00404c4b
test bl, bl
jne 0x402a99
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x54]
cmp byte [eax], 0
jne 0x4025f0
mov ebx, dword [ebp + 0x5c]
cmp dword [ebx - 0xc], 0
je 0x402a30
mov eax, dword [0x40b200]
mov ecx, edi
call dword [eax + 0xc]
mov esi, dword [ebp + 0x78]
add eax, 0x10
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x24]
push eax
lea eax, [esi + 0x34]
push eax
push dword [ebp + 0x48]
call fcn.004035da
add esp, 0x10
push 0xe
xor eax, eax
pop ecx
mov dword [ebp - 0x2c], 0x3c
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x54]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 0x440
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x402a02
cmp byte [ebp + 0x6b], 0
jne 0x402a02
cmp dword [ebp + 0xc], 0
je 0x402a11
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0xc], 0
je 0x402a11
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402a28
lea eax, [ebp + 0x5c]
push eax
add esi, 0x70
call fcn.004040aa
lea eax, [edi - 0x10]
call fcn.00404c4b
lea edi, [ebp + 0x24]
call fcn.0040439a
mov eax, dword [ebp + 0x48]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x5c]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x7c]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
call fcn.00404c4b
mov edi, 0x40b200
jmp 0x402972
lea eax, [esi - 0x10]
call fcn.00404c4b
mov eax, dword [ebp + 0x50]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x58]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x60]
add eax, 0xfffffff0
call fcn.00404c4b
mov eax, dword [ebp + 0x6c]
add eax, 0xfffffff0
jmp 0x402a2b