Function at 0x140002d30
Capabilities:
Acquire debug privileges
Create directory
Enumerate processes
Execute command
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x940], rax
xor edi, edi
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x70], edi
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002dd8
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x68]
test eax, eax
cmove ecx, edi
mov dword [rsp + 0x68], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x68], edi
je 0x14000344a
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x140002e33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LookupPrivilegeValue_error:__u_n
call fcn.140001020
jmp 0x140002e6c
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x7c], rax
mov dword [rbp - 0x7c], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x4e0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.StatusCheckInject.txt
lea rcx, [rbp + 0x4e0]
call fcn.1400042e0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.StatusCheckInject.txt
lea rcx, [rbp + 0x1b0]
call fcn.1400042e0
nop
lea rdx, str.Running
lea rcx, [rbp + 0x1b0]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rcx, [rbp + 0x1b8]
call fcn.140004e60
test rax, rax
jne 0x140002f1d
mov rax, qword [rbp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x1b0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, str.CheckInjectOutput
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x3d0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.CheckInjectOutputCheckInject.txt
lea rcx, [rbp + 0x3d0]
call fcn.1400042e0
nop
call fcn.1400020c0
call fcn.140002870
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.CheckInjectOutputCheckInject.txt
lea rcx, [rbp - 0x70]
call fcn.1400042e0
nop
lea rdx, str.CHECK_INJECT_THREAD
lea rcx, [rbp - 0x70]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rdx, str.pid_tid_Start_thread_Memory_start_address_size
lea rcx, [rbp - 0x70]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rdx, str._____________________CHECK_INJECT_THREAD__________________
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rcx, [rbp - 0x68]
call fcn.140004e60
test rax, rax
jne 0x140003014
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp + 0x704]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x700], 0x238
lea rdx, [rbp + 0x700]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ecx, dword [rbp + 0x708]
call fcn.140001bd0
lea rdx, [rbp + 0x700]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003050
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x68], rbx
cmp qword [rbp + 0x18], 0
je 0x1400030ce
mov rax, qword [rbp - 0x50]
lea rcx, [rbp + 8]
cmp qword [rax], rcx
jne 0x1400030ce
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov qword [rax], rcx
mov rax, qword [rbp - 0x30]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x18]
mov dword [rax], edx
cmp byte [rbp + 0x14], 0
je 0x1400030dd
lea rcx, [rbp - 0x68]
call fcn.140004e60
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.StatusCheckInject.txt
lea rcx, [rbp + 0xa0]
call fcn.1400042e0
nop
lea rdx, str.Done
lea rcx, [rbp + 0xa0]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rcx, [rbp + 0xa8]
call fcn.140004e60
test rax, rax
jne 0x140003180
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xa0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xa0], rdi
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x9c], edx
mov qword [rbp + 0xa8], rbx
cmp qword [rbp + 0x128], 0
je 0x1400031f5
mov rax, qword [rbp + 0xc0]
lea rcx, [rbp + 0x118]
cmp qword [rax], rcx
jne 0x1400031f5
mov rdx, qword [rbp + 0x138]
mov rcx, qword [rbp + 0x130]
mov qword [rax], rcx
mov rax, qword [rbp + 0xe0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xf8]
mov dword [rax], edx
cmp byte [rbp + 0x124], 0
je 0x14000320a
lea rcx, [rbp + 0xa8]
call fcn.140004e60
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x148]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x3d0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x3d0], rdi
mov rax, qword [rbp + 0x3d0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x3cc], edx
mov qword [rbp + 0x3d8], rbx
cmp qword [rbp + 0x458], 0
je 0x1400032a8
mov rax, qword [rbp + 0x3f0]
lea rcx, [rbp + 0x448]
cmp qword [rax], rcx
jne 0x1400032a8
mov rdx, qword [rbp + 0x468]
mov rcx, qword [rbp + 0x460]
mov qword [rax], rcx
mov rax, qword [rbp + 0x410]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x428]
mov dword [rax], edx
cmp byte [rbp + 0x454], 0
je 0x1400032bd
lea rcx, [rbp + 0x3d8]
call fcn.140004e60
lea rcx, [rbp + 0x3d8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x478]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x1b0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x1b0], rdi
mov rax, qword [rbp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x1ac], edx
mov qword [rbp + 0x1b8], rbx
cmp qword [rbp + 0x238], 0
je 0x14000335b
mov rax, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x228]
cmp qword [rax], rcx
jne 0x14000335b
mov rdx, qword [rbp + 0x248]
mov rcx, qword [rbp + 0x240]
mov qword [rax], rcx
mov rax, qword [rbp + 0x1f0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x208]
mov dword [rax], edx
cmp byte [rbp + 0x234], 0
je 0x140003370
lea rcx, [rbp + 0x1b8]
call fcn.140004e60
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x258]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x4e0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x4e0], rdi
mov rax, qword [rbp + 0x4e0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4dc], edx
mov qword [rbp + 0x4e8], rbx
cmp qword [rbp + 0x568], 0
je 0x14000340e
mov rax, qword [rbp + 0x500]
lea rcx, [rbp + 0x558]
cmp qword [rax], rcx
jne 0x14000340e
mov rdx, qword [rbp + 0x578]
mov rcx, qword [rbp + 0x570]
mov qword [rax], rcx
mov rax, qword [rbp + 0x520]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x538]
mov dword [rax], edx
cmp byte [rbp + 0x564], 0
je 0x140003423
lea rcx, [rbp + 0x4e8]
call fcn.140004e60
lea rcx, [rbp + 0x4e8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x4f0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x588]
jmp 0x14000368c
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x5f0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.StatusCheckInject.txt
lea rcx, [rbp + 0x5f0]
call fcn.1400042e0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x2c0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 8
lea rdx, str.StatusCheckInject.txt
lea rcx, [rbp + 0x2c0]
call fcn.1400042e0
nop
lea rdx, str.This_program_requires_admin_privileges._Please_run_as_administrator
lea rcx, [rbp + 0x2c0]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140008710]
call fcn.140005280
lea rdx, str.This_program_requires_admin_privileges._Please_run_as_administrator
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005280
mov rcx, rax
lea rdx, [0x140005450]
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]
lea rcx, [rbp + 0x2c8]
call fcn.140004e60
test rax, rax
jne 0x14000351f
mov rax, qword [rbp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x2c0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x2c0], rdi
mov rax, qword [rbp + 0x2c0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2bc], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x2c8], rbx
cmp qword [rbp + 0x348], 0
je 0x1400035a2
mov rax, qword [rbp + 0x2e0]
lea rcx, [rbp + 0x338]
cmp qword [rax], rcx
jne 0x1400035a2
mov rdx, qword [rbp + 0x358]
mov rcx, qword [rbp + 0x350]
mov qword [rax], rcx
mov rax, qword [rbp + 0x300]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x318]
mov dword [rax], edx
cmp byte [rbp + 0x344], 0
je 0x1400035b7
lea rcx, [rbp + 0x2c8]
call fcn.140004e60
lea rcx, [rbp + 0x2c8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x368]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rbp + 0x5f0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x5f0], rdi
mov rax, qword [rbp + 0x5f0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5ec], edx
mov qword [rbp + 0x5f8], rbx
cmp qword [rbp + 0x678], 0
je 0x140003655
mov rax, qword [rbp + 0x610]
lea rcx, [rbp + 0x668]
cmp qword [rax], rcx
jne 0x140003655
mov rdx, qword [rbp + 0x688]
mov rcx, qword [rbp + 0x680]
mov qword [rax], rcx
mov rax, qword [rbp + 0x630]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x648]
mov dword [rax], edx
cmp byte [rbp + 0x674], 0
je 0x14000366a
lea rcx, [rbp + 0x5f8]
call fcn.140004e60
lea rcx, [rbp + 0x5f8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x600]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x698]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rbp + 0x940]
xor rcx, rsp
call fcn.140005ec0
lea r11, [rsp + 0xa50]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret