Function at 0x10015760
Capabilities:
Check mutex on windows
Create process on windows
Get common file path
Get session information
Get session user name

Disassembly:
sub esp, 0xbd0
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0xbcc], eax
mov eax, dword [esp + 0xbd4]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x44
lea ecx, [esp + 0x4c]
push ebx
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ebx
call sub.MSVCR90.dll_memset
xor eax, eax
xor edx, edx
add esp, 0xc
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0x44
mov word [esp + 0x7a], dx
mov dword [esp + 0x74], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], ebx
call fcn.100156e0
push 0x1001b8b4
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
jne 0x1001580c
push str.Load_Library_Error...
call fcn.100160d0
add esp, 4
xor eax, eax
jmp 0x10015cdb
push str.WTSGetActiveConsoleSessionId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x10015837
push str.GetProcAddr_Fail_to_Get_WTSGetActiveConsoleSessionId_Address
call fcn.100160d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10015cdb
call eax
mov ebp, eax
push 0x31
lea eax, [esp + 0x99]
push ebx
push eax
mov dword [esp + 0x40], ebp
mov byte [esp + 0xa0], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebp
lea ecx, [esp + 0x98]
push str.Session_Id___0x
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea edx, [esp + 0xa0]
add esp, 0xc
push edx
call fcn.100160d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, 0xffffffff
jne 0x100158a3
push str.Failed_To_get_Session_Id...
call fcn.100160d0
add esp, 4
mov eax, 5
jmp 0x10015cdb
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x1c], ebx
jbe 0x10015912
xor esi, esi
cmp dword [esi + eax], ebp
jne 0x10015908
cmp dword [esi + eax + 8], ebx
jne 0x100158f0
push str.Session_is_Active
call fcn.100160d0
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esi + eax + 8], 1
jne 0x10015908
push str.Session_is_Connected
call fcn.100160d0
mov eax, dword [esp + 0x18]
add esp, 4
inc edi
add esi, 0xc
cmp edi, dword [esp + 0x1c]
jb 0x100158d4
cmp eax, ebx
je 0x1001591c
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push 5
push ebp
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
cmp dword [esp + 0x18], ebx
je 0x10015ae1
push str.User_Name_
call fcn.100160d0
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call fcn.100160d0
add esp, 4
lea edx, [esp + 0x1d0]
push 0x1001d4d0
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
push 0x104
lea eax, [esp + 0x1d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x1d0]
push 0x5c
push ecx
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x10015999
xor edx, edx
mov word [eax], dx
push str.EMAIL_SCANEMAILSCN.EXE
lea eax, [esp + 0x1d4]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
add esp, 0xc
push 0x7fe
lea edx, [esp + 0x3de]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x3e4], cx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x24]
mov eax, edx
add esp, 0xc
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100159e0
push 0x400
sub eax, esi
lea ecx, [esp + 0x3dc]
push ecx
inc eax
push eax
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xc6
lea eax, [esp + 0xce]
xor edx, edx
push ebx
push eax
mov word [esp + 0xd4], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10015a30
movzx ecx, word [eax + str.NPAV_Virus_Shield__]
mov word [esp + eax + 0xc8], cx
add eax, 2
cmp cx, bx
jne 0x10015a30
lea eax, [esp + 0x3d8]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10015a50
lea edi, [esp + 0xc8]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10015a70
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x10015a70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1000efd0
test eax, eax
jne 0x10015ac6
lea ecx, [esp + 0x3d8]
push 1
push ecx
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x1d8]
call fcn.10016650
add esp, 8
test eax, eax
jne 0x10015ac6
push str.Task_Added_For_EmailScn
call fcn.100160d0
add esp, 4
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10015aee
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x10015aee
push str.User_Name_API_Failed
call fcn.100160d0
add esp, 4
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10022450], eax
cmp eax, ebx
je 0x10015b24
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x10022450]
mov eax, dword [esp + 0x24]
push str.GlobalGBLEMLMTX
push ebx
push ebx
mov dword [0x10022454], eax
mov byte [esp + 0x1f], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
je 0x10015b6b
call ebp
cmp eax, 0xb7
jne 0x10015b5e
mov byte [esp + 0x13], 1
push esi
call edi
cmp byte [esp + 0x13], bl
jne 0x10015805
cmp dword [0x10022454], ebx
je 0x10015bd6
push str.64_Bit_OS
call fcn.100160d0
add esp, 4
push 0x104
lea ecx, [esp + 0x1d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x1d0]
push edx
lea eax, [esp + 0xcc]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
push str._syswow64wtsapi32.dll
lea ecx, [esp + 0xcc]
push 0x104
push ecx
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0xc
lea edx, [esp + 0xc8]
push edx
jmp 0x10015bdb
push str.wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10023884], eax
cmp eax, ebx
je 0x10015cca
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100238ec], eax
cmp eax, ebx
je 0x10015ca8
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
push esi
call eax
test eax, eax
je 0x10015c7f
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
push 0x30
push ebx
push ebx
push ebx
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x10015c69
mov eax, dword [esp + 0x3c]
push eax
call edi
mov ecx, dword [esp + 0x38]
push ecx
call edi
push str.Launch_Success
call fcn.100160d0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
mov dword [esp + 0x2c], 1
call edi
jmp 0x10015cb5
push str.CreateProcessAsUser_Failed
call fcn.100160d0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call edi
jmp 0x10015cb5
push esi
call ebp
push eax
lea eax, [esp + 0x1d8]
push str.Error__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x1e0]
push ecx
call fcn.100160d0
add esp, 0x14
jmp 0x10015cb5
push str.GetProcAddress_Failed_for_WTSQueryUserToken
call fcn.100160d0
add esp, 4
mov edx, dword [0x10023884]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10023884], ebx
jmp 0x10015cd7
push str.Failed_to_LoadLibrary_wtsapi32.dll
call fcn.100160d0
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xbdc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100191d2
add esp, 0xbd0
ret