Function at 0x1001eae0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x2644]
mov eax, 0x2644
call fcn.10049a40
push 0xffffffffffffffff
push 0x1004e238
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1006500c]
xor eax, ebp
mov dword [ebp + 0x2640], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x264c]
mov ecx, dword [ebp + 0x2650]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x6c], ecx
mov dword [eax], 0
call fcn.1001e8a0
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x1001f3ba
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push str.Psapi.dll
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.1003dd45
mov ecx, dword [ebp - 0x24]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
or edx, 0xffffffff
cmp ebx, ecx
ja 0x1001ebae
cmp ecx, 8
mov dword [ebp - 0x28], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x38]
cmovae edi, dword [ebp - 0x38]
push str.Psapi.dll
push edi
call fcn.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001ec9b
cmp ebx, 0x7ffffffe
ja 0x1001f3e1
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001ebce
mov esi, 0x7ffffffe
jmp 0x1001ebef
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001ebe4
mov esi, 0x7ffffffe
jmp 0x1001ebec
lea eax, [ecx + edx]
cmp esi, eax
cmovb esi, eax
or edx, 0xffffffff
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001ec01
or ecx, 0xffffffff
jmp 0x1001ec09
cmp ecx, 0x1000
jb 0x1001ec2d
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1001f3e6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001ec40
test ecx, ecx
je 0x1001ec3e
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1001ec40
xor edi, edi
mov dword [ebp - 0x24], esi
lea esi, [ebx + ebx]
push esi
push str.Psapi.dll
push edi
mov dword [ebp - 0x28], ebx
call fcn.10037ed0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x1001ec98
mov ecx, dword [ebp - 0x38]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ec8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f3e6
push edx
push ecx
call fcn.10036357
add esp, 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.100257f0
mov ecx, eax
call fcn.100258b0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x1001ecf6
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ecec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f3eb
push edx
push ecx
call fcn.10036357
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
push str.Advapi32.dll
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.1003dd45
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
cmp ebx, ecx
ja 0x1001ed61
cmp ecx, 8
mov dword [ebp - 0x40], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x50]
cmovae edi, dword [ebp - 0x50]
push str.Advapi32.dll
push edi
call fcn.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001ee50
cmp ebx, 0x7ffffffe
ja 0x1001f3f0
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001ed81
mov esi, 0x7ffffffe
jmp 0x1001ed9f
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001ed97
mov esi, 0x7ffffffe
jmp 0x1001ed9f
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001edb1
or ecx, 0xffffffff
jmp 0x1001edb9
cmp ecx, 0x1000
jb 0x1001ede2
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1001f3e6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001edf5
test ecx, ecx
je 0x1001edf3
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1001edf5
xor edi, edi
mov dword [ebp - 0x3c], esi
lea esi, [ebx + ebx]
push esi
push str.Advapi32.dll
push edi
mov dword [ebp - 0x40], ebx
call fcn.10037ed0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x1001ee4d
mov ecx, dword [ebp - 0x50]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001ee43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f3f5
push edx
push ecx
call fcn.10036357
add esp, 8
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.100257f0
mov ecx, eax
call fcn.100258b0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x1001eeab
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001eea1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f3fa
push edx
push ecx
call fcn.10036357
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push str.Wtsapi32.dll
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
call fcn.1003dd45
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x10], eax
cmp ebx, eax
ja 0x1001ef16
cmp eax, 8
mov dword [ebp - 0x58], ebx
lea esi, [ebx + ebx]
push esi
lea edi, [ebp - 0x68]
cmovae edi, dword [ebp - 0x68]
push str.Wtsapi32.dll
push edi
call fcn.10037950
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x1001f004
cmp ebx, 0x7ffffffe
ja 0x1001f3ff
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x1001ef36
mov esi, 0x7ffffffe
jmp 0x1001ef53
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x1001ef4c
mov esi, 0x7ffffffe
jmp 0x1001ef53
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x1001ef65
or ecx, 0xffffffff
jmp 0x1001ef6d
cmp ecx, 0x1000
jb 0x1001ef96
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.10036327
add esp, 4
test eax, eax
je 0x1001f3e6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1001efa9
test ecx, ecx
je 0x1001efa7
push ecx
call fcn.10036327
add esp, 4
mov edi, eax
jmp 0x1001efa9
xor edi, edi
mov dword [ebp - 0x54], esi
lea esi, [ebx + ebx]
push esi
push str.Wtsapi32.dll
push edi
mov dword [ebp - 0x58], ebx
call fcn.10037ed0
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x1001f001
mov ecx, dword [ebp - 0x68]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001eff7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f404
push edx
push ecx
call fcn.10036357
add esp, 8
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.100257f0
mov ecx, eax
call fcn.100258b0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x1001f062
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001f055
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f409
push edx
push ecx
call fcn.10036357
mov eax, dword [ebp - 0x20]
add esp, 8
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], cx
test edi, edi
je 0x1001f3ba
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001f3ba
test eax, eax
je 0x1001f3ba
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 dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
mov edi, eax
push ebx
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetTokenInformation
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
test esi, esi
je 0x1001f3ba
cmp dword [ebp - 0x18], 0
jne 0x1001f0f6
test edi, edi
je 0x1001f3ba
cmp dword [ebp - 0x1c], 0
je 0x1001f3ba
test eax, eax
je 0x1001f3ba
push 0x2000
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.10038450
add esp, 0xc
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x2000
lea eax, [ebp + 0x14]
push eax
call esi
test eax, eax
je 0x1001f3ba
mov eax, dword [ebp + 8]
mov ecx, 0x800
shr eax, 2
cmp eax, ecx
mov dword [ebp + 0xc], 0
mov dword [ebp + 4], 0
cmovae eax, ecx
xor ebx, ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x10], ebx
test eax, eax
je 0x1001f3af
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [ebp + 0x2014]
push 0
push eax
call fcn.10038450
push 0x105
lea eax, [ebp + 0x2220]
push 0
push eax
call fcn.10038450
push 0x105
lea eax, [ebp + 0x2328]
push 0
push eax
call fcn.10038450
push 0x105
lea eax, [ebp + 0x2538]
push 0
push eax
call fcn.10038450
push 0x105
lea eax, [ebp + 0x2430]
push 0
push eax
call fcn.10038450
add esp, 0x3c
push dword [ebp + ebx*4 + 0x14]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1001f203
push dword [ebp + ebx*4 + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001f379
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1001f21d
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push esi
call eax
test eax, eax
jne 0x1001f241
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001f35d
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x1001f35d
push 0x104
lea eax, [ebp + 0x2430]
push eax
push 0x104
lea eax, [ebp + 0x2538]
push eax
push 0x104
lea eax, [ebp + 0x2328]
push eax
push 0x104
lea eax, [ebp + 0x2220]
push eax
lea eax, [ebp + 0x2014]
push eax
call fcn.1003e8dd
lea eax, [ebp + 0x2538]
push eax
push str.explorer
call fcn.1003e5f7
add esp, 0x2c
test eax, eax
jne 0x1001f35d
lea eax, [ebp + 0x2430]
push eax
push str..exe
call fcn.1003e5f7
add esp, 8
test eax, eax
jne 0x1001f35d
push dword [ebp - 0x14]
push 0x2000e
push esi
call dword [ebp - 0x1c]
test eax, eax
je 0x1001f35d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x1001f372
lea ecx, [ebp + 4]
push ecx
push 4
lea ecx, [ebp + 0xc]
push ecx
push 0xc
push eax
call dword [ebp - 0x74]
test eax, eax
je 0x1001f35d
mov eax, dword [ebp - 0x78]
cmp dword [ebp + 0xc], eax
je 0x1001f3a4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQuerySessionInformationW
push dword [ebp - 0x20]
call edi
push str.WTSFreeMemory
push dword [ebp - 0x20]
mov ebx, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1001f354
test edi, edi
je 0x1001f354
lea eax, [ebp + 0x10]
mov dword [ebp], 0
push eax
lea eax, [ebp]
mov dword [ebp + 0x10], 0
push eax
push 8
push dword [ebp + 0xc]
push 0
call ebx
test eax, eax
je 0x1001f354
mov eax, dword [ebp]
test eax, eax
je 0x1001f354
cmp dword [ebp + 0x10], 4
jne 0x1001f351
cmp dword [eax], 0
je 0x1001f391
push eax
call edi
mov ebx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x1001f372
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
test esi, esi
je 0x1001f379
push esi
call edi
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x7c]
jb 0x1001f170
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
setne al
jmp 0x1001f3bc
push eax
call edi
push esi
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f3a7
push esi
call edi
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
setne al
jmp 0x1001f3bc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2640]
xor ecx, ebp
call fcn.10036316
lea esp, [ebp + 0x2644]
pop ebp
ret 8
call fcn.10002957
call fcn.1003df6b
call fcn.1003df6b
call fcn.10002957
call fcn.1003df6b
call fcn.1003df6b
call fcn.10002957
call fcn.1003df6b
call fcn.1003df6b
int3