Function at 0x405680
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Read file on windows
Schedule task via at

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411e56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c8
mov eax, dword [0x4161c0]
push ebx
push esi
push edi
mov dword [esp + 0x8cc], eax
push 0x104
lea eax, [esp + 0x2c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x2c0]
push 0x5c
push ecx
call fcn.004080e6
add esp, 8
add eax, 2
push 0x416ca8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0x41360c
lea ecx, [esp + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40575c
push str.SetSchedule:Stdout_pipe_creation_failed_n
call fcn.00403310
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea edx, [esp + 0x30]
push edx
call edi
push eax
mov eax, dword [esp + 0x44]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push 0
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4057b5
push str.SetSchedule:Stdin_pipe_creation_failed_n
call fcn.00403310
add esp, 4
push 2
push 0
push 0
lea edx, [esp + 0x34]
push edx
call edi
push eax
mov eax, dword [esp + 0x50]
push eax
call edi
push eax
call ebx
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov ax, word [0x413564]
mov edx, dword [0x413560]
xor ecx, ecx
mov dword [esp + 0x9e], ecx
mov dword [esp + 0xa2], ecx
mov dword [esp + 0xa6], ecx
mov dword [esp + 0xaa], ecx
mov dword [esp + 0xae], ecx
mov word [esp + 0x9c], ax
mov dword [esp + 0xb2], ecx
xor eax, eax
mov word [esp + 0xb6], cx
mov ecx, 0x11
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x20], eax
or edi, 0x100
push str.SetSchedule:_Cmdline_s_n
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x90], edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x28], eax
call fcn.00403310
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [esp + 0xb8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405bdf
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x38]
push edx
call esi
mov eax, dword [0x4178f4]
mov ecx, 0x4178f4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x8e0], 0
call esi
mov ecx, dword [esp + 0x24]
push 0
lea edx, [esp + 0x30]
push edx
push 0x3ff
lea eax, [esp + 0x4d4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40599e
lea esp, [esp]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40599e
lea edx, [esp + 0x4c8]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + eax + 0x4cc], 0
call fcn.00401ea0
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
test eax, eax
jl 0x40597b
lea eax, [esp + 0xb8]
push eax
push edi
call fcn.00407624
add esp, 8
test eax, eax
je 0x40597b
sub eax, edi
sar eax, 1
mov ebx, eax
test ebx, ebx
jg 0x4059e5
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x3ff
lea edx, [esp + 0x4d4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405930
mov edx, dword [esp + 0x24]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
mov al, byte [ebp + 8]
test al, al
jne 0x405aef
add edi, 0xfffffff0
mov dword [esp + 0x8dc], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bdf
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
jmp 0x405bdf
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov al, byte [ebp + 8]
test al, al
jne 0x405b8f
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00401cd0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8e0], 1
call fcn.00401f40
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x8dc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0xa
lea ecx, [esp + 0x14]
call fcn.00401b30
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax*2]
push edx
call fcn.00408fe1
push eax
lea eax, [esp + 0x18]
push str.AT__d__DELETE
push eax
call fcn.004013f0
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
push str.SetSchedule:_Cmdline_s_n
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x38], ecx
call fcn.00403310
mov edx, dword [esp + 0x28]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ae1
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea ecx, [esp + 0x10]
call fcn.00401250
jmp 0x405bdf
push 0
call fcn.00408116
push eax
call fcn.004090f1
lea ecx, [esp + 0xc0]
add esp, 8
push ecx
call fcn.004090fb
cdq
mov ecx, 0x3c
idiv ecx
push edx
call fcn.004090fb
cdq
mov ecx, 0x18
idiv ecx
push edx
lea edx, [esp + 0x1c]
push str.AT__d:_02d__interactive__every:monday_Tuesday_Wednesday_Thursday_Friday_Saturday_Sunday__s
push edx
call fcn.004013f0
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push edi
push str.SetSchedule:_Cmdline_s_n
mov dword [esp + 0x6c], 0x44
mov dword [esp + 0x3c], eax
call fcn.00403310
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405bac
add edi, 0xfffffff0
mov dword [esp + 0x8dc], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x405bd5
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
add edi, 0xfffffff0
mov dword [esp + 0x8dc], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405bdf
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x8d4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8cc]
call fcn.004077be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret