Function at 0x1005a780
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7392
mov eax, dword fs:[0]
push eax
mov eax, 0x2b7c
call fcn.1008c5b0
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x28a0]
push 0x11
mov dword [ebp - 0x2b2c], eax
mov eax, dword [ebp + 0x1c]
push str.WTSQueryUserToken
mov dword [ebp - 0x2b28], eax
mov dword [ebp - 0x2890], 0
mov dword [ebp - 0x288c], 0xf
mov byte [ebp - 0x28a0], 0
call fcn.10011e40
push str.wtsapi32.dll
lea ecx, [ebp - 0x28bc]
mov dword [ebp - 4], 0
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
xor esi, esi
lea eax, [ebp - 0x28b8]
cmp dword [ebp - 0x28a4], 8
mov dword [ebp - 0x2b34], esi
cmovae eax, dword [ebp - 0x28b8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
mov dword [ebp - 0x2b30], ecx
test ecx, ecx
je 0x1005a85a
cmp dword [ebp - 0x288c], 0x10
lea eax, [ebp - 0x28a0]
cmovae eax, dword [ebp - 0x28a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x2b34], esi
lea ecx, [ebp - 0x28bc]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x288c]
cmp edx, 0x10
jb 0x1005a8a3
mov ecx, dword [ebp - 0x28a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a899
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ae15
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov dword [ebp - 0x2890], 0
mov dword [ebp - 0x288c], 0xf
mov byte [ebp - 0x28a0], 0
test esi, esi
je 0x1005ade7
lea eax, [ebp - 0x2b20]
mov dword [ebp - 0x2b20], 0
push eax
push 0x2000000
mov dword [ebp - 0x2b08], 0
mov dword [ebp - 0x2b1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1005a909
or esi, 0xffffffff
jmp 0x1005ade7
lea eax, [ebp - 0x2b08]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x2b20]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1005a933
lea esi, [eax - 2]
jmp 0x1005ade7
cmp dword [ebp + 0xc], 0
jne 0x1005aa1f
push 0x1c
xor edi, edi
mov dword [ebp - 0x2870], 0xf
push str.WTSGetActiveConsoleSessionId
lea ecx, [ebp - 0x2884]
mov dword [ebp - 0x2874], edi
mov byte [ebp - 0x2884], 0
call fcn.10011e40
push str.Kernel32.dll
lea ecx, [ebp - 0x28d8]
mov byte [ebp - 4], 3
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
lea eax, [ebp - 0x2884]
push eax
lea eax, [ebp - 0x28d8]
push eax
lea ecx, [ebp - 0x2b14]
call sym.XNewLookSch.dll_public:_void___thiscall_LDynamicFnBase::constructor_class_LString_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea ecx, [ebp - 0x28d8]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2870]
cmp edx, 0x10
jb 0x1005a9de
mov ecx, dword [ebp - 0x2884]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005a9d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005ae1a
push edx
push ecx
call fcn.1008bfe4
add esp, 8
mov eax, dword [ebp - 0x2b14]
mov dword [ebp - 0x2874], 0
mov dword [ebp - 0x2870], 0xf
mov byte [ebp - 0x2884], 0
test eax, eax
je 0x1005aa07
call eax
mov edi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2b10]
test ecx, ecx
je 0x1005aa1c
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp + 0xc], edi
push 4
lea eax, [ebp + 0xc]
push eax
push 0xc
push dword [ebp - 0x2b08]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1005aa47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xfffffffd
jmp 0x1005ade7
push 0x2654
lea eax, [ebp - 0x286c]
push 0
push eax
call fcn.1008da10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008da10
mov ecx, dword [ebp + 8]
add esp, 0x18
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x1005aa7e
mov ecx, dword [ecx]
lea edx, [ebp - 0x286c]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1005aa90
lea eax, [ebp - 0x2b0c]
mov dword [ebp - 0x2b18], 0
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x2b0c], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1005ab9e
xor eax, eax
push eax
push 2
mov dword [ebp - 0x2b10], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1005ab9e
lea eax, [ebp - 0x2b04]
mov dword [ebp - 0x2b04], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1005ab63
lea eax, [ebp - 0x2ae0]
push str.explorer.exe
push eax
call fcn.10092559
add esp, 8
test eax, eax
jne 0x1005ab44
mov dword [ebp - 0x2b24], eax
lea eax, [ebp - 0x2b24]
push eax
push dword [ebp - 0x2afc]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1005ab44
mov eax, dword [ebp - 0x2b24]
cmp eax, dword [ebp + 0xc]
je 0x1005ab57
lea eax, [ebp - 0x2b04]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1005ab04
jmp 0x1005ab63
mov eax, dword [ebp - 0x2afc]
mov dword [ebp - 0x2b10], eax
push esi
call edi
mov eax, dword [ebp - 0x2b10]
test eax, eax
je 0x1005ab9e
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1005ab9e
lea eax, [ebp - 0x2b0c]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1005ab9e
push esi
call edi
mov eax, dword [ebp - 0x2b0c]
test eax, eax
je 0x1005abc1
lea ecx, [ebp - 0x2b1c]
push ecx
push 1
push 1
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x2b1c]
test eax, eax
mov ecx, dword [ebp - 0x2b08]
push 1
cmovne ecx, eax
lea eax, [ebp - 0x2b18]
push ecx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov ecx, 0x430
push 0x44
lea eax, [ebp - 0x2b88]
mov esi, 0x30
push 0
push eax
cmovne esi, ecx
call fcn.1008da10
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x2b58], ax
xor eax, eax
mov dword [ebp - 0x2b88], 0x44
mov dword [ebp - 0x2b5c], 1
mov dword [ebp - method.LString.virtual_0], vtable.LString.0
mov dword [ebp - 0x2874], 0
mov dword [ebp - 0x2870], 7
mov word [ebp - 0x2884], ax
push 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2884]
inc dword [sym.XNewLookSch.dll_unsigned_int_LString::_ui_instance_count]
push str.WinSta0_
call fcn.10002b70
push dword [ebp - 0x2b28]
lea eax, [ebp - 0x2888]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28bc]
push eax
call sym.XNewLookSch.dll_class_LString___cdecl_operator_class_LString_const___class_LString_const__
add esp, 0xc
lea ecx, [ebp - 0x2888]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
cmp dword [ebp - 0x28a4], 8
lea ecx, [ebp - 0x28b8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x28b8]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x1005acb0
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x28bc]
mov dword [ebp - 0x2b80], eax
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov eax, dword [ebp - 0x2b2c]
xorps xmm0, xmm0
add eax, 4
movups xmmword [ebp - 0x2b44], xmm0
cmp dword [eax + 0x14], 8
jb 0x1005acf2
mov eax, dword [eax]
lea ecx, [ebp - 0x2b44]
push ecx
lea ecx, [ebp - 0x2b88]
push ecx
push eax
push dword [ebp - 0x2b18]
lea eax, [ebp - 0x286c]
push esi
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x2b08]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1005ad2f
lea esi, [eax - 4]
jmp 0x1005ade7
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
js 0x1005ad92
jne 0x1005ad4a
push 0xffffffffffffffff
push dword [ebp - 0x2b44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1005ad64
imul eax, eax, 0x3e8
push eax
push dword [ebp - 0x2b44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1005ad8d
lea eax, [ebp - 0x2b10]
mov dword [ebp - 0x2b10], esi
push eax
push dword [ebp - 0x2b44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
mov esi, 0xffffcfc7
cmovne esi, dword [ebp - 0x2b10]
jmp 0x1005ad92
mov esi, 0xfffffed4
push dword [ebp - 0x2b44]
call edi
push dword [ebp - 0x2b40]
call edi
mov eax, dword [ebp - 0x2b18]
test eax, eax
je 0x1005adb3
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x2b0c]
test eax, eax
je 0x1005adc0
push eax
call edi
mov eax, dword [ebp - 0x2b1c]
test eax, eax
je 0x1005adcd
push eax
call edi
mov eax, dword [ebp - 0x2b20]
test eax, eax
je 0x1005adda
push eax
call edi
mov eax, dword [ebp - 0x2b08]
test eax, eax
je 0x1005ade7
push eax
call edi
mov eax, dword [ebp - 0x2b30]
test eax, eax
je 0x1005adf8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
call fcn.10092486
int3