Function at 0x140001060
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x1400010c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_get_handle_to_ntdll.dll:_0x_lX_n
mov rcx, rax
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400013e7
mov qword [rsp + 0x310], r12
lea rdx, str.NtAllocateVirtualMemory
mov qword [rsp + 0x2d8], r14
mov rcx, rbx
mov qword [rsp + 0x2d0], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateThreadEx
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test r12, r12
je 0x1400014a6
test r14, r14
je 0x1400014a6
test rax, rax
je 0x1400014a6
movzx ecx, word [0x1400033e8]
xor edx, edx
mov word [rsp + 0x70], cx
movzx ecx, byte [0x1400033ea]
mov qword [rsp + 0x300], rsi
mov byte [rsp + 0x72], cl
mov ecx, 2
mov qword [rsp + 0x308], rdi
mov qword [rsp + 0x2e0], r13
xor r13d, r13d
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_create_snapshot:_0x_lX_n
mov rcx, rax
call fcn.140001010
jmp 0x140001235
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001203
lea rdx, str.discord.exe
lea rcx, [rbp - 0x54]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400011e8
lea rdx, [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400011c0
jmp 0x140001228
mov esi, dword [rbp - 0x78]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rbp - 0x78]
lea rdx, str.Process_found:_0x_lX_n
jmp 0x140001220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_retrieve_process_information:_0x_lX_n
mov rcx, rax
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x14000125b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.discord.exe
lea rdx, str.Process_not_found:__S_n
call fcn.140001010
jmp 0x1400013b2
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000129d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_open_process:_0x_lX_n
mov rcx, rax
call fcn.140001010
jmp 0x1400013b2
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x78]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r13
mov rcx, rdi
mov qword [rsp + 0x78], 3
call r12
mov ebx, eax
test eax, eax
je 0x1400012f6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_allocate_memory_in_target_process:_0x_lX_n
mov rcx, rax
call fcn.140001010
jmp 0x1400013a9
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, 3
mov qword [rsp + 0x20], r13
mov rcx, rdi
call r14
mov ebx, eax
test eax, eax
je 0x14000132b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Failed_to_write_to_process_memory:_0x_lX_n
jmp 0x140001387
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], r13
mov r9, rdi
mov dword [rsp + 0x48], r13d
xor r8d, r8d
mov dword [rsp + 0x40], r13d
mov edx, 0x1fffff
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], r13
call r15
mov ebx, eax
mov ecx, 2
test eax, eax
je 0x140001400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Failed_to_create_remote_thread:_0x_lX_n
mov r8d, ebx
mov rcx, rax
call fcn.140001010
mov rdx, qword [rsp + 0x60]
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x308]
mov r13, qword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x300]
mov r12, qword [rsp + 0x310]
mov r14, qword [rsp + 0x2d8]
mov r15, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400014f0
add rsp, 0x2e8
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x68]
lea rdx, str.Thread_created_successfully:_0x_p_n
mov rcx, rax
call fcn.140001010
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000144f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x68]
lea rdx, str.Thread_finished_successfully:_0x_p_n
mov rcx, rax
call fcn.140001010
jmp 0x140001474
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Error_in_WaitForSingleObject:_0x_lX_n
mov rcx, rax
call fcn.140001010
mov rdx, qword [rsp + 0x60]
mov r9d, 0x8000
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400013b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.Failed_to_get_function_address:_0x_lX_n
mov rcx, rax
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400013cf