Function at 0x14004fbe0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x180
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004fc51
lea rdx, str.Error_creating_process_snapshot._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14005ed10
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14005f120]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
jmp 0x14004fdbd
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x14004fc7d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Error_getting_the_first_process._Error_code:
jmp 0x14004fc1a
mov qword [rsp + 0x190], rbp
lea rbp, [0x140098110]
mov qword [rsp + 0x1a0], r14
xor r14d, r14d
mov qword [rsp + 0x198], rdi
nop
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x6c]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rax + r9], r14b
jne 0x14004fcc0
lea r8, [rsp + 0x6c]
add r8, r9
lea rax, [rsp + 0x6c]
cmp rax, r8
jne 0x14004fcf7
mov edi, 7
mov word [rsp + 0x20], r14w
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], rdi
jmp 0x14004fd1d
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140065340
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rdi, 7
cmova rdx, rbx
mov rax, 0xffffffffffffffff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbp + rax*2 + 2]
jne 0x14004fd49
add rax, 2
cmp rax, 0x23
je 0x14004fdde
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbp + rax*2]
je 0x14004fd24
cmp rdi, 7
jbe 0x14004fd84
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14004fd7c
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fe22
mov rcx, rbx
call fcn.14006f2c0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14004fca0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rdi, qword [rsp + 0x198]
mov rbp, qword [rsp + 0x190]
mov r14, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14006f1d0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x180
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 7
jbe 0x14004fe1e
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14004fe16
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fe22
mov rcx, rbx
call fcn.14006f2c0
mov al, 1
jmp 0x14004fda5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3