Function at 0x10072e90
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2668
call fcn.10107170
mov eax, dword [0x102c6100]
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 0x10073294
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10073294
call eax
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
je 0x10073294
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 0x10073294
test ebx, ebx
je 0x10073294
test eax, eax
je 0x10073294
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 0x10073294
cmp dword [esp + 0x24], 0
jne 0x10072f94
cmp dword [esp + 0x20], 0
je 0x10073294
cmp dword [esp + 0x28], 0
je 0x10073294
test eax, eax
je 0x10073294
push 0x2000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.1012de20
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 0x10073294
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 0x1007300e
mov dword [esp + 0x34], 0x800
jmp 0x10073016
test eax, eax
je 0x1007328b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [esp + 0x246c]
push 0
push eax
call fcn.1012de20
push 0x105
lea eax, [esp + 0x2370]
push 0
push eax
call fcn.1012de20
push 0x105
lea eax, [esp + 0x2274]
push 0
push eax
call fcn.1012de20
push 0x105
lea eax, [esp + 0x2070]
push 0
push eax
call fcn.1012de20
push 0x105
lea eax, [esp + 0x2184]
push 0
push eax
call fcn.1012de20
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 0x100730b8
push dword [esp + ebx*4 + 0x48]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10073241
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100730d4
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push esi
call eax
test eax, eax
jne 0x100730fa
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10073229
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x10073229
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.1013ea38
lea eax, [esp + 0x206c]
push eax
push str.explorer
call fcn.1013e738
add esp, 0x2c
test eax, eax
jne 0x10073229
lea eax, [esp + 0x2150]
push eax
push 0x102229b0
call fcn.1013e738
add esp, 8
test eax, eax
jne 0x10073229
push ebp
push 0x2000e
push esi
call dword [esp + 0x34]
test eax, eax
je 0x10073229
mov eax, dword [ebp]
test eax, eax
je 0x10073229
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 0x10073229
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], eax
je 0x1007327e
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 0x1007321f
test edi, edi
je 0x1007321f
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 0x1007321f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007321f
cmp dword [esp + 0x30], 4
jne 0x1007321c
cmp dword [eax], 0
je 0x10073259
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 0x1007323a
push eax
call edi
mov dword [ebp], 0
test esi, esi
je 0x10073241
push esi
call edi
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x34]
jb 0x10073020
cmp dword [ebp], 0
setne al
jmp 0x10073296
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 0x10073296
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 0x10073296
xor al, al
mov ecx, dword [esp + 0x2674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101064d2
add esp, 0x2668
ret 8