Function at 0x1007a160
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2668
call fcn.10123c70
mov eax, dword [0x102ec100]
xor eax, esp
mov dword [esp + 0x2664], eax
mov eax, dword [esp + 0x2670]
push ebx
push ebp
mov ebp, dword [esp + 0x2674]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.Kernel32.dll
mov dword [esp + 0x3c], eax
mov dword [ebp], 0
call esi
test eax, eax
je 0x1007a564
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007a564
call eax
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
je 0x1007a564
push str.Psapi.dll
call esi
push str.Advapi32.dll
mov edi, eax
call esi
push str.Wtsapi32.dll
mov ebx, eax
call esi
mov dword [esp + 0x2c], eax
test edi, edi
je 0x1007a564
test ebx, ebx
je 0x1007a564
test eax, eax
je 0x1007a564
push str.EnumProcesses
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExA
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameA
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
call edi
push str.OpenProcessToken
push ebx
mov dword [esp + 0x28], eax
call edi
push str.GetTokenInformation
push ebx
mov dword [esp + 0x30], eax
call edi
mov dword [esp + 0x40], eax
test esi, esi
je 0x1007a564
cmp dword [esp + 0x24], 0
jne 0x1007a264
cmp dword [esp + 0x20], 0
je 0x1007a564
cmp dword [esp + 0x28], 0
je 0x1007a564
test eax, eax
je 0x1007a564
push 0x2000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.1014aba0
add esp, 0xc
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x2000
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x1007a564
mov eax, dword [esp + 0x1c]
xor ebx, ebx
shr eax, 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], ebx
cmp eax, 0x800
jb 0x1007a2de
mov dword [esp + 0x34], 0x800
jmp 0x1007a2e6
test eax, eax
je 0x1007a55b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [esp + 0x246c]
push 0
push eax
call fcn.1014aba0
push 0x105
lea eax, [esp + 0x2370]
push 0
push eax
call fcn.1014aba0
push 0x105
lea eax, [esp + 0x2274]
push 0
push eax
call fcn.1014aba0
push 0x105
lea eax, [esp + 0x2070]
push 0
push eax
call fcn.1014aba0
push 0x105
lea eax, [esp + 0x2184]
push 0
push eax
call fcn.1014aba0
add esp, 0x3c
push dword [esp + ebx*4 + 0x48]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1007a388
push dword [esp + ebx*4 + 0x48]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1007a511
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1007a3a4
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push esi
call eax
test eax, eax
jne 0x1007a3ca
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1007a4f9
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x1007a4f9
push 0x104
lea eax, [esp + 0x2154]
push eax
push 0x104
lea eax, [esp + 0x2054]
push eax
push 0x104
lea eax, [esp + 0x226c]
push eax
push 0x104
lea eax, [esp + 0x237c]
push eax
lea eax, [esp + 0x2488]
push eax
call fcn.1015b808
lea eax, [esp + 0x206c]
push eax
push str.explorer
call fcn.1015b508
add esp, 0x2c
test eax, eax
jne 0x1007a4f9
lea eax, [esp + 0x2150]
push eax
push 0x10244b5c
call fcn.1015b508
add esp, 8
test eax, eax
jne 0x1007a4f9
push ebp
push 0x2000e
push esi
call dword [esp + 0x34]
test eax, eax
je 0x1007a4f9
mov eax, dword [ebp]
test eax, eax
je 0x1007a4f9
lea ecx, [esp + 0x3c]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xc
push eax
call dword [esp + 0x54]
test eax, eax
je 0x1007a4f9
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], eax
je 0x1007a54e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQuerySessionInformationW
push dword [esp + 0x30]
call edi
push str.WTSFreeMemory
push dword [esp + 0x30]
mov ebx, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1007a4ef
test edi, edi
je 0x1007a4ef
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 8
push dword [esp + 0x20]
push 0
call ebx
test eax, eax
je 0x1007a4ef
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007a4ef
cmp dword [esp + 0x30], 4
jne 0x1007a4ec
cmp dword [eax], 0
je 0x1007a529
push eax
call edi
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
test eax, eax
je 0x1007a50a
push eax
call edi
mov dword [ebp], 0
test esi, esi
je 0x1007a511
push esi
call edi
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x34]
jb 0x1007a2f0
cmp dword [ebp], 0
setne al
jmp 0x1007a566
push eax
call edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x1007a566
push esi
call edi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x1007a566
xor al, al
mov ecx, dword [esp + 0x2674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10123194
add esp, 0x2668
ret 8