Function at 0x4a2523
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
push 0xf03
sub esp, 0x90
mov dword [0x625c58], 0
mov eax, dword [ebp + 0x18]
mov dword [0x625c5c], eax
mov eax, 0xc
xchg edx, eax
lea eax, [ebp - 0x40]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x40]
mov dword [eax + 4], edx
xor eax, eax
inc eax
xchg edx, eax
lea eax, [ebp - 0x40]
mov dword [eax + 8], edx
mov eax, 0
mov dword [ebp - 0x24], 0
mov eax, 0
mov dword [ebp - 0x28], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, 0
mov dword [ebp - 0x2c], 0
mov eax, 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
push 0x44
push 0
lea eax, [ebp - 0x94]
push eax
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memset]
add esp, 0xc
mov eax, 0x44
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x2c], edx
push 0xfffffffffffffff6
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x38], edx
push 0xfffffffffffffff5
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x3c], edx
push 0xfffffffffffffff4
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x40], edx
push 0
push 0
push 3
lea eax, [ebp - 0x40]
push eax
push 2
push 0x40000000
push str.nul:
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x4a2736
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4a26d3
push 0
mov eax, pe_nt_image_headers32
or eax, 0x8000000
push eax
push 3
lea eax, [ebp - 0x40]
push eax
push 0
push 0x80000000
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x4a26d1
mov eax, 0xffffffff
jmp 0x4a2d4e
jmp 0x4a2726
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x4a2700
mov eax, 0xffffffff
jmp 0x4a2d4e
push 0
push 1
push dword [ebp - 0x20]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x4a2726
mov eax, 0xffffffff
jmp 0x4a2d4e
mov eax, dword [ebp - 0x1c]
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x4a27e6
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4a2761
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x20]
call fcn.004a24ab
mov dword [ebp - 0x28], eax
jmp 0x4a27d4
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax], edx
push 0x1000
call fcn.00424c9c
mov edx, eax
mov eax, dword [ebp + 0x20]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x4a27ae
mov eax, 0xffffffff
jmp 0x4a2d4e
push 0
push 1
push dword [ebp - 0x24]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x4a27d4
mov eax, 0xffffffff
jmp 0x4a2d4e
mov eax, dword [ebp - 0x28]
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x3c], edx
jmp 0x4a2802
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x4a2802
mov eax, dword [ebp - 0x34]
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x4a28b2
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4a282d
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x24]
call fcn.004a24ab
mov dword [ebp - 0x30], eax
jmp 0x4a28a0
mov eax, 0
xchg edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
push 0x1000
call fcn.00424c9c
mov edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
xor al, 1
cmp eax, 0
je 0x4a287a
mov eax, 0xffffffff
jmp 0x4a2d4e
push 0
push 1
push dword [ebp - 0x2c]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x4a28a0
mov eax, 0xffffffff
jmp 0x4a2d4e
mov eax, dword [ebp - 0x30]
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x40], edx
jmp 0x4a28ce
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x4a28ce
mov eax, dword [ebp - 0x34]
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 0x1c]
cmp eax, 0
jne 0x4a28f0
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x4a28f0
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x4a28f0
xor eax, eax
jmp 0x4a28f3
xor eax, eax
inc eax
cmp eax, 0
je 0x4a291a
mov dword [ebp + 0xc], 1
mov dword [ebp - 0x14], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x4a293f
mov dword [ebp - 0x14], 1
mov eax, 0x100
xchg edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 0x10]
xor al, 1
cmp eax, 0
je 0x4a296a
lea eax, [ebp - 0x94]
mov eax, dword [eax + 0x2c]
or eax, 1
mov edx, eax
lea eax, [ebp - 0x94]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x14]
xchg edx, eax
lea eax, [ebp - 0x40]
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4a2a16
push dword [ebp + 8]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
mov dword [ebp - 0x98], eax
mov eax, 0x1a
mov edx, dword [ebp - 0x98]
add eax, edx
push eax
call fcn.00424c9c
mov dword [ebp - 0x18], eax
push 0x16
push 0x63236a
push dword [ebp - 0x18]
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x98]
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add eax, 0x16
push eax
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push 4
push 0x632382
mov eax, dword [ebp - 0x18]
add eax, 0x16
mov edx, dword [ebp - 0x98]
add eax, edx
push eax
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
jmp 0x4a2a1c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0x18]
push 0
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x4a2b79
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x4a2b5d
push dword [ebp + 8]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
shl eax, 1
mov dword [ebp - 0x98], eax
mov eax, 0x1a
mov edx, dword [ebp - 0x98]
add eax, edx
push eax
call fcn.00424c9c
mov dword [ebp - 0x18], eax
push 0x16
push str.cmd__s__c__
push dword [ebp - 0x18]
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x98]
push dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add eax, 0x16
push eax
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
push 4
push 0x6323a0
mov eax, dword [ebp - 0x18]
add eax, 0x16
mov edx, dword [ebp - 0x98]
add eax, edx
push eax
mov dword [section..data], ebp
call dword [sym.imp.MSVCRT.DLL_memcpy]
add esp, 0xc
mov dword [ebp + 0x18], 1
mov dword [0x625c5c], 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0x18]
push 0
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
xor al, 1
cmp eax, 0
je 0x4a2b5b
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4a2b51
push dword [ebp - 0x18]
call fcn.00424d80
mov eax, 0xffffffff
jmp 0x4a2d4e
jmp 0x4a2b79
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4a2b6f
push dword [ebp - 0x18]
call fcn.00424d80
mov eax, 0xffffffff
jmp 0x4a2d4e
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4a2b8b
push dword [ebp - 0x18]
call fcn.00424d80
mov eax, 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 0
je 0x4a2c07
push dword [ebp - 0x1c]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
push 0
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x98]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0x20]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x9c], eax
mov eax, 0
mov edx, dword [ebp - 0x9c]
cmp eax, edx
jne 0x4a2bf8
push dword [ebp - 0x20]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x4a2c46
push dword [ebp - 0x28]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a2c37
push dword [ebp + 0x20]
push dword [ebp - 0x24]
call fcn.004a23dc
push dword [ebp - 0x24]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x4a2cb5
push dword [ebp - 0x30]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4a2c76
push dword [ebp + 0x24]
push dword [ebp - 0x2c]
call fcn.004a23dc
push dword [ebp - 0x2c]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x4a2c9d
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x4a2c9d
jmp 0x4a2ca1
xor eax, eax
jmp 0x4a2ca4
xor eax, eax
inc eax
cmp eax, 0
je 0x4a2cb5
mov dword [0x625c58], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x4a2ccd
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x4a2ccd
xor eax, eax
jmp 0x4a2cd0
xor eax, eax
inc eax
cmp eax, 0
je 0x4a2d03
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
mov eax, dword [eax]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x50]
mov eax, dword [eax]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
jmp 0x4a2d0f
lea eax, [ebp - 0x50]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x50]
mov eax, dword [eax]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x50]
mov eax, dword [eax + 4]
push eax
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x34]
mov dword [section..data], ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x4a2d4e
leave
ret 0x20