Function at 0x140054a30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x2a0
mov rax, qword [0x140076028]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._MM__n
mov rbp, qword [0x140077eb8]
call fcn.140016960
mov r8d, 1
call fcn.140055560
test al, al
je 0x140054d37
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.The_SeDebugPrivilege_was_enabled_
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x2c0], r14
call fcn.140016960
mov rcx, rax
lea rdx, [0x140016b30]
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]
xor esi, esi
xor edx, edx
xor edi, edi
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x50]
mov rcx, r14
lea rbx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140054cf7
nop dword [rax]
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140054b0d
mov rdx, qword [rbx]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140054b2a
mov eax, dword [rsp + 0x6c]
cmp eax, edi
jbe 0x140054b2a
mov esi, dword [rsp + 0x58]
mov edi, eax
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140054b00
mov dword [rbp + 0x24], esi
test esi, esi
je 0x140054cfa
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Emulator_PID:
call fcn.140016960
mov rcx, rax
lea rdx, [0x140055c20]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, esi
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, [0x140016b30]
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 r8d, dword [rbp + 0x24]
xor edx, edx
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
mov rbx, rax
test rax, rax
je 0x140054cc7
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Opened_emulator_process_handle:
call fcn.140016960
mov rcx, rax
lea rdx, [0x140018e80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
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___void_const____ptr64____ptr64]
mov rcx, rax
call fcn.140016b70
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
mov r8d, 0x17
mov qword [rsp + 0x38], 0
lea rdx, str.DeviceKProcessHacker2
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.14000a260
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140054d70
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x140054c69
test al, al
je 0x140054c69
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Connected_to_driver_0x
call fcn.140016960
mov rcx, rax
lea rdx, [0x140018e80]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
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___void_const____ptr64____ptr64]
mov rcx, rax
call fcn.140016b70
xor r8d, r8d
call fcn.140055560
mov al, 1
jmp 0x140054c8e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._ConnectToDriver__Cant_connect_to_driver
call fcn.140016960
mov rcx, rax
lea rdx, [0x140016b30]
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]
xor al, al
mov rdi, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2b0]
mov r14, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14005d020
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._OpenProcess__Couldnt_open_process._Please_Run_as_administrator_permission._Error:
mov ebx, eax
call fcn.140016960
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
call fcn.140016b70
jmp 0x140054c8c
mov dword [rbp + 0x24], esi
cmp qword [rbx + 0x18], 8
jb 0x140054d04
mov rbx, qword [rbx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Not_found_process:
call fcn.1400556b0
mov rcx, rax
mov rdx, rbx
call fcn.1400556b0
mov rcx, rax
lea rdx, [0x140055880]
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]
jmp 0x140054c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._SetPrivilege__Cant_get_SeDebugPrivilege__Error:
mov ebx, eax
call fcn.140016960
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
call fcn.140016b70
xor al, al
jmp 0x140054ca6