Function at 0x140002590
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
movaps xmm0, xmmword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_]
mov rsi, r8
movaps xmm1, xmmword [0x1400051b0]
mov edi, edx
mov eax, dword [0x140005230]
mov r14, rcx
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rbp - 0xa]
movaps xmm0, xmmword [0x1400051c0]
xor edx, edx
movaps xmmword [rbp - 0x80], xmm0
mov r8d, 0x172
movaps xmm0, xmmword [0x1400051e0]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [0x1400051d0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x140005200]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x1400051f0]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x140005220]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x140005210]
mov dword [rbp - 0x10], eax
movzx eax, word [0x140005234]
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm1
mov word [rbp - 0xc], ax
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [str.SOFTWAREMicrosoftWindows_NTCurrentVersionSilentProcessExit_]
lea rcx, [rbp + 0x1f0]
movaps xmm1, xmmword [0x140005250]
xor edx, edx
movaps xmmword [rbp + 0x170], xmm0
mov r8d, 0x188
movaps xmm0, xmmword [0x140005260]
movaps xmmword [rbp + 0x180], xmm1
movaps xmm1, xmmword [0x140005270]
movaps xmmword [rbp + 0x190], xmm0
movaps xmm0, xmmword [0x140005280]
movaps xmmword [rbp + 0x1a0], xmm1
movaps xmm1, xmmword [0x140005290]
movaps xmmword [rbp + 0x1b0], xmm0
movaps xmm0, xmmword [0x1400052a0]
movaps xmmword [rbp + 0x1c0], xmm1
movaps xmm1, xmmword [0x1400052b0]
movaps xmmword [rbp + 0x1d0], xmm0
movaps xmmword [rbp + 0x1e0], xmm1
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rbp + 0x380], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002750
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x48]
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 + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140002a12
lea rdx, [rbp + 0x380]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400027d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, qword [rsp + 0x50]
lea rdx, str.Process32First
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]
xor eax, eax
jmp 0x140002a12
cmp dword [rbp + 0x388], edi
je 0x14000283e
lea rdx, [rbp + 0x380]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400027d0
mov edx, edi
lea rcx, str.____NiceKatz_was_unable_to_retrieve_process_name_of_PID:__d_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.Process32Next
jmp 0x1400028f7
lea rdx, [rbp + 0x3ac]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, [rbp + 0x790]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x790]
mov edx, 0x104
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call fcn.140002a30
test eax, eax
je 0x140002916
lea rcx, [0x140004bc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x14000291d
lea rcx, str.____Failed_to_get_handle_to_NTDLL_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.GetModuleHandle
mov r9, qword [rsp + 0x40]
lea rcx, str.____The_function__S_failed_with_error_code__d____S
mov r8d, ebx
call fcn.140001010
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140002a12
mov edx, dword [rsi + 0x10]
lea rcx, str.___Dumping_PID__d_via_SilentProcessExit_n
call fcn.140001010
lea rdx, str.RtlReportSilentProcessExit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007640], rax
test rax, rax
jne 0x140002998
lea rcx, str.____Could_not_find_RtlReportSilentProcessExit_in_NTDLL
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x800
xor edx, edx
mov ebx, eax
mov ecx, 0x1300
xor eax, eax
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, [0x140004c70]
jmp 0x1400028f7
mov edx, 1
mov rcx, r14
call rax
test eax, eax
je 0x1400029b6
lea rcx, str.____Unable_to_call_RtlReportSilentProcessExit_on_the_target_process_n
call fcn.140001010
xor eax, eax
jmp 0x140002a12
mov edx, dword [rsi + 0x10]
lea rcx, str.___PID__d_dumped_successfully_n
call fcn.140001010
lea r8, [rsp + 0x60]
mov edx, 0x208
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rbp + 0x380]
call fcn.140002df0
lea r8, [rbp + 0x170]
mov edx, 0x208
lea rcx, [rbp + 0x380]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rbp + 0x380]
call fcn.140002df0
mov eax, 1
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.140002fb0
add rsp, 0xab0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret