Function at 0x49e38d
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 [0x579504], 0
mov eax, dword [ebp + 0x18]
mov dword [0x579508], 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 0x49e56b
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e514
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 0x49e512
mov eax, 0xffffffff
jmp 0x49eaf9
jmp 0x49e55b
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 0x49e53b
mov eax, 0xffffffff
jmp 0x49eaf9
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e55b
mov eax, 0xffffffff
jmp 0x49eaf9
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 0x49e613
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e596
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x20]
call fcn.0049e326
mov dword [ebp - 0x24], eax
jmp 0x49e601
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 0x49e5e1
mov eax, 0xffffffff
jmp 0x49eaf9
push 0
push 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e601
mov eax, 0xffffffff
jmp 0x49eaf9
mov eax, dword [ebp - 0x24]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
jmp 0x49e62f
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49e62f
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 0x49e6d7
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49e65a
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x24]
call fcn.0049e326
mov dword [ebp - 0x2c], eax
jmp 0x49e6c5
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 0x49e6a5
mov eax, 0xffffffff
jmp 0x49eaf9
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49e6c5
mov eax, 0xffffffff
jmp 0x49eaf9
mov eax, dword [ebp - 0x2c]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
jmp 0x49e6f3
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49e6f3
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 0x49e715
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x49e715
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x49e715
xor eax, eax
jmp 0x49e718
xor eax, eax
inc eax
cmp eax, 0
je 0x49e73f
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 0x49e764
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 0x49e78f
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 0x49e823
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 0x585b62
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 0x585b7a
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 0x49e829
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 0x49e968
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x49e948
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 0x585b98
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 [0x579508], 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 0x49e946
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49e93c
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49eaf9
jmp 0x49e968
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49e95e
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49eaf9
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49e97e
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 0x49e9e8
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 0x49e9df
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x49ea1b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49ea12
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call fcn.0049e264
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x49ea7e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49ea45
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0049e264
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49ea66
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x49ea66
jmp 0x49ea6a
xor eax, eax
jmp 0x49ea6d
xor eax, eax
inc eax
cmp eax, 0
je 0x49ea7e
mov dword [0x579504], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x49ea96
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x49ea96
xor eax, eax
jmp 0x49ea99
xor eax, eax
inc eax
cmp eax, 0
je 0x49eac0
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 0x49eacc
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 0x49eaf9
leave
ret 0x20