Function at 0x10013a50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x2644]
mov eax, 0x2644
call fcn.10033470
push 0xffffffffffffffff
push 0x10055b48
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10075098]
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.10013810
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x1001432a
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.1003d089
mov ecx, dword [ebp - 0x24]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
or edx, 0xffffffff
cmp ebx, ecx
ja 0x10013b1e
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013c0b
cmp ebx, 0x7ffffffe
ja 0x10014351
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013b3e
mov esi, SysReAllocString
jmp 0x10013b5f
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10013b54
mov esi, SysReAllocString
jmp 0x10013b5c
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 0x10013b71
or ecx, 0xffffffff
jmp 0x10013b79
cmp ecx, 0x1000
jb 0x10013b9d
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x10014356
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013bb0
test ecx, ecx
je 0x10013bae
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x10013bb0
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.10033850
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013c08
mov ecx, dword [ebp - 0x38]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013bfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014356
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.100190a0
mov ecx, eax
call fcn.10019160
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10013c66
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013c5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001435b
push edx
push ecx
call fcn.100321e9
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.1003d089
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
cmp ebx, ecx
ja 0x10013cd1
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013dc0
cmp ebx, 0x7ffffffe
ja 0x10014360
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013cf1
mov esi, SysReAllocString
jmp 0x10013d0f
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10013d07
mov esi, SysReAllocString
jmp 0x10013d0f
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10013d21
or ecx, 0xffffffff
jmp 0x10013d29
cmp ecx, 0x1000
jb 0x10013d52
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x10014356
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013d65
test ecx, ecx
je 0x10013d63
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x10013d65
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.10033850
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013dbd
mov ecx, dword [ebp - 0x50]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013db3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014365
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.100190a0
mov ecx, eax
call fcn.10019160
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x10013e1b
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013e11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001436a
push edx
push ecx
call fcn.100321e9
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.1003d089
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x10], eax
cmp ebx, eax
ja 0x10013e86
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.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013f74
cmp ebx, 0x7ffffffe
ja 0x1001436f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013ea6
mov esi, SysReAllocString
jmp 0x10013ec3
mov ecx, eax
mov edx, SysReAllocString
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x10013ebc
mov esi, SysReAllocString
jmp 0x10013ec3
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10013ed5
or ecx, 0xffffffff
jmp 0x10013edd
cmp ecx, 0x1000
jb 0x10013f06
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x10014356
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013f19
test ecx, ecx
je 0x10013f17
push ecx
call fcn.100321f7
add esp, 4
mov edi, eax
jmp 0x10013f19
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.10033850
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013f71
mov ecx, dword [ebp - 0x68]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013f67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014374
push edx
push ecx
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.100190a0
mov ecx, eax
call fcn.10019160
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x10013fd2
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014379
push edx
push ecx
call fcn.100321e9
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 0x1001432a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001432a
test eax, eax
je 0x1001432a
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 0x1001432a
cmp dword [ebp - 0x18], 0
jne 0x10014066
test edi, edi
je 0x1001432a
cmp dword [ebp - 0x1c], 0
je 0x1001432a
test eax, eax
je 0x1001432a
push 0x2000
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.10034380
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 0x1001432a
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 0x1001431f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [ebp + 0x2014]
push 0
push eax
call fcn.10034380
push 0x105
lea eax, [ebp + 0x2220]
push 0
push eax
call fcn.10034380
push 0x105
lea eax, [ebp + 0x2328]
push 0
push eax
call fcn.10034380
push 0x105
lea eax, [ebp + 0x2538]
push 0
push eax
call fcn.10034380
push 0x105
lea eax, [ebp + 0x2430]
push 0
push eax
call fcn.10034380
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 0x10014173
push dword [ebp + ebx*4 + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100142e9
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x1001418d
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push esi
call eax
test eax, eax
jne 0x100141b1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100142cd
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x100142cd
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.100409c5
lea eax, [ebp + 0x2538]
push eax
push str.explorer
call fcn.100406df
add esp, 0x2c
test eax, eax
jne 0x100142cd
lea eax, [ebp + 0x2430]
push eax
push str..exe
call fcn.100406df
add esp, 8
test eax, eax
jne 0x100142cd
push dword [ebp - 0x14]
push 0x2000e
push esi
call dword [ebp - 0x1c]
test eax, eax
je 0x100142cd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x100142e2
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 0x100142cd
mov eax, dword [ebp - 0x78]
cmp dword [ebp + 0xc], eax
je 0x10014314
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 0x100142c4
test edi, edi
je 0x100142c4
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 0x100142c4
mov eax, dword [ebp]
test eax, eax
je 0x100142c4
cmp dword [ebp + 0x10], 4
jne 0x100142c1
cmp dword [eax], 0
je 0x10014301
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 0x100142e2
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
test esi, esi
je 0x100142e9
push esi
call edi
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x7c]
jb 0x100140e0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
setne al
jmp 0x1001432c
push eax
call edi
push esi
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10014317
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 0x1001432c
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.100321d8
lea esp, [ebp + 0x2644]
pop ebp
ret 8
call fcn.10001aa0
call fcn.1003d039
call fcn.1003d039
call fcn.10001aa0
call fcn.1003d039
call fcn.1003d039
call fcn.10001aa0
call fcn.1003d039
call fcn.1003d039
int3