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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x1000badb
xor eax, eax
jmp 0x1000bcd6
push str.WTSGetActiveConsoleSessionId
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7c], eax
call dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call sub.WTSAPI32.dll_WTSQueryUserToken
mov dword [ebp - 0x74], 0x30
push 0x44
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], str.winsta0default
mov word [ebp - 0x2c], 0
push 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x6c]
push edx
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000bb63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
lea eax, [ebp - 0x94]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1000bb89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
mov dword [ebp - 0x8c], 1
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], 2
lea eax, [ebp - 0x68]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1000bbdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
push 4
lea edx, [ebp - 0x60]
push edx
push 0xc
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1000bc01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
push 0
push 0
push 0x10
lea ecx, [ebp - 0x8c]
push ecx
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000bc29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
mov dword [ebp - 0x98], 0
push 1
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1000bc55
mov edx, dword [ebp - 0x74]
or dh, 4
mov dword [ebp - 0x74], edx
jmp 0x1000bc5f
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x74]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1000bc99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000bca3
xor eax, eax
test eax, eax
jne 0x1000baf3
cmp dword [ebp - 0x64], 0
je 0x1000bcb3
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x68], 0
je 0x1000bcc3
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], 0
je 0x1000bcd3
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4