Function at 0x18001589c
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x680
mov r14, rcx
mov ecx, 0x418
mov r13, rdx
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
xor esi, esi
mov rdx, r13
mov rcx, r14
mov qword [rax], rax
mov qword [rax + 8], rax
mov rdi, rax
mov r15d, esi
call fcn.180015c64
lea ecx, [rsi + 2]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18001594f
lea rdx, str.CreateToolhelp32Snapshot__of_processes__is_unsuccessfull_n
mov ecx, 0x26a
call fcn.180030818
mov rbx, qword [rdi]
jmp 0x18001593a
mov rcx, rbx
mov rbx, qword [rbx]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp rbx, rdi
jne 0x180015919
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
jmp 0x180015b95
mov rdx, r13
mov rcx, r14
call fcn.180015c64
lea rdx, [rsp + 0x30]
mov rcx, r12
mov dword [rsp + 0x30], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1800159be
lea rdx, str.Process32First_is_unsuccessfull_n
mov ecx, 0x276
call fcn.180030818
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rdi]
jmp 0x1800159b4
mov rcx, rbx
mov rbx, qword [rbx]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp rbx, rdi
jne 0x180015993
jmp 0x180015b8a
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x180015aa8
cmp qword [r13 + 0x10], rsi
je 0x1800159ea
mov rcx, qword [r13 + 8]
mov rax, qword [rcx]
jmp 0x1800159e5
cmp dword [rax + 0x10], ebx
je 0x180015ad6
mov rax, qword [rax]
cmp rax, rcx
jne 0x1800159d9
mov r8, qword [rbp + 0x5d0]
lea rdx, [rsp + 0x5c]
mov rcx, r14
call fcn.180015d14
mov r14, rax
test rax, rax
je 0x180015aa1
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x174]
mov dword [rbp + 0x170], ebx
call qword [sym.imp.msvcrt.dll_wcscpy]
mov r11d, dword [r14 + 8]
mov ecx, 0x418
mov dword [rbp + 0x574], r11d
mov rbx, qword [rdi + 8]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rax], rdi
test rbx, rbx
mov rcx, rax
cmovne rcx, rbx
mov qword [rax + 8], rcx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
lea rcx, [rax + 0x10]
test rcx, rcx
je 0x180015a73
lea rdx, [rbp + 0x170]
mov r8d, 0x408
call sub.msvcrt.dll_memcpy
mov r9d, dword [rbp + 0x170]
mov r8d, dword [rbp + 0x574]
lea rax, [rbp + 0x174]
lea rdx, str.__3d_t__6d_t_s_n
mov ecx, 0x296
mov qword [rsp + 0x20], rax
inc r15
call fcn.180030818
mov r14, qword [rbp + 0x5c0]
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800159be
test r15, r15
jne 0x180015aec
lea rdx, str.Suitable_process_was_not_found_n
mov ecx, 0x29d
call fcn.180030818
jmp 0x180015b2b
lea rdx, str.Refused_PID_d_found_n
mov r8d, ebx
mov ecx, 0x289
call fcn.180030818
jmp 0x180015aa8
mov rbx, qword [rdi]
mov rax, rbx
cmp rbx, rdi
je 0x180015b0f
mov ecx, dword [rbx + 0x414]
cmp dword [rax + 0x414], ecx
cmova rbx, rax
mov rax, qword [rax]
cmp rax, rdi
jne 0x180015af7
mov r8d, dword [rbx + 0x10]
lea r9, [rbx + 0x14]
lea rdx, str.__t__6d_t_s_n
mov ecx, 0x2a8
call fcn.180030818
mov esi, dword [rbx + 0x10]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rdi]
jmp 0x180015b5a
mov rcx, rbx
mov rbx, qword [rbx]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp rbx, rdi
jne 0x180015b39
mov rbx, qword [rdi]
jmp 0x180015b85
mov rcx, rbx
mov rbx, qword [rbx]
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov r8, qword [rcx]
mov rdx, qword [rcx + 8]
mov qword [r8 + 8], rdx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp rbx, rdi
jne 0x180015b64
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, esi
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret