Function at 0x14001e93d
Capabilities:
Enumerate processes
Terminate process

Disassembly:
jmp 0x140049c80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xba
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x140073040]
xor rax, rbp
mov qword [rbp + 0x450], rax
lea rcx, [0x14007d130]
call fcn.14001f711
nop
xor edx, edx
mov ecx, 2
call fcn.14001ead2
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140049d3b
lea rdx, str.Failed_to_take_a_snapshot_of_processes._Error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001e299
mov qword [rbp + 0x438], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x440], eax
mov edx, dword [rbp + 0x440]
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x448], rax
lea rdx, [0x14001e0eb]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.MSVCP140D.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]
nop
jmp 0x140049ed4
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001eded
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140049ec9
mov rdx, qword [rbp + 0x480]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140049eb1
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2a8], rax
cmp qword [rbp + 0x2a8], 0
je 0x140049e5c
mov edx, 9
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140049df7
lea rdx, str.Successfully_terminated_process:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001ebd6
mov rdx, qword [rbp + 0x480]
mov rcx, rax
call fcn.14001ebd6
mov qword [rbp + 0x438], rax
lea rdx, [0x14001eb2c]
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.MSVCP140D.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]
nop
jmp 0x140049e4c
lea rdx, str.Failed_to_terminate_process._Error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001e299
mov qword [rbp + 0x438], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x440], eax
mov edx, dword [rbp + 0x440]
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x448], rax
lea rdx, [0x14001e0eb]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.MSVCP140D.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]
nop
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140049eb1
lea rdx, str.Failed_to_open_process._Error_code:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001e299
mov qword [rbp + 0x438], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x440], eax
mov edx, dword [rbp + 0x440]
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.MSVCP140D.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 qword [rbp + 0x448], rax
lea rdx, [0x14001e0eb]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.MSVCP140D.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]
nop
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001f3e2
mov dword [rbp + 0x284], eax
jmp 0x140049d55
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x140062f00]
call fcn.14001f315
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.14001eb09
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret