Function at 0x41ed10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1550
call fcn.00441af0
mov eax, dword [0x4581b0]
xor eax, esp
mov dword [esp + 0x154c], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.Kernel32.dll
mov dword [ebx], 0
call ebp
mov edi, eax
test edi, edi
je 0x41f0db
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push edi
call esi
test eax, eax
je 0x41f0d8
call eax
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x18], 0xffffffff
je 0x41f0be
push str.psapi.dll
call ebp
mov edi, eax
push str.advapi32.dll
mov dword [esp + 0x10], edi
call ebp
test edi, edi
mov ebp, eax
je 0x41f0ab
test ebp, ebp
je 0x41f0a8
push str.EnumProcesses
push edi
call esi
mov edi, eax
mov eax, dword [esp + 0xc]
push str.GetModuleFileNameExA
push eax
call esi
push str.OpenProcessToken
push ebp
mov dword [esp + 0x18], eax
call esi
push str.GetTokenInformation
push ebp
mov dword [esp + 0x1c], eax
call esi
xor esi, esi
cmp edi, esi
mov dword [esp + 0x24], eax
je 0x41f093
cmp dword [esp + 0x10], esi
je 0x41f093
cmp dword [esp + 0x14], esi
je 0x41f093
cmp eax, esi
je 0x41f093
push 0xffc
lea ecx, [esp + 0x38]
push esi
push ecx
mov dword [esp + 0x3c], esi
call fcn.00434f20
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x41ee3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push ebp
call esi
jmp 0x41f0be
mov esi, dword [esp + 0x1c]
push 0x104
xor edi, edi
lea edx, [esp + 0x113d]
push edi
shr esi, 2
push edx
mov dword [esp + 0x34], esi
mov byte [esp + 0x1144], 0
call fcn.00434f20
push 0x104
lea eax, [esp + 0x1461]
push edi
push eax
mov byte [esp + 0x1468], 0
call fcn.00434f20
push 0x104
lea ecx, [esp + 0x1365]
push edi
push ecx
mov byte [esp + 0x136c], 0
call fcn.00434f20
push 0x104
lea edx, [esp + 0x1059]
push edi
push edx
mov byte [esp + 0x1060], 0
call fcn.00434f20
push 0x104
lea eax, [esp + 0x1275]
push edi
push eax
mov byte [esp + 0x127c], 0
call fcn.00434f20
add esp, 0x3c
test esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
jbe 0x41f064
jmp 0x41eef0
push 0x105
lea ecx, [esp + 0x113c]
push 0
push ecx
call fcn.00434f20
push 0x105
lea edx, [esp + 0x1460]
push 0
push edx
call fcn.00434f20
push 0x105
lea eax, [esp + 0x1364]
push 0
push eax
call fcn.00434f20
push 0x105
lea ecx, [esp + 0x1058]
push 0
push ecx
call fcn.00434f20
push 0x105
lea edx, [esp + 0x1274]
push 0
push edx
call fcn.00434f20
mov eax, dword [esp + edi*4 + 0x6c]
add esp, 0x3c
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41f04e
push 0x105
lea ecx, [esp + 0x113c]
push ecx
push 0
push esi
call dword [esp + 0x20]
test eax, eax
je 0x41f034
push 0x104
lea edx, [esp + 0x1244]
push edx
push 0x104
lea eax, [esp + 0x103c]
push eax
push 0x104
lea ecx, [esp + 0x135c]
push ecx
push 0x104
lea edx, [esp + 0x146c]
push edx
lea eax, [esp + 0x1158]
push eax
call fcn.004341c5
lea ecx, [esp + 0x1054]
push ecx
push str.explorer
call fcn.00434175
add esp, 0x2c
test eax, eax
jne 0x41f034
lea edx, [esp + 0x1240]
push edx
push 0x44e94c
call fcn.00434175
add esp, 8
test eax, eax
jne 0x41f034
push ebx
push 0x2000e
push esi
call dword [esp + 0x20]
test eax, eax
je 0x41f034
mov edx, dword [ebx]
lea eax, [esp + 0x2c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push 0xc
push edx
call dword [esp + 0x38]
test eax, eax
je 0x41f034
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
je 0x41f05d
mov eax, dword [ebx]
test eax, eax
je 0x41f041
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x28]
jb 0x41eef0
jmp 0x41f064
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ecx
call esi
push ebp
call esi
xor eax, eax
cmp dword [ebx], eax
pop esi
pop edi
setne al
pop ebp
mov ecx, dword [esp + 0x154c]
xor ecx, esp
call fcn.004337a7
add esp, 0x1550
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
push ebp
call esi
jmp 0x41f0be
push edi
jmp 0x41f0b0
test ebp, ebp
je 0x41f0b6
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
xor al, al
pop ebp
mov ecx, dword [esp + 0x154c]
xor ecx, esp
call fcn.004337a7
add esp, 0x1550
ret
push edi
jmp 0x41f0b8
mov ecx, dword [esp + 0x1554]
pop edi
pop ebp
xor ecx, esp
xor al, al
call fcn.004337a7
add esp, 0x1550
ret