Function at 0x401a10
Capabilities:
Copy file
Create thread
Delete file
Read file on windows
Read pipe
Set console window title
Write pipe

Disassembly:
sub esp, 0x854
push edi
push 0
push 0
push 1
push 0
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x41b304], eax
mov ecx, 0x14a
xor eax, eax
lea edi, [esp + 0x128]
push 1
push 0x401690
rep stosd dword es:[edi], eax
mov dword [esp + 0x650], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0x40afc0
push 0x40ab50
push 0x409388
push str.PSEXESVC.EXE
push 0x409388
push 0x409370
push 0x40ab3c
push 0
call fcn.00401510
add esp, 0x20
test al, al
jne 0x401a8f
or eax, 0xffffffff
pop edi
add esp, 0x854
ret
push ebx
push esi
call fcn.00401310
push 0x40ab3c
push str._rConnecting_with_PsExec_service_on__s...
call fcn.004027fe
push 0x40ab3c
lea eax, [esp + 0x38]
push str._spipepsexecsvc
push eax
call fcn.004027ac
add esp, 0x14
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x2c]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call ebx
cmp eax, 0xffffffff
mov dword [0x409154], eax
jne 0x401af6
call fcn.00401310
push 0x40ab3c
push str._rError_establishing_communication_with_PsExec_service_on__s:_n
jmp 0x401ffc
mov al, byte [0x40ac55]
test al, al
je 0x401bb6
call fcn.00401310
push 0x40ab3c
push 0x41b200
push str._rCopying__s_to__s...
call fcn.004027fe
push 0x5c
push 0x41b200
call fcn.00402d70
add esp, 0x14
test eax, eax
jne 0x401b3d
mov dword [esp + 0x10], 0x41b200
mov eax, dword [esp + 0x10]
jmp 0x401b42
inc eax
mov dword [esp + 0x10], eax
push eax
push 0x40ab3c
lea edx, [esp + 0x660]
push str._sADMIN_System32_s
push edx
call fcn.004027ac
mov cl, byte [0x40ac56]
add esp, 0x10
xor eax, eax
test cl, cl
sete al
lea ecx, [esp + 0x658]
push eax
push ecx
push 0x41b200
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401baf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x401baf
call fcn.00401310
push 0x41b200
push str._rError_copying__s_to_remote_system:_n
call fcn.004027fe
add esp, 8
call esi
jmp 0x40200a
mov byte [esp + 0xf], 1
jmp 0x401bbe
mov dword [esp + 0x10], 0x41b200
push ebp
call fcn.00401310
push 0x40ab3c
push 0x41b200
push str._rStarting__s_on__s...
call fcn.004027fe
mov edi, 0x40b0d0
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov cl, byte [0x40ac58]
mov dl, byte [0x40ac57]
mov dword [esp + 0x134], eax
mov al, byte [0x40ab4c]
test al, al
mov byte [esp + 0x444], cl
mov byte [esp + 0x445], dl
mov byte [esp + 0x446], al
je 0x401c8f
mov edi, 0x40ab50
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x447]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x54b]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40afc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x23c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x344]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41b320
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x138]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [0x409154]
push 4
push edx
push 0x528
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x401d37
call fcn.00401310
push 0x40ab3c
push str._rError_communicating_with_PsExec_service_on__s:_n
call fcn.004027fe
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004012d0
add esp, 4
jmp 0x401fd4
call fcn.00401310
push 0x409260
call fcn.004027fe
mov al, byte [0x40ac58]
add esp, 4
test al, al
jne 0x401eda
call ebp
push eax
push 0x40b0d0
push 0x40ab3c
lea edx, [esp + 0x3c]
push str._spipepsexecsvc__s__d_stdin
push edx
call fcn.004027ac
add esp, 0x14
lea eax, [esp + 0x30]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call ebx
mov dword [0x409148], eax
call ebp
push eax
push 0x40b0d0
push 0x40ab3c
lea ecx, [esp + 0x3c]
push str._spipepsexecsvc__s__d_stdout
push ecx
call fcn.004027ac
add esp, 0x14
lea edx, [esp + 0x30]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push edx
call ebx
mov dword [0x40914c], eax
call ebp
push eax
push 0x40b0d0
push 0x40ab3c
lea eax, [esp + 0x3c]
push str._spipepsexecsvc__s__d_stderr
push eax
call fcn.004027ac
add esp, 0x14
lea ecx, [esp + 0x30]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push ecx
call ebx
mov ecx, dword [0x409148]
mov dword [0x409150], eax
cmp ecx, 0xffffffff
je 0x401f29
cmp eax, 0xffffffff
je 0x401f29
cmp dword [0x40914c], 0xffffffff
je 0x401f29
mov edx, dword [0x41b304]
push ecx
push 0
push 0x401810
mov dword [esp + 0x28], edx
call fcn.00402c1f
mov dword [esp + 0x2c], eax
mov eax, dword [0x40914c]
push eax
push 0
push 0x4018b0
call fcn.00402c1f
mov ecx, dword [0x409150]
mov dword [esp + 0x3c], eax
push ecx
push 0
push 0x401980
call fcn.00402c1f
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x364]
lea eax, [esp + 0x260]
push edx
push eax
push 0x40ab3c
lea ecx, [esp + 0x790]
push str._s:__s__s
push ecx
call fcn.004027ac
add esp, 0x38
lea edx, [esp + 0x760]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push 0
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [0x409148]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x40914c]
push edx
call esi
mov eax, dword [0x409150]
push eax
call esi
mov eax, dword [0x409154]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x13c]
push 0x528
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401f54
call fcn.00401310
push 0x40ab3c
push str._rError_communicating_with_PsExec_service_on__s:_n
call fcn.004027fe
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004012d0
add esp, 4
jmp 0x401fd4
call fcn.00401310
push 0x40ab3c
push str._rError_establishing_communication_with_PsExec_service_on__s:_n
call fcn.004027fe
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004012d0
add esp, 4
jmp 0x401fd4
mov eax, dword [esp + 0x650]
test eax, eax
je 0x401f8d
call fcn.00401310
lea ecx, [esp + 0x23c]
push 0x40ab3c
push ecx
push str._rPsExec_could_not_start__s_on__s:_n
call fcn.004027fe
mov edx, dword [esp + 0x65c]
push edx
call fcn.004012d0
add esp, 0x10
jmp 0x401fd4
mov al, byte [0x40ac58]
test al, al
jne 0x401fba
mov eax, dword [esp + 0x654]
lea ecx, [esp + 0x23c]
push eax
push 0x40ab3c
push ecx
push str._s_exited_on__s_with_error_code__d._n
call fcn.004027fe
add esp, 0x10
jmp 0x401fd4
lea edx, [esp + 0x23c]
push 0x40ab3c
push edx
push str._s_started_on__s._n
call fcn.004027fe
add esp, 0xc
mov al, byte [esp + 0x13]
pop ebp
test al, al
je 0x402013
lea eax, [esp + 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402013
lea ecx, [esp + 0x238]
push ecx
push str.Could_not_delete__s_from_remote_system:_n
call fcn.004027fe
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004012d0
add esp, 4
mov edx, dword [esp + 0x654]
push str.PSEXESVC.EXE
push 0x409388
push 0x40ab3c
push edx
call fcn.00401480
mov eax, dword [esp + 0x660]
add esp, 0x10
pop esi
pop ebx
pop edi
add esp, 0x854
ret