Function at 0x41eb20
Capabilities:
Acquire debug privileges
Create process on windows
Create process suspended
Enumerate processes
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d5eee
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x304]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2f0], 2
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x41ec16
mov byte [esp + 0x2f0], 1
mov eax, dword [esp + 0x2f8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ebbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], bl
mov eax, dword [esp + 0x2fc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ebe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2f0], edi
mov eax, dword [esp + 0x300]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41ec0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41f256
push 0x228
lea ecx, [esp + 0xbc]
push ebx
push ecx
call fcn.004b0770
add esp, 0xc
lea edx, [esp + 0xb4]
push edx
push esi
mov dword [esp + 0xbc], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41ecdc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x2f0], 1
mov eax, dword [esp + 0x2f8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ec7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], bl
mov eax, dword [esp + 0x2fc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2f0], edi
mov eax, dword [esp + 0x300]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x41ec0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41f256
push str.explorer.exe
lea ecx, [esp + 0x28]
xor ebp, ebp
call fcn.00410140
mov byte [esp + 0x2f0], 3
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ebx, [ebx]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xd8]
jmp 0x41ed10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ed36
cmp dx, bx
je 0x41ed32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ed36
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41ed10
xor eax, eax
jmp 0x41ed3b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
test al, al
je 0x41ed69
mov edx, dword [esp + 0xbc]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x41ed69
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], eax
je 0x41ee07
lea ecx, [esp + 0xb4]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ed00
lea edx, [esp + 0xb4]
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
lea esp, [esp]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xd8]
jmp 0x41eda0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41edc6
cmp dx, bx
je 0x41edc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41edc6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41eda0
xor eax, eax
jmp 0x41edcb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
test al, al
je 0x41edeb
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x41edff
lea edx, [esp + 0xb4]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41ed90
jmp 0x41ee0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0xbc]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push edx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jne 0x41ee2e
push str.Failed_to_WTSQueryUserToken
call edi
push ebp
push ebx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x44], esi
jne 0x41ee4c
push str.Failed_to_OpenProcess_With_Maximum_allowed
call edi
lea eax, [esp + 0x2c]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41ee68
push str.Failed_to_OpenProcessToken
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea ecx, [esp + 0x4c]
push ecx
push str.SeDebugPrivilege
push ebx
call esi
test eax, eax
jne 0x41ee86
push str.Failed_to_LookupPrivilegeValue
call edi
lea edx, [esp + 0x64]
push edx
push str.SeTcbPrivilege
push ebx
call esi
test eax, eax
jne 0x41ee9e
push str.Failed_to_LookupPrivilegeValue
call edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x1c]
push edx
push 1
push 1
push ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
push 0x2000000
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41eef6
call esi
push eax
push str.Failed_to_DuplicateTokenEx_r_n
call fcn.00477660
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 4
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x41ef1e
call esi
push eax
push str.Failed_to_SetTokenInformation_r_n
call fcn.00477660
add esp, 8
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
push 0x10
lea eax, [esp + 0x60]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x41ef47
call esi
push eax
push str.Failed_to_AdjustTokenPrivileges_r_n
call fcn.00477660
add esp, 8
call esi
cmp eax, 0x514
jne 0x41ef5d
push str.Token_does_not_have_the_provilege_r_n
call fcn.00477660
add esp, 4
mov edx, dword [esp + 0x1c]
push 1
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
mov edi, 0x20
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41ef81
mov edi, 0x420
push 0x44
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.004b0770
xor eax, eax
add esp, 0xc
mov dword [esp + 0x6c], 0x44
mov word [esp + 0x9c], 5
mov dword [esp + 0x74], str.winsta0default
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41efd7
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2f0], 4
mov ecx, dword [esp + 0x2fc]
mov ebp, dword [esp + 0x2f8]
push ecx
push ebp
lea edx, [esp + 0x20]
push str._s__s
push edx
call fcn.00410070
mov edx, dword [esp + 0x310]
mov ebx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push edi
push 0
push 0
push 0
push ebx
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [esp + 0x18], eax
call esi
mov edx, dword [esp + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edi, eax
call esi
mov eax, dword [esp + 0x40]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41f079
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x28], 0
je 0x41f094
push eax
call esi
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41f0b3
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x41f0a8
mov dword [ecx], eax
jmp 0x41f0b3
push eax
call esi
mov dword [esp + 0x30], 0
mov byte [esp + 0x2f0], 3
add ebx, 0xfffffff0
cmp dword [esp + 0x18], 0
jne 0x41f195
or edi, 0x80070000
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f0e8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [esp + 0x2f0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x2f0], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f135
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x2f0], 0
mov eax, dword [esp + 0x2fc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f160
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x300]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f18e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x41f256
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1ae
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x2f0], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x2f0], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1fb
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov byte [esp + 0x2f0], 0
mov eax, dword [esp + 0x2fc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2f0], 0xffffffff
mov eax, dword [esp + 0x300]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004ac89d
add esp, 0x2e0
ret