Function at 0x140002f70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140014040]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140003113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x1da]
nop dword [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140003000
lea r8, [rbp + 0x1da]
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.14000a6c0
mov dword [rsp + 0x20], 7
lea r8, [rsp + 0x48]
lea rdx, str.Failed_to_create_process_snapshot._Error_code:
lea rcx, [rsp + 0x28]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400030b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400030ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140003444
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003109
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003109
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
jmp 0x140003444
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000331c
xor eax, eax
mov qword [rbp + 0x1b0], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b8], xmm0
mov qword [rbp + 0x1c8], r12
mov qword [rbp + 0x1d0], 7
mov word [rbp + 0x1b8], r12w
mov qword [rbp + 0x1d8], r12
movdqa xmmword [rbp + 0x1e0], xmm0
mov r8d, dword [rsp + 0x78]
mov dword [rbp + 0x1b0], r8d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x140003229
mov r9d, 0x104
lea r8, [rbp + 0x1f0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x140003220
lea rax, [rbp + 0x1f0]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1400031c0
mov rax, qword [rbp + 0x1d0]
cmp rdx, rax
ja 0x14000320d
lea rdi, [rbp + 0x1b8]
cmp rax, 7
cmova rdi, qword [rbp + 0x1b8]
mov qword [rbp + 0x1c8], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x1f0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rbx], r12w
jmp 0x140003220
lea r9, [rbp + 0x1f0]
lea rcx, [rbp + 0x1b8]
call fcn.140009e10
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsi + 8]
lea r8, [rbp + 0x1b0]
cmp rdx, qword [rsi + 0x10]
je 0x140003246
call fcn.14000b630
add qword [rsi + 8], 0x40
jmp 0x14000324f
mov rcx, rsi
call fcn.14000ab10
nop
mov rcx, qword [rbp + 0x1d8]
test rcx, rcx
je 0x1400032b8
mov rdx, qword [rbp + 0x1e0]
call fcn.140009950
mov rdx, qword [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1d8]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003315
call fcn.14000bd2c
mov qword [rbp + 0x1d8], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x1e0], xmm0
mov rdx, qword [rbp + 0x1d0]
cmp rdx, 7
jbe 0x1400032fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1b8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400032f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003315
call fcn.14000bd2c
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140003131
jmp 0x14000343a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, [rbp + 0x1da]
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dx
shl cx, 2
lea eax, [rcx + rdx]
add ax, ax
sub r8w, ax
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140003330
lea r8, [rbp + 0x1da]
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.14000a6c0
mov dword [rsp + 0x20], 0x19
lea r8, [rsp + 0x48]
lea rdx, str.Failed_to_retrieve_process_entry._Error_code:
lea rcx, [rsp + 0x28]
call fcn.140008f10
nop
mov rcx, rax
call fcn.140001860
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400033e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400033dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400033dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
movdqa xmm0, xmmword [0x140010180]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r12w
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000343a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003435
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003435
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000bd2c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14000b8a0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret