Function at 0x1001c06b
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1001c0c2
xor eax, eax
jmp 0x1001c2bb
push str.WTSGetActiveConsoleSessionId
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
call dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov dword [ebp - 0x18], 0x30
push 0x44
push 0
lea ecx, [ebp - 0x70]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x68], str.winsta0default
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1001c144
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
lea ecx, [ebp - 0x7c]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1001c167
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 2
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1001c1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1001c1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
push 0
push 0
push 0x10
lea edx, [ebp - 0x8c]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1001c204
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
mov dword [ebp - 0x90], 0
push 1
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1001c230
mov eax, dword [ebp - 0x18]
or ah, 4
mov dword [ebp - 0x18], eax
jmp 0x1001c23a
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1001c273
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
jmp 0x1001c27e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x1001c288
xor eax, eax
test eax, eax
jne 0x1001c0da
cmp dword [ebp - 4], 0
je 0x1001c298
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x1001c2a8
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], 0
je 0x1001c2b8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 8