Function at 0x140001290
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push rbp
push r15
lea rbp, [rsp - 0x888]
sub rsp, 0x988
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x860], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov r15, rdx
lea rdx, str.First_Argument:
call fcn.140001d50
mov rdx, qword [r15 + 8]
mov rcx, rax
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Second_Argument:
call fcn.140001d50
mov rdx, qword [r15 + 0x10]
mov rcx, rax
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Third_Argument:
call fcn.140001d50
mov rdx, qword [r15 + 0x18]
mov rcx, rax
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, str.SeDebugPrivilege
call fcn.1400011a0
test al, al
jne 0x140001381
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_set_required_privilege._Exiting...
call fcn.140001960
mov rcx, rax
lea rdx, [0x140001b30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140001896
lea rcx, str.SeImpersonatePrivilege
call fcn.1400011a0
test al, al
je 0x140001354
mov qword [rsp + 0x9a0], rbx
xor edx, edx
mov qword [rsp + 0x9b0], rsi
mov qword [rsp + 0x980], rdi
mov qword [rsp + 0x978], r12
xor r12d, r12d
lea ecx, [rdx + 2]
mov qword [rsp + 0x970], r14
mov r14, qword [r15 + 8]
mov esi, r12d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rdi
jne 0x140001413
mov esi, edi
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, rdi
jne 0x1400014f9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_open_process._Exiting...
call fcn.140001960
jmp 0x140001836
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, rbx
test eax, eax
je 0x14000147c
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1400014d0
lea rax, [rbp - 0x54]
mov r8, r14
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001464
add rax, 2
test ecx, ecx
jne 0x140001450
test edx, edx
je 0x140001484
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400014e1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x1400044d0]
call fcn.140001b70
mov rcx, rax
mov rdx, r14
call fcn.140001b70
mov rcx, rax
lea rdx, [0x1400044cc]
call fcn.140001d50
mov edx, dword [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov esi, dword [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1400013df
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_find_task._Exiting...
call fcn.140001960
jmp 0x140001836
lea r8, [rsp + 0x68]
mov qword [rsp + 0x68], r12
mov edx, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001530
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_open_process_token._Exiting...
jmp 0x14000181d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x60], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, dword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x68]
mov rbx, rax
lea rax, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea rax, [rbp + 0x1c8]
mov dword [rbp + 0x1c4], 0x100
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x1c4]
lea rax, [rbp + 0x1c0]
mov dword [rbp + 0x1c0], 0x100
mov rdx, qword [rbx]
lea r8, [rbp + 0x460]
mov qword [rsp + 0x28], rax
xor ecx, ecx
lea rax, [rbp + 0x660]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x140004628]
call fcn.140001b70
mov rcx, rax
lea rdx, [rbp + 0x460]
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140004624]
call fcn.140001d50
mov rcx, rax
lea rdx, [rbp + 0x660]
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
mov qword [rsp + 0x70], r12
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140001681
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_duplicate_token._Exiting...
call fcn.140001960
jmp 0x140001836
xorps xmm0, xmm0
mov dword [rbp + 0x1f0], 0x68
xor eax, eax
lea rcx, [rbp + 0x260]
xor edx, edx
mov dword [rbp + 0x254], eax
mov r8d, 0x200
mov qword [rbp + 0x1e0], rax
movups xmmword [rbp + 0x1f4], xmm0
movups xmmword [rbp + 0x204], xmm0
movups xmmword [rbp + 0x214], xmm0
movups xmmword [rbp + 0x224], xmm0
movups xmmword [rbp + 0x234], xmm0
movups xmmword [rbp + 0x244], xmm0
movups xmmword [rbp + 0x1d0], xmm0
call sub.VCRUNTIME140.dll_memset
mov r9d, 1
lea r8, [0x140004680]
mov edx, 0x100
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r8, qword [r15 + 0x10]
mov r9, rdi
nop dword [rax + rax]
inc r9
cmp word [r8 + r9*2], r12w
jne 0x140001710
mov edx, 0x100
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9d, 1
lea r8, [0x140004680]
mov edx, 0x100
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9d, 1
lea r8, [0x140004684]
mov edx, 0x100
lea rcx, [rbp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r8, qword [r15 + 0x18]
nop
inc rdi
cmp word [r8 + rdi*2], r12w
jne 0x140001770
mov r9, rdi
lea rcx, [rbp + 0x260]
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x140004688]
call fcn.140001b70
mov rcx, rax
lea rdx, [rbp + 0x260]
call fcn.140001b70
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x260]
lea rax, [rbp + 0x1f0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x8000000
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000184d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_process_with_token._Exiting...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov ebx, eax
call fcn.140001960
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001b30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x14000186e
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 rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r12, qword [rsp + 0x978]
mov rdi, qword [rsp + 0x980]
mov rsi, qword [rsp + 0x9b0]
mov rbx, qword [rsp + 0x9a0]
mov r14, qword [rsp + 0x970]
mov rcx, qword [rbp + 0x860]
xor rcx, rsp
call fcn.140002180
add rsp, 0x988
pop r15
pop rbp
ret