Function at 0x10036970
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.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xaa0]
mov ecx, 0x2a5
push esi
push edi
mov dword [ebp - 0x1cf0], eax
lea esi, [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x1ccc]
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebp + 8]
cmp edi, 2
jne 0x100369c8
push str...360DeskAna64.exe
jmp 0x100369d2
cmp edi, 1
jne 0x100369df
push str...360DeskAna.exe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10034be0
add esp, 8
test eax, eax
jne 0x10036a04
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
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 sub.msvcrt.dll__time64
push eax
call sub.msvcrt.dll_srand
add esp, 8
xor esi, esi
lea ebx, [esi + 0x1a]
jmp 0x10036a30
call sub.msvcrt.dll_rand
cdq
idiv ebx
add edx, 0x61
mov word [ebp + esi*2 - 0x18], dx
inc esi
cmp esi, 8
jl 0x10036a30
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.100070c0
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
jmp 0x10036a80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10036a80
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1238]
call fcn.10006d70
cmp edi, 1
jne 0x10036ac0
cmp dword [ebp - 0x1224], 8
lea eax, [ebp - 0x1238]
jb 0x10036ab9
mov eax, dword [ebp - 0x1238]
mov ecx, 0x20
jmp 0x10036ae3
cmp edi, 2
jne 0x10036c19
cmp dword [ebp - 0x1224], 8
lea eax, [ebp - 0x1238]
jb 0x10036ade
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.101fa3aa
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 0x10036b2f
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 0x10036c19
push 0x44
lea eax, [ebp - 0x1d38]
push 0
push eax
call sub.msvcrt.dll_memset
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 0x10036d45
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 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 0x10036c39
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 0x10036c19
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
lea ecx, [ebp - 0x1238]
call fcn.10005250
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 8], edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10036c66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x10036c66
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x10036c01
push 0xfa0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10036c01
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 0x10036d38
push 0x800
lea eax, [ebp - 0xa20]
mov dword [ebp - 0x1cd0], esi
push esi
push eax
mov dword [ebp - 0x1cd4], esi
call sub.msvcrt.dll_memset
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 0x10036d38
cmp dword [ebp - 0x1cd0], 1
jne 0x10036d3a
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.10008d60
mov ecx, dword [ebp - 0x1cf0]
add esp, 8
push eax
call fcn.10002790
lea ecx, [ebp - 0x1cf4]
call fcn.10007e10
jmp 0x10036d3a
xor esi, esi
lea ecx, [ebp - 0x1cd8]
call fcn.10007e10
push 0x1388
push dword [ebp - 0x1ce8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10036d68
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 0x10036d8f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x10036d95
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10036c1b
push ebx
call edi
jmp 0x10036c1b