Function at 0x49e478
Capabilities:
Create pipe
Create process on windows
Create process suspended
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x90
mov dword [0x5783dc], 0
mov eax, dword [ebp + 0x18]
mov dword [0x5783e0], eax
mov eax, 0xc
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 4], edx
xor eax, eax
inc eax
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 8], edx
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, 0
mov dword [ebp - 0x24], 0
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x28], 0
mov eax, 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
push 0x44
push 0
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCRT.DLL_memset]
add esp, 0xc
mov eax, 0x44
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x38], edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
push 0
push 0
push 3
lea eax, [ebp - 0x3c]
push eax
push 2
push 0x40000000
push str.nul:
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x49e656
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e5ff
push 0
mov eax, pe_nt_image_headers32
or eax, 0x8000000
push eax
push 3
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x80000000
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x49e5fd
mov eax, 0xffffffff
jmp 0x49ebe4
jmp 0x49e646
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x49e626
mov eax, 0xffffffff
jmp 0x49ebe4
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e646
mov eax, 0xffffffff
jmp 0x49ebe4
mov eax, dword [ebp - 0x18]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x49e6fe
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e681
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x20]
call fcn.0049e411
mov dword [ebp - 0x24], eax
jmp 0x49e6ec
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
push 0x1000
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x49e6cc
mov eax, 0xffffffff
jmp 0x49ebe4
push 0
push 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e6ec
mov eax, 0xffffffff
jmp 0x49ebe4
mov eax, dword [ebp - 0x24]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
jmp 0x49e71a
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49e71a
mov eax, dword [ebp - 0x30]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x49e7c2
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e745
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x24]
call fcn.0049e411
mov dword [ebp - 0x2c], eax
jmp 0x49e7b0
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
push 0x1000
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x49e790
mov eax, 0xffffffff
jmp 0x49ebe4
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e7b0
mov eax, 0xffffffff
jmp 0x49ebe4
mov eax, dword [ebp - 0x2c]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
jmp 0x49e7de
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49e7de
mov eax, dword [ebp - 0x30]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 0x1c]
cmp eax, 0
jne 0x49e800
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x49e800
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x49e800
xor eax, eax
jmp 0x49e803
xor eax, eax
inc eax
cmp eax, 0
je 0x49e82a
mov dword [ebp + 0xc], 1
mov dword [ebp - 0x10], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49e84f
mov dword [ebp - 0x10], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x49e87a
lea eax, [ebp - 0x90]
mov eax, dword [eax + 0x2c]
or eax, 1
mov edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
xchg edx, eax
lea eax, [ebp - 0x3c]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49e90e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
mov dword [ebp - 0x94], eax
mov eax, 0x1a
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
push 0x16
push 0x584a4a
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x94]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, 0x16
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push 4
push 0x584a62
mov eax, dword [ebp - 0x14]
add eax, 0x16
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
jmp 0x49e914
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x49ea53
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x49ea33
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
mov dword [ebp - 0x94], eax
mov eax, 0x1a
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
push 0x16
push str.cmd__s__c__
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x94]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, 0x16
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push 4
push 0x584a80
mov eax, dword [ebp - 0x14]
add eax, 0x16
mov edx, dword [ebp - 0x94]
add eax, edx
push eax
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov dword [ebp + 0x18], 1
mov dword [0x5783e0], 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x49ea31
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49ea27
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49ebe4
jmp 0x49ea53
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49ea49
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49ebe4
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49ea69
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x49ead3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x94], eax
push 0
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x98], eax
mov eax, 0
mov edx, dword [ebp - 0x98]
cmp eax, edx
jne 0x49eaca
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x49eb06
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49eafd
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call fcn.0049e34f
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x49eb69
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49eb30
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0049e34f
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49eb51
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x49eb51
jmp 0x49eb55
xor eax, eax
jmp 0x49eb58
xor eax, eax
inc eax
cmp eax, 0
je 0x49eb69
mov dword [0x5783dc], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x49eb81
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x49eb81
xor eax, eax
jmp 0x49eb84
xor eax, eax
inc eax
cmp eax, 0
je 0x49ebab
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
jmp 0x49ebb7
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x4c]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x49ebe4
leave
ret 0x20