Function at 0x49aa3b
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 [0x540434], 0
mov eax, dword [ebp + 0x18]
mov dword [0x540438], 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 0x49ac19
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49abc2
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 0x49abc0
mov eax, 0xffffffff
jmp 0x49b1a7
jmp 0x49ac09
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 0x49abe9
mov eax, 0xffffffff
jmp 0x49b1a7
push 0
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49ac09
mov eax, 0xffffffff
jmp 0x49b1a7
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 0x49acc1
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49ac44
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x20]
call fcn.0049a9d4
mov dword [ebp - 0x24], eax
jmp 0x49acaf
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 0x49ac8f
mov eax, 0xffffffff
jmp 0x49b1a7
push 0
push 1
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49acaf
mov eax, 0xffffffff
jmp 0x49b1a7
mov eax, dword [ebp - 0x24]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x3c], edx
jmp 0x49acdd
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49acdd
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 0x49ad85
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x49ad08
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x24]
call fcn.0049a9d4
mov dword [ebp - 0x2c], eax
jmp 0x49ad73
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 0x49ad53
mov eax, 0xffffffff
jmp 0x49b1a7
push 0
push 1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
xor al, 1
cmp eax, 0
je 0x49ad73
mov eax, 0xffffffff
jmp 0x49b1a7
mov eax, dword [ebp - 0x2c]
xchg edx, eax
lea eax, [ebp - 0x90]
mov dword [eax + 0x40], edx
jmp 0x49ada1
mov eax, dword [ebp + 0x14]
xor al, 1
cmp eax, 0
je 0x49ada1
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 0x49adc3
mov eax, dword [ebp + 0x20]
cmp eax, 0
jne 0x49adc3
mov eax, dword [ebp + 0x24]
cmp eax, 0
jne 0x49adc3
xor eax, eax
jmp 0x49adc6
xor eax, eax
inc eax
cmp eax, 0
je 0x49aded
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 0x49ae12
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 0x49ae3d
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 0x49aed1
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 0x54bc0a
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 0x54bc22
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 0x49aed7
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 0x49b016
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov eax, 2
cmp eax, edx
jne 0x49aff6
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 0x54bc40
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 [0x540438], 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 0x49aff4
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49afea
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49b1a7
jmp 0x49b016
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49b00c
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.DLL_free]
add esp, 4
mov eax, 0xffffffff
jmp 0x49b1a7
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49b02c
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 0x49b096
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 0x49b08d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
cmp eax, 0
je 0x49b0c9
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49b0c0
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call fcn.0049a912
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
cmp eax, 0
je 0x49b12c
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x49b0f3
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0049a912
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x49b114
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, 0
jle 0x49b114
jmp 0x49b118
xor eax, eax
jmp 0x49b11b
xor eax, eax
inc eax
cmp eax, 0
je 0x49b12c
mov dword [0x540434], 1
mov eax, dword [ebp + 0x14]
cmp eax, 0
jne 0x49b144
mov eax, dword [ebp + 0xc]
cmp eax, 0
jne 0x49b144
xor eax, eax
jmp 0x49b147
xor eax, eax
inc eax
cmp eax, 0
je 0x49b16e
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 0x49b17a
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 0x49b1a7
leave
ret 0x20