Function at 0x40d560
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1554
call fcn.004409b0
mov eax, dword [0x4551a0]
xor eax, esp
mov dword [esp + 0x1550], eax
mov eax, dword [esp + 0x155c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebp
mov ebp, dword [esp + 0x1560]
push esi
mov esi, ecx
mov dword [ebp], 0
cmp dword [esi + 8], 0
push edi
mov dword [esp + 0x34], eax
jne 0x40d5ad
push str.Kernel32.dll
call ebx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x40d891
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push eax
call edi
test eax, eax
je 0x40d891
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x40d891
cmp dword [esi + 0xc], 0
jne 0x40d5ed
push str.psapi.dll
call ebx
mov dword [esi + 0xc], eax
cmp dword [esi + 4], 0
jne 0x40d5fd
push str.advapi32.dll
call ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40d891
cmp dword [esi + 4], 0
je 0x40d891
push str.EnumProcesses
push eax
call edi
mov ecx, dword [esi + 0xc]
push str.GetModuleFileNameExA
push ecx
mov ebx, eax
call edi
mov edx, dword [esi + 0xc]
push str.GetProcessImageFileNameA
push edx
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
push 0x44bc90
push eax
call edi
mov ecx, dword [esi + 4]
push 0x44bca4
push ecx
mov dword [esp + 0x28], eax
call edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x30], eax
je 0x40d891
cmp dword [esp + 0x18], edi
jne 0x40d672
cmp dword [esp + 0x14], edi
je 0x40d891
cmp dword [esp + 0x20], edi
je 0x40d891
cmp eax, edi
je 0x40d891
push 0xffc
lea edx, [esp + 0x40]
push edi
push edx
mov dword [esp + 0x44], edi
call fcn.004323d0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x1000
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x28], edi
call ebx
test eax, eax
je 0x40d891
mov eax, dword [esp + 0x1c]
shr eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], edi
je 0x40d887
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d6e0
push 0x105
lea edx, [esp + 0x103c]
push 0
push edx
call fcn.004323d0
push 0x105
lea eax, [esp + 0x1468]
push 0
push eax
call fcn.004323d0
push 0x105
lea ecx, [esp + 0x136c]
push 0
push ecx
call fcn.004323d0
push 0x105
lea edx, [esp + 0x1168]
push 0
push edx
call fcn.004323d0
push 0x105
lea eax, [esp + 0x127c]
push 0
push eax
call fcn.004323d0
mov ecx, dword [esp + edi*4 + 0x74]
add esp, 0x3c
push ecx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d863
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d77f
push 0x105
lea edx, [esp + 0x103c]
push edx
push esi
call eax
test eax, eax
jne 0x40d7a5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d84f
push 0x105
lea ecx, [esp + 0x103c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x40d84f
push 0x104
lea edx, [esp + 0x124c]
push edx
push 0x104
lea eax, [esp + 0x114c]
push eax
push 0x104
lea ecx, [esp + 0x1364]
push ecx
push 0x104
lea edx, [esp + 0x1474]
push edx
lea eax, [esp + 0x1058]
push eax
call fcn.00431747
lea ecx, [esp + 0x1164]
push ecx
push str.explorer
call fcn.004316f7
add esp, 0x2c
test eax, eax
jne 0x40d84f
lea edx, [esp + 0x1248]
push edx
push str..exe
call fcn.004316f7
add esp, 8
test eax, eax
jne 0x40d84f
push ebp
push 0x2000e
push esi
call dword [esp + 0x2c]
test eax, eax
je 0x40d84f
mov eax, dword [ebp]
test eax, eax
je 0x40d859
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push 0xc
push eax
call dword [esp + 0x44]
test eax, eax
je 0x40d84f
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x10], eax
je 0x40d87a
mov eax, dword [ebp]
test eax, eax
je 0x40d859
push eax
call ebx
push esi
mov dword [ebp], 0
call ebx
add edi, 1
cmp edi, dword [esp + 0x28]
jb 0x40d6e0
xor eax, eax
cmp dword [ebp], eax
setne al
jmp 0x40d893
push esi
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov dword [edx], ecx
xor eax, eax
cmp dword [ebp], eax
setne al
jmp 0x40d893
xor al, al
mov ecx, dword [esp + 0x1560]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042fe0e
add esp, 0x1554
ret 8