Function at 0x140053e40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400e5040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x28], xmm0
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov r8d, 7
lea rdx, str.cs2.exe
lea rcx, [rsp + 0x28]
call fcn.1400523d0
nop
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jg 0x140053ee8
jmp 0x140053f80
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140053f76
cmp qword [rsp + 0x38], 0
je 0x140053f3b
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
lea rcx, [rbp - 0x64]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140053f64
mov rdx, qword [rsp + 0x50]
cmp rdx, qword [rsp + 0x58]
je 0x140053f55
mov eax, dword [rsp + 0x78]
mov dword [rdx], eax
add qword [rsp + 0x50], 4
jmp 0x140053f64
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.1400543c0
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140053f14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140053fc5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053fc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140053fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140086344
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [rsp + 0x50]
jne 0x140053fee
mov ebx, 0xc0000225
jmp 0x1400540b0
mov ebx, dword [rcx]
mov rcx, rdi
call fcn.140054120
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jne 0x14005400a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x14005401a
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov rcx, qword [rdi]
cmp rax, rcx
je 0x140054033
test rcx, rcx
jle 0x140054030
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rsi
cmp dword [0x1401834cc], 0xa
jb 0x14005406f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, eax
jne 0x14005406f
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov rcx, qword [rdi]
cmp rax, rcx
je 0x14005406f
test rcx, rcx
jle 0x14005406c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rsi
mov rsi, qword [rdi]
test rsi, rsi
jg 0x14005409e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rsi, rax
je 0x14005409e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rsi, rax
je 0x14005409e
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x1250]
jmp 0x1400540ab
mov dword [rdi + 8], ebx
mov rcx, rdi
call fcn.1400713d0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400540ee
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400540e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400540e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140086344
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140085f80
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret