Function at 0x403746
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create reverse shell
Create two anonymous pipes
Read file on windows
Read pipe
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push 0x48
call fcn.00405033
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0xc
call fcn.00405033
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.00405033
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 4]
add ebx, 0x2c
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 1
cmp dword [ebp + 0x14], 1
jne 0x40382a
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 0
jmp 0x4038bb
cmp dword [ebp + 0x14], 3
jne 0x40384a
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 2
jmp 0x4038bb
cmp dword [ebp + 0x14], 4
jne 0x40386a
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 3
jmp 0x4038bb
cmp dword [ebp + 0x14], 5
jne 0x40388a
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 4
jmp 0x4038bb
cmp dword [ebp + 0x14], 6
jne 0x4038aa
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 7
jmp 0x4038bb
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov word [ebx], 1
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40390a
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40390a
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x40390a
xor eax, eax
jmp 0x40390f
mov eax, 1
test eax, eax
je 0x403ae1
mov ebx, dword [ebp - 4]
add ebx, 0x2c
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x2c
mov dword [ebp - 0x2c], ebx
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push 2
mov ebx, 0xc8
call fcn.00407c90
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebx], 1
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4039b2
push 0x3af
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4039eb
push 0x3e0
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403a8d
push VariantClear
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x403a19
mov eax, 0x40c3d8
push eax
push 1
mov ebx, 0x194
call fcn.00407b60
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x403a52
add eax, 8
push eax
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403a7c
push 0x474
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov ebx, dword [ebp - 4]
add ebx, 0x3c
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403ab7
mov ebx, dword [ebp - 4]
add ebx, 0x40
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403ae1
mov ebx, dword [ebp - 4]
add ebx, 0x44
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
push eax
push 0x44
call fcn.00405033
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push 0
push 0
push 1
push 0
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x403c06
push 0x5d2
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x2c]
push ebx
mov edi, dword [ebp - 0x30]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00405045
add esp, 4
pop eax
test eax, eax
je 0x403ff4
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x403f89
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push 0xffffffff
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403d1f
push 0x66b
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
cmp dword [ebp + 0x28], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403d6f
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push dword [ebp + 0x24]
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403d6f
push 0x6d6
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403e7c
mov dword [ebp - 0x28], esp
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
je 0x403db8
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x403de2
push 0x757
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
test eax, eax
je 0x403e7c
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x1bc
call fcn.00407b70
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403e1f
push ebx
call fcn.00405045
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp - 0x24], 0
jle 0x403e7c
mov dword [ebp - 0x28], esp
push 0
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
je 0x403e52
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x403e7c
push 0x805
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x403f89
mov dword [ebp - 0x28], esp
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
mov ebx, dword [ebp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x403ec5
add eax, 8
push eax
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x403eef
push 0x8c0
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
test eax, eax
je 0x403f89
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x1bc
call fcn.00407b70
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403f2c
push ebx
call fcn.00405045
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
cmp dword [ebp - 0x24], 0
jle 0x403f89
mov dword [ebp - 0x28], esp
push 0
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x403f5f
add eax, 8
push eax
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x403f89
push 0x96e
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403fbd
push 0x9e9
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
add ebx, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x403ff4
push 0xa0c
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x404043
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x404043
cmp dword [ebp + 0x38], 0
mov eax, 0
sete al
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x404043
xor eax, eax
jmp 0x404048
mov eax, 1
test eax, eax
je 0x404100
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40407c
push 0xae7
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4040a8
push 0xb01
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4040d4
push 0xb1b
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [0x40c78a]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404100
push 0xb35
push 0x4016178
push 6
call fcn.00405039
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x404108
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00405045
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00405045
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.00405045
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x34