Function at 0x1001ca60
Capabilities:
Connect pipe
Create pipe
Create process on windows
Enumerate processes
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x6f8
mov eax, dword [0x100e8018]
xor eax, esp
mov dword [esp + 0x6f4], eax
push esi
push edi
push 0x208
lea eax, [esp + 0x2ec]
mov dword [esp + 0x38], edx
push 0
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], 0
call fcn.100346a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x38], 0xaabbccdd
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2d0], str.remoteprocessid
mov dword [esp + 0x2d4], 1
mov dword [esp + 0x2d8], str.remoteprocesspath
mov dword [esp + 0x2dc], 1
mov dword [esp + 0x2e0], str.remoteprocessname
mov dword [esp + 0x2e4], 1
mov dword [esp + 0x28], 0
sub eax, 0
je 0x1001cd01
sub eax, 1
je 0x1001ccec
sub eax, 1
jne 0x1001d059
mov esi, dword [0x100ee8ac]
push 0x208
push eax
lea eax, [esp + 0x4f8]
push eax
call fcn.100346a0
add esp, 0xc
lea eax, [esp + 0xa0]
push 0x22c
push 0
push eax
call fcn.100346a0
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001cb71
sub ecx, edx
lea eax, [esp + 0x4f0]
push ecx
push esi
push eax
call fcn.1003b6fb
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1001cbae
call edi
push eax
push str.Error_:_mbstowcs_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
xor eax, eax
jmp 0x1001d05c
push 0
push 2
mov dword [esp + 0xa8], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001cbda
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.Error_:_CreateToolhelp32Snapshot_failed__lastError___d_n
jmp 0x1001cb99
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001cce0
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1001cce0
nop dword [eax + eax]
lea eax, [esp + 0x4f0]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.1003990a
add esp, 8
test eax, eax
jne 0x1001cc9f
push dword [esp + 0xa8]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1001cc61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_:_OpenProcess_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
jmp 0x1001cc9f
mov ecx, esi
call fcn.1001c730
cmp eax, 3
je 0x1001cc7b
cmp eax, 4
je 0x1001cc7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001cc9f
mov ecx, dword [esp + 0xa8]
call fcn.1002d1f0
test eax, eax
jne 0x1001cc94
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001cc9f
cmp dword [esp + 0x14], 0xffffffff
jne 0x1001ccc5
mov dword [esp + 0x14], esi
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001cc10
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001cd61
push str.Error_:_Multiple_processes_found_by_OpenProcessByName_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 8
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001cd61
push dword [0x100ee8a8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x1001cd5d
push 0x44
lea eax, [esp + 0x5c]
xorps xmm0, xmm0
push 0
push eax
movaps xmmword [esp + 0x4c], xmm0
call fcn.100346a0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [0x100ee8b0]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1001cd4f
call edi
push eax
push str.Error_:_CreateProcessA_failed__lastError___d_n
jmp 0x1001cb99
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001d05c
cmp eax, 0xffffffff
je 0x1001d05c
push 0x104
lea eax, [esp + 0x2ec]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1001cd98
call edi
push eax
push str.Error_:_GetModuleFileName_failed__lastError___d_n
jmp 0x1001d039
lea eax, [esp + 0x2e8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1001d04f
cmp word [eax], 0
je 0x1001d04f
push 0
push 0x4e20
push 0
push 0
push 1
push 0
push 2
push 0x100d8d20
mov dword [eax + 2], 0x6c0064
mov dword [eax + 6], 0x6c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x1001cdf8
call edi
push eax
push str.Error_:_CreateNamedPipeW_failed__lastError___d_n
jmp 0x1001d039
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2e8]
call fcn.1001c8b0
test eax, eax
jne 0x1001ce19
call edi
push eax
push str.Error_:_LoadLibraryInTarget_failed__lastError___d_n
jmp 0x1001d039
mov esi, dword [esp + 0x20]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1001ce40
call edi
cmp eax, 0x217
je 0x1001ce40
call edi
push eax
push str.Error_:_ConnectNamedPipe_failed__lastError___d_n
jmp 0x1001d039
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001d031
cmp dword [esp + 0x18], 4
jne 0x1001d031
mov eax, dword [esp + 0x30]
push 4
push 0x3000
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1001ceaa
call edi
push eax
push str.Error_:_VirtualAlloc_argsToSend__failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [esp + 0x1c]
jmp 0x1001d097
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x1001cf02
mov eax, dword [esp + 0x34]
xor esi, esi
mov eax, dword [eax + edi*4]
mov dword [esp + 0x3c], eax
nop
push dword [esp + esi*8 + 0x2d0]
push eax
call fcn.10039a44
add esp, 8
test eax, eax
je 0x1001cef6
mov eax, dword [esp + 0x3c]
inc esi
cmp esi, 3
jl 0x1001cec0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x24]
mov dword [edx + eax*4], ecx
inc dword [esp + 0x24]
jmp 0x1001cef7
inc edi
inc edi
cmp edi, dword [esp + 0x30]
jl 0x1001ceb2
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x18]
push 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push esi
call edi
test eax, eax
je 0x1001d00b
cmp dword [esp + 0x18], 4
jne 0x1001d00b
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x1001cf9c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001cf40
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x30]
call edi
test eax, eax
je 0x1001cfe1
cmp dword [esp + 0x18], 4
jne 0x1001cfe1
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push dword [esp + 0x30]
push dword [eax + esi*4]
push dword [esp + 0x30]
call edi
test eax, eax
je 0x1001cfb7
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jne 0x1001cfb7
inc esi
cmp esi, dword [esp + 0x24]
jl 0x1001cf34
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
jmp 0x1001d097
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push str.Error_:_WriteFile_argToSend__argIndex___d__failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov eax, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [esp + 0x1c]
jmp 0x1001d097
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push str.Error_:_WriteFile_argLength__argIndex___d__failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov eax, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [esp + 0x1c]
jmp 0x1001d097
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.Error_:_WriteFile_nArgsToSend__failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, dword [esp + 0x1c]
jmp 0x1001d097
call edi
push eax
push str.Error_:_WriteFile_magic__failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
mov eax, dword [esp + 0x20]
add esp, 0xc
xor esi, esi
jmp 0x1001d097
call edi
push eax
push str.Error_:_PathFindExtensionW_failed__lastError___d_n
jmp 0x1001d039
or eax, 0xffffffff
mov dword [esp + 0x14], eax
call edi
push eax
push str.Error_:_Unable_to_obtain_process_for_injection__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001d112
xor ecx, ecx
mov dword [esp + 0x20], 0xffffffff
xor esi, esi
mov dword [esp + 0x2c], ecx
cmp eax, 0xffffffff
je 0x1001d0fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1001d0d2
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
jne 0x1001d0c8
call edi
push eax
push str.Error_:_DisconnectNamedPipe_failed__lastError___d_n
push dword [0x100ee8a4]
call fcn.1000f610
add esp, 0xc
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1001d0e4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov ecx, dword [esp + 0x6f4]
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6f4]
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x6fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100313c7
mov esp, ebp
pop ebp
ret