Function at 0x140001850
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x18], rax
movups xmm0, xmmword [str.Winsta0default]
xor ebx, ebx
mov r14d, r9d
movups xmm1, xmmword [0x140005808]
mov rsi, r8
mov r15, rdx
movups xmmword [rbp - 8], xmm0
mov r13, rcx
mov edi, ebx
movups xmmword [rbp + 8], xmm1
mov r12d, ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x60]
lea rdx, str.SeImpersonatePrivilege
call fcn.140001730
test eax, eax
je 0x140001acd
mov rcx, qword [0x140008778]
lea rdx, str.SeImpersonatePrivilege
call fcn.140001730
mov rcx, qword [0x140008778]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140001730
mov rcx, qword [0x140008778]
lea rdx, str.SeTcbPrivilege
call fcn.140001730
mov rcx, qword [0x140008778]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
lea r12d, [rbx + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140001a18
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xea60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, 0x7530
mov r10, r15
mov r9d, r8d
sub r10, rax
mov rdi, rax
mov rdx, rax
nop word [rax + rax]
lea rcx, [r9 + 0x7fff8ace]
test rcx, rcx
je 0x140001993
movzx ecx, word [r10 + rdx]
test cx, cx
je 0x140001993
mov word [rdx], cx
add rdx, 2
sub r9, 1
jne 0x140001970
test r9, r9
lea rax, [rdx - 2]
mov rcx, r8
cmovne rax, rdx
mov word [rax], bx
mov rax, rdi
cmp word [rax], bx
je 0x1400019b6
add rax, 2
sub rcx, 1
jne 0x1400019a7
mov rax, r8
sub rax, rcx
test rcx, rcx
cmove rax, rbx
je 0x140001a0d
lea rcx, [rdi + rax*2]
sub r8, rax
je 0x1400019ff
lea r9, [0x1400058d0]
mov eax, 0x7ffffffe
sub r9, rcx
nop dword [rax]
test rax, rax
je 0x1400019ff
movzx edx, word [r9 + rcx]
test dx, dx
je 0x1400019ff
mov word [rcx], dx
dec rax
add rcx, 2
sub r8, 1
jne 0x1400019e0
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], bx
mov r8, rsi
mov rcx, rdi
call fcn.140001010
movzx eax, word [r13]
cmp ax, 0x75
je 0x140001b1d
cmp ax, 0x2a
je 0x140001b1d
cmp ax, 0x74
jne 0x140001c2f
mov rcx, qword [0x1400087b0]
xorps xmm0, xmm0
xor eax, eax
mov r9, rdi
mov qword [rbp - 0x20], rax
mov r8, r15
mov qword [rsp + 0x78], rax
xor edx, edx
lea rax, [rbp - 8]
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
movups xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
xor r9d, r9d
lea rdx, str.Wr0ng
xor ecx, ecx
test eax, eax
jne 0x140001b0b
lea r8, str.Creat3Pr0cessWithTokenW_Failed
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140001c2f
mov rcx, qword [rsp + 0x60]
lea rdx, str.SeAssignPrimaryTokenPrivilege
call fcn.140001730
test eax, eax
jne 0x140001922
xor r9d, r9d
lea r8, str.Current_private_process_SeImpersonate
lea rdx, str.Wr0ng
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, str.Cre4tePr0cess
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140001c2a
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
test r14d, r14d
mov qword [rsp + 0x78], rax
mov esi, 0x10
lea rax, [rbp - 8]
cmovne esi, ebx
movups xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x80], 0x68
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rsp + 0x68], xmm0
jne 0x140001b91
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov rcx, qword [0x1400087b0]
lea r8, [rbp - 0x10]
mov r9d, 4
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [0x1400058d4]
lea rax, [rbp - 0x80]
mov r8, rdi
mov qword [rsp + 0x48], rax
mov rdx, r15
mov qword [rsp + 0x40], rcx
mov rcx, qword [0x1400087b0]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140001be6
mov eax, 1
jmp 0x140001c67
test r14d, r14d
je 0x140001c14
xor r9d, r9d
lea r8, str.Process_Process
lea rdx, str.Wr0ng
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
test r12d, r12d
je 0x140001c3a
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test rdi, rdi
je 0x140001c51
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, ebx
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.140003040
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret