Function at 0x10013a80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x2644]
mov eax, 0x2644
call fcn.10033850
push 0xffffffffffffffff
push 0x10055fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10076098]
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.10013840
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x1001435a
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.1003d469
mov ecx, dword [ebp - 0x24]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
or edx, 0xffffffff
cmp ebx, ecx
ja 0x10013b4e
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.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013c3b
cmp ebx, 0x7ffffffe
ja 0x10014381
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013b6e
mov esi, SysReAllocString
jmp 0x10013b8f
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10013b84
mov esi, SysReAllocString
jmp 0x10013b8c
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 0x10013ba1
or ecx, 0xffffffff
jmp 0x10013ba9
cmp ecx, 0x1000
jb 0x10013bcd
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x10014386
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013be0
test ecx, ecx
je 0x10013bde
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x10013be0
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.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013c38
mov ecx, dword [ebp - 0x38]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013c2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014386
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.10016a80
mov ecx, eax
call fcn.10016b40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x10013c96
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013c8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001438b
push edx
push ecx
call fcn.100325d8
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.1003d469
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ecx
cmp ebx, ecx
ja 0x10013d01
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.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013df0
cmp ebx, 0x7ffffffe
ja 0x10014390
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013d21
mov esi, SysReAllocString
jmp 0x10013d3f
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10013d37
mov esi, SysReAllocString
jmp 0x10013d3f
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10013d51
or ecx, 0xffffffff
jmp 0x10013d59
cmp ecx, 0x1000
jb 0x10013d82
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x10014386
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013d95
test ecx, ecx
je 0x10013d93
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x10013d95
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.10033c30
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013ded
mov ecx, dword [ebp - 0x50]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013de3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014395
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.10016a80
mov ecx, eax
call fcn.10016b40
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x10013e4b
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013e41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001439a
push edx
push ecx
call fcn.100325d8
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.1003d469
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x10], eax
cmp ebx, eax
ja 0x10013eb6
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.100341b0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x10013fa4
cmp ebx, 0x7ffffffe
ja 0x1001439f
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10013ed6
mov esi, SysReAllocString
jmp 0x10013ef3
mov ecx, eax
mov edx, SysReAllocString
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x10013eec
mov esi, SysReAllocString
jmp 0x10013ef3
add eax, ecx
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10013f05
or ecx, 0xffffffff
jmp 0x10013f0d
cmp ecx, 0x1000
jb 0x10013f36
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.100325e6
add esp, 4
test eax, eax
je 0x10014386
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10013f49
test ecx, ecx
je 0x10013f47
push ecx
call fcn.100325e6
add esp, 4
mov edi, eax
jmp 0x10013f49
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.10033c30
xor eax, eax
add esp, 0xc
mov word [edi + esi], ax
mov eax, dword [ebp + 0x10]
cmp eax, 8
jb 0x10013fa1
mov ecx, dword [ebp - 0x68]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100143a4
push edx
push ecx
call fcn.100325d8
add esp, 8
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.10016a80
mov ecx, eax
call fcn.10016b40
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x10014002
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013ff5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100143a9
push edx
push ecx
call fcn.100325d8
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 0x1001435a
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001435a
test eax, eax
je 0x1001435a
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 0x1001435a
cmp dword [ebp - 0x18], 0
jne 0x10014096
test edi, edi
je 0x1001435a
cmp dword [ebp - 0x1c], 0
je 0x1001435a
test eax, eax
je 0x1001435a
push 0x2000
lea eax, [ebp + 0x14]
push 0
push eax
call fcn.10034760
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 0x1001435a
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 0x1001434f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [ebp + 0x2014]
push 0
push eax
call fcn.10034760
push 0x105
lea eax, [ebp + 0x2220]
push 0
push eax
call fcn.10034760
push 0x105
lea eax, [ebp + 0x2328]
push 0
push eax
call fcn.10034760
push 0x105
lea eax, [ebp + 0x2538]
push 0
push eax
call fcn.10034760
push 0x105
lea eax, [ebp + 0x2430]
push 0
push eax
call fcn.10034760
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 0x100141a3
push dword [ebp + ebx*4 + 0x14]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10014319
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100141bd
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push esi
call eax
test eax, eax
jne 0x100141e1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100142fd
push 0x208
lea ecx, [ebp + 0x2014]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x100142fd
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.10040c42
lea eax, [ebp + 0x2538]
push eax
push str.explorer
call fcn.1004095c
add esp, 0x2c
test eax, eax
jne 0x100142fd
lea eax, [ebp + 0x2430]
push eax
push str..exe
call fcn.1004095c
add esp, 8
test eax, eax
jne 0x100142fd
push dword [ebp - 0x14]
push 0x2000e
push esi
call dword [ebp - 0x1c]
test eax, eax
je 0x100142fd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x10014312
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 0x100142fd
mov eax, dword [ebp - 0x78]
cmp dword [ebp + 0xc], eax
je 0x10014344
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 0x100142f4
test edi, edi
je 0x100142f4
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 0x100142f4
mov eax, dword [ebp]
test eax, eax
je 0x100142f4
cmp dword [ebp + 0x10], 4
jne 0x100142f1
cmp dword [eax], 0
je 0x10014331
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 0x10014312
push eax
call edi
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
test esi, esi
je 0x10014319
push esi
call edi
inc ebx
mov dword [ebp - 0x10], ebx
cmp ebx, dword [ebp - 0x7c]
jb 0x10014110
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
setne al
jmp 0x1001435c
push eax
call edi
push esi
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10014347
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 0x1001435c
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.100325c7
lea esp, [ebp + 0x2644]
pop ebp
ret 8
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
call fcn.10001ab0
call fcn.1003d419
call fcn.1003d419
int3