Function at 0x1006ea90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1554
call fcn.101a0f00
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x1554], eax
mov dword [edi], 0
mov eax, dword [esi + 8]
test eax, eax
jne 0x1006eadd
push str.Kernel32.dll
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x1006ee13
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006ee13
call eax
mov dword [ebp - 0x1550], eax
cmp eax, 0xffffffff
je 0x1006ee13
cmp dword [esi + 0xc], 0
jne 0x1006eb12
push str.psapi.dll
call ebx
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
jne 0x1006eb22
push str.advapi32.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1006ee13
cmp dword [esi + 4], 0
je 0x1006ee13
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call ebx
push str.GetModuleFileNameExA
push dword [esi + 0xc]
mov dword [ebp - 0x1534], eax
call ebx
push str.GetProcessImageFileNameA
push dword [esi + 0xc]
mov dword [ebp - 0x1540], eax
call ebx
push 0x101de658
push dword [esi + 4]
mov dword [ebp - 0x153c], eax
call ebx
push 0x101de644
push dword [esi + 4]
mov dword [ebp - 0x1544], eax
call ebx
mov esi, dword [ebp - 0x1534]
mov dword [ebp - 0x154c], eax
test esi, esi
je 0x1006ee13
cmp dword [ebp - 0x1540], 0
jne 0x1006ebaf
cmp dword [ebp - 0x153c], 0
je 0x1006ee13
cmp dword [ebp - 0x1544], 0
je 0x1006ee13
test eax, eax
je 0x1006ee13
push 0x1000
lea eax, [ebp - 0x152c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1538], 0
lea eax, [ebp - 0x1538]
push eax
push 0x1000
lea eax, [ebp - 0x152c]
push eax
call esi
test eax, eax
je 0x1006ee13
mov eax, dword [ebp - 0x1538]
xor ebx, ebx
shr eax, 2
mov dword [ebp - 0x1534], eax
mov dword [ebp - 0x1530], 0
mov dword [ebp - 0x1548], 0
test eax, eax
je 0x1006edfa
nop
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x52c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x424]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x105
lea eax, [ebp - 0x31c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x3c
push dword [ebp + ebx*4 - 0x152c]
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1006edbf
mov eax, dword [ebp - 0x153c]
test eax, eax
je 0x1006eccd
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push esi
call eax
test eax, eax
jne 0x1006ecf4
mov eax, dword [ebp - 0x1540]
test eax, eax
je 0x1006eda5
push 0x105
lea ecx, [ebp - 0x10c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x1006eda5
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0x104
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea eax, [ebp - 0x214]
push eax
push str.explorer
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 0x2c
test eax, eax
jne 0x1006eda5
lea eax, [ebp - 0x31c]
push eax
push 0x101de66c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1006eda5
push edi
push 0x2000e
push esi
call dword [ebp - 0x1544]
test eax, eax
je 0x1006eda5
mov eax, dword [edi]
test eax, eax
je 0x1006edb2
lea ecx, [ebp - 0x1548]
push ecx
push 4
lea ecx, [ebp - 0x1530]
push ecx
push 0xc
push eax
call dword [ebp - 0x154c]
test eax, eax
je 0x1006eda5
mov eax, dword [ebp - 0x1550]
cmp dword [ebp - 0x1530], eax
je 0x1006ede5
mov eax, dword [edi]
test eax, eax
je 0x1006edb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x1534]
jb 0x1006ec30
cmp dword [edi], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1554]
mov eax, dword [ebp - 0x1530]
mov dword [ecx], eax
cmp dword [edi], 0
pop edi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 8