Function at 0x1800174d0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x1800ea550]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov r13d, r15d
cmp qword [rcx + 0x10], r13
je 0x180017706
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x18001770d
lea edx, [rax + 3]
lea r8d, [r15 + 1]
lea rcx, [rsp + 0x40]
call fcn.18000d500
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.CTS_FAILED._GetLastError:
lea rcx, [rsp + 0x40]
call fcn.180010b40
mov rcx, rax
mov edx, edi
call fcn.18000cd70
mov qword [rbp + 0x288], 0xf
mov qword [rbp + 0x280], r15
mov byte [rbp + 0x270], r15b
lea r8d, [r15 + 0x20]
lea rdx, str.CProcUtility::GetProcessIDByName
lea rcx, [rbp + 0x270]
call fcn.1800071c0
nop
mov qword [rbp + 0x2b0], 0xf
mov qword [rbp + 0x2a8], r15
mov byte [rbp + 0x298], r15b
lea r8d, [r15 + 0xf]
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x298]
call fcn.1800071c0
nop
lea rdx, [rbp + 0x2c0]
lea rcx, [rsp + 0x40]
call fcn.18000d630
mov rdi, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x270]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x4c]
lea r8, [rbp + 0x298]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0x2d8], 8
jb 0x180017628
mov rcx, qword [rbp + 0x2c0]
call fcn.18007309c
mov qword [rbp + 0x2d8], 7
mov qword [rbp + 0x2d0], r15
mov word [rbp + 0x2c0], r15w
cmp qword [rbp + 0x2b0], 0x10
jb 0x180017658
mov rcx, qword [rbp + 0x298]
call fcn.18007309c
mov qword [rbp + 0x2b0], 0xf
mov qword [rbp + 0x2a8], r15
mov byte [rbp + 0x298], 0
cmp qword [rbp + 0x288], 0x10
jb 0x180017687
mov rcx, qword [rbp + 0x270]
call fcn.18007309c
mov qword [rbp + 0x288], 0xf
mov qword [rbp + 0x280], r15
mov byte [rbp + 0x270], 0
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.18000d670
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x40], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp - 0x38], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
call fcn.1800724a4
xor eax, eax
jmp 0x180017a0b
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, r12
test eax, eax
jne 0x1800178b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.18000d500
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.PF_FAILED._GetLastError:
lea rcx, [rsp + 0x40]
call fcn.180010b40
mov rcx, rax
mov edx, edi
call fcn.18000cd70
mov qword [rbp + 0x2b0], 0xf
mov qword [rbp + 0x2a8], r15
mov byte [rbp + 0x298], 0
mov r8d, 0x20
lea rdx, str.CProcUtility::GetProcessIDByName
lea rcx, [rbp + 0x298]
call fcn.1800071c0
nop
mov qword [rbp + 0x288], 0xf
mov qword [rbp + 0x280], r15
mov byte [rbp + 0x270], 0
mov r8d, 0xf
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x270]
call fcn.1800071c0
nop
lea rdx, [rbp + 0x2c0]
lea rcx, [rsp + 0x40]
call fcn.18000d630
mov rdi, rax
call fcn.18000ddc0
mov rcx, rax
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 0x56
lea r8, [rbp + 0x270]
xor edx, edx
call fcn.180002e80
nop
cmp qword [rbp + 0x2d8], 8
jb 0x180017827
mov rcx, qword [rbp + 0x2c0]
call fcn.18007309c
mov qword [rbp + 0x2d8], 7
mov qword [rbp + 0x2d0], r15
mov word [rbp + 0x2c0], r15w
cmp qword [rbp + 0x288], 0x10
jb 0x180017857
mov rcx, qword [rbp + 0x270]
call fcn.18007309c
mov qword [rbp + 0x288], 0xf
mov qword [rbp + 0x280], r15
mov byte [rbp + 0x270], 0
cmp qword [rbp + 0x2b0], 0x10
jb 0x180017886
mov rcx, qword [rbp + 0x298]
call fcn.18007309c
mov qword [rbp + 0x2b0], 0xf
mov qword [rbp + 0x2a8], r15
mov byte [rbp + 0x298], 0
lea rcx, [rsp + 0x40]
call fcn.18000caa0
xor eax, eax
jmp 0x180017a0b
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1800179ff
mov rcx, r14
call fcn.180003be0
mov rcx, rax
lea rdx, [rbp + 0x5c]
call fcn.180076b0c
test eax, eax
jne 0x1800179f3
cmp qword [rbx + 0x10], 0
je 0x1800179fb
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1800179f3
mov word [rbp + 0x2f0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2f2]
call fcn.180073cb0
mov r9d, 0x104
lea r8, [rbp + 0x2f0]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1800179f3
mov qword [rbp + 0x288], 7
mov qword [rbp + 0x280], r15
mov word [rbp + 0x270], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x2f0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x270]
call fcn.180007850
nop
cmp qword [rbx + 0x18], 8
jb 0x180017993
mov rdx, qword [rbx]
jmp 0x180017996
mov rdx, rbx
mov r9, qword [rbx + 0x10]
xor r8d, r8d
lea rcx, [rbp + 0x270]
call fcn.180013080
cmp rax, 0xffffffffffffffff
sete dil
cmp qword [rbp + 0x288], 8
jb 0x1800179c7
mov rcx, qword [rbp + 0x270]
call fcn.18007309c
mov qword [rbp + 0x288], 7
mov qword [rbp + 0x280], r15
mov word [rbp + 0x270], r15w
test dil, dil
jne 0x1800179f3
mov r13d, dword [rbp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
jmp 0x1800178b0
mov r13d, dword [rbp + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.180073c80
mov rbx, qword [rsp + 0x660]
add rsp, 0x610
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret