Function at 0x49d39d
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 [0x573b74], 0
mov eax, dword [ebp + 0x18]
mov dword [0x573b78], 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 0x49d57b
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49d524
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 0x49d522
mov eax, 0xffffffff
jmp 0x49db09
jmp 0x49d56b
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 0x49d54b
mov eax, 0xffffffff
jmp 0x49db09
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49d56b
mov eax, 0xffffffff
jmp 0x49db09
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 0x49d623
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49d5a6
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x20]
call fcn.0049d336
mov dword [ebp - 0x24], eax
jmp 0x49d611
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 0x49d5f1
mov eax, 0xffffffff
jmp 0x49db09
push 0
push 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49d611
mov eax, 0xffffffff
jmp 0x49db09
mov eax, dword [ebp - 0x24]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
jmp 0x49d63f
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49d63f
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 0x49d6e7
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49d66a
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x24]
call fcn.0049d336
mov dword [ebp - 0x2c], eax
jmp 0x49d6d5
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 0x49d6b5
mov eax, 0xffffffff
jmp 0x49db09
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49d6d5
mov eax, 0xffffffff
jmp 0x49db09
mov eax, dword [ebp - 0x2c]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
jmp 0x49d703
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49d703
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 0x49d725
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x49d725
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x49d725
xor eax, eax
jmp 0x49d728
xor eax, eax
inc eax
cmp eax, 0
je 0x49d74f
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 0x49d774
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 0x49d79f
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 0x49d833
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 0x57ecf0
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 0x57ed08
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 0x49d839
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 0x49d978
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x49d958
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 0x57ed26
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 [0x573b78], 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 0x49d956
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49d94c
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49db09
jmp 0x49d978
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49d96e
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49db09
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49d98e
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 0x49d9f8
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 0x49d9ef
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x49da2b
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49da22
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call fcn.0049d274
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x49da8e
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49da55
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0049d274
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49da76
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x49da76
jmp 0x49da7a
xor eax, eax
jmp 0x49da7d
xor eax, eax
inc eax
cmp eax, 0
je 0x49da8e
mov dword [0x573b74], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x49daa6
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x49daa6
xor eax, eax
jmp 0x49daa9
xor eax, eax
inc eax
cmp eax, 0
je 0x49dad0
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 0x49dadc
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 0x49db09
leave
ret 0x20