Function at 0x10036f80
Capabilities:
Connect pipe
Create pipe
Create process on windows
Read file on windows
Terminate process
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d38
call fcn.10212f90
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xaa0]
mov ecx, 0x2a5
push esi
push edi
push 0x208
mov dword [ebp - 0x1cf0], eax
lea esi, [ebp + 0xc]
lea eax, [ebp - 0x220]
lea edi, [ebp - 0x1ccc]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [0x10256b30]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebp + 8]
cmp edi, 2
jne 0x10036ff2
push str...360DeskAna64.exe
jmp 0x10036ffc
cmp edi, 1
jne 0x10037009
push str...360DeskAna.exe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call fcn.1001d810
add esp, 4
test eax, eax
jne 0x1003702c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
call fcn.1021360d
push eax
call fcn.10213601
add esp, 8
xor esi, esi
lea ebx, [esi + 0x1a]
call fcn.10213607
cdq
idiv ebx
add edx, 0x61
mov word [ebp + esi*2 - 0x18], dx
inc esi
cmp esi, 8
jl 0x10037053
push 0xf
xor eax, eax
mov dword [ebp - 0x1228], 0
push str..pipelspfix
lea ecx, [ebp - 0x1238]
mov dword [ebp - 0x1224], 7
mov word [ebp - 0x1238], ax
call fcn.10008240
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100370a0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1238]
call fcn.10007e60
cmp edi, 1
jne 0x100370e0
cmp dword [ebp - 0x1224], 8
lea eax, [ebp - 0x1238]
jb 0x100370d9
mov eax, dword [ebp - 0x1238]
mov ecx, 0x20
jmp 0x10037103
cmp edi, 2
jne 0x10037241
cmp dword [ebp - 0x1224], 8
lea eax, [ebp - 0x1238]
jb 0x100370fe
mov eax, dword [ebp - 0x1238]
mov ecx, 0x40
push eax
push ecx
push str.lspfix
lea eax, [ebp - 0x220]
push eax
push str.__ws___ws__d__ws
lea eax, [ebp - 0x1220]
push 0x400
push eax
call fcn.10008ee0
add esp, 0x1c
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebp - 0x1224], 8
mov edi, eax
lea eax, [ebp - 0x1238]
jb 0x1003714f
mov eax, dword [ebp - 0x1238]
push 0
push 0
push 0x400
push 0x400
push 1
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10037241
push 0x44
lea eax, [ebp - 0x1d38]
push 0
push eax
call fcn.102134e7
add esp, 0xc
or dword [ebp - 0x1d0c], 1
xor eax, eax
mov dword [ebp - 0x1d38], 0x44
mov dword [ebp - 0x1ce8], eax
mov dword [ebp - 0x1ce4], eax
mov dword [ebp - 0x1ce0], eax
mov dword [ebp - 0x1cdc], eax
mov word [ebp - 0x1d08], ax
lea eax, [ebp - 0x1ce8]
push eax
lea eax, [ebp - 0x1d38]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x1220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x1003739a
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x10037416
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
xor eax, eax
mov dword [ebp - 0x1cd8], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test edi, edi
jne 0x10037287
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10037241
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov edx, dword [ebp - 0x1224]
pop ebx
cmp edx, 8
jb 0x10037404
mov ecx, dword [ebp - 0x1238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100373fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10037420
jmp 0x100373fa
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x100372b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100372b7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x10037229
push 0xfa0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10037229
xor esi, esi
lea eax, [ebp - 0x1cec]
push esi
push eax
push 0xa94
lea eax, [ebp - 0x1ccc]
mov dword [ebp - 0x1cec], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003738d
push 0x800
lea eax, [ebp - 0xa20]
mov dword [ebp - 0x1cd0], esi
push esi
push eax
mov dword [ebp - 0x1cd4], esi
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x1cd4]
push esi
push eax
push 4
lea eax, [ebp - 0x1cd0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003738d
cmp dword [ebp - 0x1cd0], 1
jne 0x1003738f
push esi
lea eax, [ebp - 0x1cd4]
push eax
push 0x800
lea eax, [ebp - 0xa20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb esi, esi
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x1cf4]
and esi, 1
push eax
call fcn.10009b10
mov ecx, dword [ebp - 0x1cf0]
add esp, 8
push eax
call fcn.10004870
lea ecx, [ebp - 0x1cf4]
call int.10008f10
jmp 0x1003738f
xor esi, esi
lea ecx, [ebp - 0x1cd8]
call int.10008f10
push 0x1388
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100373bd
push 0xffffffffffffffff
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1ce4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x100373e4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x100373ea
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10037243
push ebx
call edi
jmp 0x10037243
push edx
push ecx
call fcn.102134ff
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
call fcn.10200ab0
int3