Function at 0x40ecf0
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x547c57
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5a10e0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x5a10e0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 7
xor edi, edi
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xc8], edi
mov word [esp + 0xb8], ax
mov dword [esp + 0x170], edi
xor ecx, ecx
mov word [esp + 0x80], cx
push edi
mov eax, 0x576984
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x94], edi
call fcn.00403230
mov byte [esp + 0x170], 1
mov eax, dword [esi + 0xac]
cmp eax, 2
je 0x40ed9e
cmp eax, 1
jne 0x40edee
mov esi, 8
cmp dword [esp + 0x94], esi
jb 0x40edbc
mov edx, dword [esp + 0x80]
push edx
call fcn.004166f8
add esp, 4
xor eax, eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov word [esp + 0x80], ax
cmp dword [esp + 0xcc], esi
jb 0x40f621
mov ecx, dword [esp + 0xb8]
push ecx
jmp 0x40f619
mov eax, dword [esi + 0x20]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40ee12
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0xa0]
call fcn.00403230
push 0x11
mov eax, str.DECoreSetup.exe
lea ecx, [esp + 0xa0]
mov byte [esp + 0x174], 2
call fcn.004089c0
xor eax, eax
mov word [esp + 0x128], ax
xor esi, esi
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0x12c]
mov dword [esp + 0x140], ebx
mov dword [esp + 0x13c], esi
call fcn.00403230
mov byte [esp + 0x170], 3
xor ecx, ecx
mov word [esp + 0xf0], cx
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], esi
call fcn.00403230
lea eax, [esp + 0x9c]
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x170], 4
call fcn.00413040
mov ecx, eax
lea eax, [esp + 0x128]
lea edx, [esp + 0x144]
mov byte [esp + 0x170], 5
call fcn.00413080
mov edi, eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x170], 6
call fcn.00404200
cmp dword [esp + 0x158], 8
jb 0x40ef18
mov edx, dword [esp + 0x144]
push edx
call fcn.004166f8
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 8
mov dword [esp + 0x158], ebx
mov dword [esp + 0x154], edi
mov word [esp + 0x144], ax
cmp dword [esp + 0x120], esi
jb 0x40ef50
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.004166f8
add esp, 4
xor edx, edx
mov dword [esp + 0x120], ebx
mov dword [esp + 0x11c], edi
mov word [esp + 0x10c], dx
cmp dword [esp + 0x104], esi
jb 0x40ef81
mov eax, dword [esp + 0xf0]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov byte [esp + 0x170], 2
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], edi
mov word [esp + 0xf0], cx
cmp dword [esp + 0x13c], esi
jb 0x40efba
mov edx, dword [esp + 0x128]
push edx
call fcn.004166f8
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x84]
push 0x576984
xor edi, edi
lea ecx, [esi + 0x74]
call fcn.00412760
test eax, eax
je 0x40f583
push 1
mov eax, 0x57b910
lea ecx, [esp + 0xbc]
call fcn.004089c0
mov edi, 8
cmp dword [esi + 0x88], edi
jb 0x40f000
mov eax, dword [esi + 0x74]
jmp 0x40f003
lea eax, [esi + 0x74]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x40f010
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40f010
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0xbc]
call fcn.004089c0
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40f043
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f111
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40f069
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x50]
push str.Deployment_Engine_executable_does_not_exist_at_the_location:__s
mov ebx, 0x576f68
call fcn.00416120
mov esi, edi
add esp, 8
cmp dword [esp + 0xb0], esi
jb 0x40f09e
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004166f8
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], dx
cmp dword [esp + 0x94], esi
jb 0x40f0d6
mov eax, dword [esp + 0x80]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], esi
jb 0x40f107
mov edx, dword [esp + 0xb8]
push edx
call fcn.004166f8
add esp, 4
mov eax, 0xfffffff7
jmp 0x40f623
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x68]
push 0x576984
xor edi, edi
lea ecx, [esi + 0x58]
call fcn.00412760
test eax, eax
je 0x40f1e4
push 0x11
mov eax, str.___overrideFile_
lea ecx, [esp + 0xbc]
call fcn.004089c0
cmp dword [esi + 0x6c], 8
lea eax, [esp + 0x18]
push eax
jb 0x40f152
mov eax, dword [esi + 0x58]
jmp 0x40f155
lea eax, [esi + 0x58]
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
call fcn.00402e40
lea ecx, [esp + 0x12c]
call fcn.0040e8d0
mov edi, eax
lea esi, [esp + 0x80]
mov byte [esp + 0x170], bl
call fcn.00404200
lea esi, [esp + 0x10c]
mov byte [esp + 0x170], 2
call fcn.004015b0
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x40f1b0
lea eax, [esp + 0x80]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40f1b5
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0xbc]
call fcn.004089c0
push 1
mov eax, 0x57b3ac
lea ecx, [esp + 0xbc]
call fcn.004089c0
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xa0]
add esi, 0x90
push 0x576984
xor edi, edi
mov ecx, esi
call fcn.00412760
test eax, eax
je 0x40f251
push 1
mov eax, 0x57b910
lea ecx, [esp + 0xbc]
call fcn.004089c0
cmp dword [esi + 0x14], 8
jb 0x40f223
mov eax, dword [esi]
jmp 0x40f225
mov eax, esi
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40f230
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0xbc]
call fcn.004089c0
jmp 0x40f32e
cmp dword [esi + 0x14], 8
jb 0x40f25b
mov eax, dword [esi]
jmp 0x40f25d
mov eax, esi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x50]
push str.Install_Source_Path_not_specified._Searching_for_payloads_at_the_launch_path.
mov ebx, 0x576f68
call fcn.004160c0
mov eax, dword [edi + 0x2c]
add esp, 8
push esi
call fcn.00402e80
push 9
mov eax, str.payloads
mov ecx, esi
call fcn.004089c0
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x40f29c
mov eax, dword [esi]
jmp 0x40f29e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f2c8
cmp dword [esi + 0x14], ebx
jb 0x40f2b0
mov esi, dword [esi]
mov eax, dword [edi + 0x50]
push esi
push str.Payloads_does_not_exist_at_current_launch_path:__s
mov ebx, 0x576f68
call fcn.004160c0
add esp, 8
jmp 0x40f32e
mov ecx, dword [edi + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
push esi
test eax, eax
jne 0x40f2f1
mov eax, str.__installSourcePath_
call fcn.00402e80
mov eax, dword [edi + 0x2c]
push esi
call fcn.00408950
mov eax, 0x57b3ac
jmp 0x40f2fe
mov eax, 0x57b4dc
call fcn.00402e80
mov eax, dword [edi + 0x2c]
push esi
call fcn.00408950
lea edx, [esp + 0xb8]
push edx
mov eax, 0x57b910
call fcn.00408950
cmp dword [esi + 0x14], ebx
jb 0x40f31f
mov eax, dword [esi]
jmp 0x40f321
mov eax, esi
lea ecx, [esp + 0xb8]
push ecx
call fcn.00408950
cmp dword [esp + 0xcc], 8
mov eax, dword [esp + 0xb8]
jae 0x40f346
lea eax, [esp + 0xb8]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x50]
push str.Deployment_Engine_launched_with_command_:__s
mov ebx, 0x576f68
call fcn.00416090
xor ebx, ebx
xor eax, eax
add esp, 8
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], ax
push ebx
lea ecx, [esp + 0xa0]
push ecx
or eax, 0xffffffff
lea edi, [esp + 0xdc]
mov byte [esp + 0x178], 8
call fcn.004015e0
mov eax, dword [esp + 0xd4]
mov esi, 8
cmp dword [esp + 0xe8], esi
jae 0x40f3b5
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], 0x101
mov dword [esp + 0x64], 1
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
cmp dword [esp + 0xe8], esi
jae 0x40f407
lea ecx, [esp + 0xd4]
mov eax, dword [esp + 0xb8]
cmp dword [esp + 0xcc], esi
jae 0x40f41e
lea eax, [esp + 0xb8]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x38]
push edx
push ecx
push ebx
push 0x10
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov dword [esp + 0x1c], 0xffffffff
cmp al, bl
je 0x40f47e
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40f47e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
cmp dword [esp + 0x18], ebx
je 0x40f4c1
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40f49b
lea eax, [esp + 0x80]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x40f4ba
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xe8], esi
jb 0x40f4e2
mov edx, dword [esp + 0xd4]
push edx
call fcn.004166f8
add esp, 4
xor eax, eax
mov edi, 7
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], ax
cmp dword [esp + 0xb0], esi
jb 0x40f518
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004166f8
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
cmp dword [esp + 0x94], esi
jb 0x40f549
mov eax, dword [esp + 0x80]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], esi
jb 0x40f57a
mov edx, dword [esp + 0xb8]
push edx
call fcn.004166f8
add esp, 4
mov eax, dword [esp + 0x18]
jmp 0x40f623
mov eax, esi
mov eax, dword [eax + 0x50]
push str.Deployment_File_Path_not_specified_in_command_line_arguments._Skipping_payload_deployment_part
mov ebx, 0x576f68
call fcn.00416090
mov esi, 8
add esp, 4
cmp dword [esp + 0xb0], esi
jb 0x40f5b8
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004166f8
add esp, 4
xor edi, edi
xor edx, edx
mov ebx, 7
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], dx
cmp dword [esp + 0x94], esi
jb 0x40f5f0
mov eax, dword [esp + 0x80]
push eax
call fcn.004166f8
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], edi
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], esi
jb 0x40f621
mov edx, dword [esp + 0xb8]
push edx
call fcn.004166f8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00515d64
mov esp, ebp
pop ebp
ret