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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea edi, [ebp - 0x80]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1042cac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov esi, esp
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x1023a919
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
jmp 0x1023ac19
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.10140411
push 0x44
push 0
mov eax, dword [ebp + 0x1c]
push eax
call fcn.1013a813
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x44
mov eax, dword [ebp + 0x1c]
mov dword [eax + 8], str.winsta0default
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
push ecx
push 0x103c80e8
call fcn.1013e508
add esp, 8
push 0x10
push 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.1013a813
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x64]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp esi, esp
call fcn.1013ca23
test eax, eax
jne 0x1023a9bf
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0xc], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
push eax
push str.fail_LookupPrivilegeValue_error_:__d_n
call fcn.1013e508
add esp, 8
jmp 0x1023abcb
mov dword [ebp - 0x54], 1
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [ebp + ecx - 0x50], edx
mov dword [ebp + ecx - 0x4c], eax
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x48], 2
mov esi, esp
lea eax, [ebp - 0x24]
push eax
push 1
push 1
push 0
push 0x2000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp esi, esp
call fcn.1013ca23
test eax, eax
jne 0x1023aa46
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0xc], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
push eax
push str.fail_DuplicateTokenEx_error_:__d_n
call fcn.1013e508
add esp, 8
jmp 0x1023abcb
mov esi, esp
push 4
lea eax, [ebp + 0x20]
push eax
push 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
cmp esi, esp
call fcn.1013ca23
test eax, eax
jne 0x1023aa99
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0xc], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
push eax
push str.fail_SetTokenInformation_error_:__d_n
call fcn.1013e508
add esp, 8
jmp 0x1023abcb
mov esi, esp
push 0
push 0
push 0x10
lea eax, [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp esi, esp
call fcn.1013ca23
test eax, eax
jne 0x1023aaf0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0xc], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
push eax
push str.fail_AdjustTokenPrivileges_error_:__d_n
call fcn.1013e508
add esp, 8
jmp 0x1023abcb
mov dword [ebp - 0x70], 0
mov esi, esp
push 0x103c81a0
mov edi, esp
push str.UserEnv.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.1013ca23
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1013ca23
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x1023ab2e
jmp 0x1023abcb
mov esi, esp
push 1
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x70]
push ecx
call dword [ebp - 0x7c]
cmp esi, esp
call fcn.1013ca23
test eax, eax
je 0x1023ab55
mov eax, dword [ebp + 0x24]
or eax, 0x400
mov dword [ebp + 0x24], eax
jmp 0x1023ab5c
mov dword [ebp - 0x70], 0
mov esi, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp esi, esp
call fcn.1013ca23
test eax, eax
jne 0x1023abb6
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1013ca23
push eax
push str.fail_CreateProcessAsUser_error_:__d_n
call fcn.1013e508
add esp, 8
jmp 0x1023abcb
push str.success_CreateProcessAsUser_n
call fcn.1013e508
add esp, 4
xor eax, eax
jne 0x1023a919
cmp dword [ebp - 0x18], 0
je 0x1023abe4
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1013ca23
cmp dword [ebp - 0x24], 0
je 0x1023abfd
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1013ca23
cmp dword [ebp + 8], 0
je 0x1023ac16
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1013ca23
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x1023ac4c]
call fcn.1013bc63
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1013a69c
add esp, 0x140
cmp ebp, esp
call fcn.1013ca23
mov esp, ebp
pop ebp
ret 0x20