Function at 0x10034dd0
Capabilities:
Connect pipe
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebp + 8]
cmp edi, 2
jne 0x10034e10
push str...360DeskAna64.exe
jmp 0x10034e1a
cmp edi, 1
jne 0x10034e27
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 0x10034e4b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
xor eax, eax
push ebx
push esi
push eax
xor ebx, ebx
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
lea edi, [ebx + 0x1a]
xor esi, esi
call sub.msvcrt.dll_rand
cdq
idiv edi
add edx, 0x61
mov word [ebp + esi*2 - 0x18], dx
inc esi
cmp esi, 8
jl 0x10034e75
push 0x10
xor eax, eax
mov dword [ebp - 0xa28], ebx
push str..pipelspscan
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa24], 7
mov word [ebp - 0xa38], ax
call fcn.100070c0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034ec0
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa38]
call fcn.10006d70
cmp edi, 1
jne 0x10034f00
cmp dword [ebp - 0xa24], 8
lea eax, [ebp - 0xa38]
jb 0x10034ef9
mov eax, dword [ebp - 0xa38]
mov ecx, 0x20
jmp 0x10034f23
cmp edi, 2
jne 0x10035020
cmp dword [ebp - 0xa24], 8
lea eax, [ebp - 0xa38]
jb 0x10034f1e
mov eax, dword [ebp - 0xa38]
mov ecx, 0x40
push eax
push ecx
push str.lspscan
lea eax, [ebp - 0x220]
push eax
push str.__ws___ws__d__ws
lea eax, [ebp - 0xa20]
push 0x400
push eax
call fcn.101fa3aa
push 0x44
lea eax, [ebp - 0xa94]
push 0
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0xa68], 1
xor eax, eax
add esp, 0x28
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa24], 8
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], eax
mov dword [ebp - 0xa44], eax
mov word [ebp - 0xa64], ax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xa94], 0x44
jb 0x10034fa1
mov eax, dword [ebp - 0xa38]
push 0
push 0
push 0x400
push 0x400
push 1
push 0
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10035020
lea eax, [ebp - 0xa50]
push eax
lea eax, [ebp - 0xa94]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0xa20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1003511b
xor eax, eax
push eax
push eax
push 1
push eax
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
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
jne 0x10035040
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea ecx, [ebp - 0xa38]
call fcn.10005250
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 8], esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10035063
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1003512f
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1003512f
push eax
lea eax, [ebp - 0xa40]
mov dword [ebp - 0xa40], ebx
push eax
push 4
push dword [ebp - 0xa3c]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100350fc
mov eax, dword [ebp - 0xa3c]
mov eax, dword [eax]
test eax, eax
je 0x100350fc
imul eax, eax, 0xa94
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0xa3c]
imul eax, dword [eax], 0xa94
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x100350fc
push 0
lea eax, [ebp - 0xa40]
push eax
mov eax, dword [ebp - 0xa3c]
imul eax, dword [eax], 0xa94
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100350fc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
push dword [ebp - 0xa4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10035022
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10035022
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x10035020