Function at 0x4029dd
Capabilities:
Create pipe
Create process on windows
Create process suspended
Get common file path
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push 0xc
call fcn.0041d265
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x4c
call fcn.0041d265
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x13
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0x10
call fcn.0041d265
add esp, 4
mov dword [ebp - 0x24], 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 - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0xc
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 1
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, 4
call sub.kernel32.dll_CreatePipe
cmp dword [ebp - 0x38], esp
je 0x402b08
push 0xaf
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402b1f
mov eax, 0x41f5e1
jmp 0x4034ac
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x14]
add ebx, 0x2c
mov dword [ebp - 0x38], ebx
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0x100
push 2
mov ebx, 0xc8
call sub.wmvert.dll_wm_BOr
add esp, 0x1c
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x30
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov word [ebx], 0
mov ebx, dword [ebp - 0x14]
add ebx, 0x3c
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x40
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0x44
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
mov dword [ebx], eax
push 1
push 1
push 0x104
call fcn.00403518
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call sub.wmvert.dll_wm_SpaceBin
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402bec
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402714
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push 0x25
push dword [ebp - 0x38]
push 0
mov eax, 5
call sub.Shell32.dll_SHGetSpecialFolderPathW
cmp dword [ebp - 0x3c], esp
je 0x402c37
push 0x2ad
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
cmp dword [0x44a374], 0x501
mov eax, 0
setge al
test eax, eax
je 0x402c5b
mov eax, str.cmd.exe
jmp 0x402c60
mov eax, str.command.com
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push eax
call fcn.004023f3
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402c8b
push ebx
call fcn.0041d26b
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00402714
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040353d
mov dword [ebp - 0x4c], eax
push 1
push 1
push dword [ebp - 0x4c]
call fcn.00403518
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x48]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fild dword [ebp - 0x50]
fstp qword [ebp - 0x60]
fadd qword [ebp - 0x60]
fstp qword [ebp - 0x68]
fld qword [ebp - 0x68]
call fcn.0040101d
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x402cf3
mov eax, 0x41f5e1
push eax
push 3
mov ebx, 0x914
call sub.wmvert.dll_wm_WriteMem
add esp, 0x28
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x402d16
push ebx
call fcn.0041d26b
add esp, 4
push 1
push 1
mov eax, str.__c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004023f3
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x402d41
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x3c]
mov ecx, 2
call fcn.004024d9
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402d69
push ebx
call fcn.0041d26b
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402d7d
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x402d94
mov eax, 0x41f5e1
push eax
push 1
mov ebx, 0x194
call sub.wmvert.dll_wm_BinLen
add esp, 0x10
mov dword [ebp - 0x20], eax
push 1
push 1
push 0x7fff
call fcn.00403518
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x48]
fsub qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.0040101d
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call sub.wmvert.dll_wm_SpaceBin
add esp, 0x10
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.004024d9
add esp, 8
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x402e1e
push ebx
call fcn.0041d26b
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x402e32
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402714
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402735
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 4]
push eax
call fcn.00403588
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push eax
push 0x48
call fcn.0041d265
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 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
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 dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov eax, 6
call sub.kernel32.dll_CreateProcessW
cmp dword [ebp - 0x44], esp
je 0x402f83
push 0x50f
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x48]
push ebx
mov edi, dword [ebp - 0x4c]
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x10]
mov eax, 7
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x403083
push 0x554
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4030c3
mov dword [ebp - 0x38], esp
push dword [ebp - 0xc]
mov eax, 7
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x4030b9
push 0x59e
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
mov eax, 0x41f5e1
jmp 0x4034ac
mov ebx, dword [ebp - 0x24]
add ebx, 4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 7
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x3c], esp
je 0x4030fa
push 0x5cf
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
push 0x3e8
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 8
call sub.user32.dll_WaitForInputIdle
cmp dword [ebp - 0x3c], esp
je 0x403133
push 0x5f2
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
cmp dword [ebp - 0x28], 0xffffffff
je 0x403389
mov dword [ebp - 0x38], esp
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
mov eax, 9
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0x38], esp
je 0x403181
push 0x659
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
cmp dword [ebp - 0x28], 0
jle 0x40330c
push 0x80000301
push 0
push dword [ebp - 0x28]
push 1
mov ebx, 0x1bc
call sub.wmvert.dll_wm_SpaceBin
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4031be
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], esp
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4031db
add eax, 8
push eax
push dword [ebp - 0xc]
mov eax, 0xa
call sub.kernel32.dll_ReadFile
cmp dword [ebp - 0x38], esp
je 0x403205
push 0x6fc
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov ecx, 2
call fcn.004024d9
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40322f
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x403307
cmp dword [ebp + 0x14], 0
je 0x403285
push dword [0x44a370]
lea eax, [ebp - 0x2c]
push eax
call fcn.00402530
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40327c
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
jmp 0x4032b5
push 0x41f6b7
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.004024d9
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4032b1
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402735
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
push 1
push dword [ebp - 0x38]
push dword [ebp + 0xc]
call fcn.004035a4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
mov eax, 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403307
jmp 0x403389
jmp 0x403356
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 0xb
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x3c], esp
je 0x403344
push 0x909
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
cmp dword [ebp - 0x34], 0x103
je 0x403356
jmp 0x403389
mov dword [ebp - 0x38], esp
push 1
mov eax, 0xc
call sub.kernel32.dll_Sleep
cmp dword [ebp - 0x38], esp
je 0x403384
push 0x98f
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
jmp 0x403133
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], esp
mov ebx, dword [ebp - 0x38]
push dword [ebx]
mov eax, 7
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x3c], esp
je 0x4033bd
push 0x9bf
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
mov dword [ebp - 0x38], esp
push dword [ebp - 0xc]
mov eax, 7
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 0x38], esp
je 0x4033e9
push 0x9e2
push 0x4023f28
push 6
call fcn.0041d271
add esp, 0xc
mov eax, 0x41f5e1
xor ecx, ecx
test eax, eax
je 0x4033f7
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
xor ebx, ebx
test eax, eax
je 0x403408
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40341f
dec eax
test ecx, ecx
je 0x40341f
call fcn.00402931
add esp, 0xc
test eax, eax
jne 0x403434
mov eax, 0x41f5e1
jmp 0x4034ac
cmp dword [ebp + 0x14], 0
je 0x40345d
push dword [0x44a370]
lea eax, [ebp - 0x30]
push eax
call fcn.00402530
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
jmp 0x4034ac
push 0x41f6b7
push dword [ebp - 0x30]
mov ecx, 2
call fcn.004024d9
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403489
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4034a7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0041d265
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4034ac
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4034d5
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4034e5
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403501
push ebx
call fcn.0041d26b
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x403511
push ebx
call fcn.0041d26b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14