Function at 0x140006d60
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes
Move file

Disassembly:
push rdi
sub rsp, 0x770
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x760], rax
mov dword [rsp + 0x80], 0
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsp + 0x64], eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x140006db4
mov eax, 1
jmp 0x140007245
mov dword [rsp + 0x1f0], 0x130
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140006de0
mov eax, 1
jmp 0x140007245
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x60]
call fcn.1400072d0
mov rcx, rax
call fcn.140008340
mov rdx, rax
lea rcx, [rsp + 0x21c]
call fcn.140049fbc
test eax, eax
jne 0x140006e4c
mov dword [rsp + 0x170], 0
lea rdx, [rsp + 0x170]
mov ecx, dword [rsp + 0x1f8]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140006e4c
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x170], eax
jne 0x140006e4c
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x78], eax
jmp 0x140006e67
lea rdx, [rsp + 0x1f0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140006de0
lea rdx, [rsp + 0xf0]
mov ecx, dword [rsp + 0x64]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov dword [rsp + 0x68], 0x30
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x100], 0x68
lea rax, str.winsta0default
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x1d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x2000000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0xe8]
mov edx, 0x201eb
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140006f09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
lea r8, [rsp + 0x178]
lea rdx, [0x140080c08]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rsp + 0x180], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x178]
mov qword [rsp + rax + 0x184], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x18c], 2
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x64]
mov r9d, 4
mov r8d, eax
mov edx, 0xc
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x180]
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140006ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0xe0], 0
mov r8d, 1
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140007037
mov eax, dword [rsp + 0x68]
bts eax, 0xa
mov dword [rsp + 0x68], eax
jmp 0x140007043
mov qword [rsp + 0xe0], 0
mov edx, 0xa
lea rcx, [rsp + 0x540]
call fcn.140006cf0
mov r8d, 0x104
lea rdx, [rsp + 0x430]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x190]
call fcn.140003040
nop
mov r8, 0xffffffffffffffff
mov dl, 0x5c
lea rcx, [rsp + 0x190]
call fcn.1400084c0
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x7c]
inc eax
cdqe
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x190]
call fcn.1400083a0
nop
lea rcx, [rsp + 0x1b0]
call fcn.140002ee0
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x61]
call fcn.140007370
mov rcx, rax
call fcn.140008320
mov qword [rsp + 0xa8], rax
lea r9, [rsp + 0x540]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x320]
call fcn.140006880
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x430]
call fcn.14004dad8
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x62]
call fcn.140007410
mov rcx, rax
call fcn.140008300
lea r8, [rsp + 0x320]
mov rdx, rax
lea rcx, [rsp + 0x650]
call fcn.140006880
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x650]
lea rdx, [rsp + 0x320]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov dword [rsp + 0x80], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x9c], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x84], 0
lea rcx, [rsp + 0x1b0]
call fcn.140002f90
nop
lea rcx, [rsp + 0x190]
call fcn.140002f90
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x760]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x770
pop rdi
ret