Function at 0x180040d30
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 - 0x240]
sub rsp, 0x340
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x70]
call fcn.180040ae0
nop
cmp qword [rbp - 0x80], r12
je 0x180040f9c
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180040f9c
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0xc]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x10], 0x238
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x180040f93
lea r14, [r12 - 1]
nop dword [rax]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x1c]
mov r8, r14
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180040e00
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x30]
call fcn.1800227a0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov r8, qword [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1800227a0
or r15d, 6
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rdx, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8, qword [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.1800227a0
or r15d, 0x18
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.18003b2b0
or r15d, 0x20
mov dword [rsp + 0x20], r15d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.180054f30
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.18003b2b0
or r15d, 0x40
and r15d, 0xffffffdf
lea rcx, [rbp - 0x30]
call fcn.180022a80
nop
lea rcx, [rsp + 0x50]
call fcn.180022a80
nop
lea rcx, [rbp - 0x70]
call fcn.180022a80
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov r8, qword [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800227a0
or r15d, 0x180
lea rcx, [rsp + 0x50]
call fcn.18003b5d0
movzx ebx, al
lea rcx, [rsp + 0x50]
call fcn.180022a80
mov rcx, rsi
test bl, bl
jne 0x180040ff5
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, eax
lea rcx, [rbp - 0x50]
call fcn.180022a80
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180040f8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040f86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800410aa
call fcn.1800d3c10
test ebx, ebx
jne 0x180040de0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
xor r8d, r8d
lea rdx, [0x1800ff05c]
mov rcx, rdi
call fcn.1800227a0
nop
lea rcx, [rsp + 0x70]
call fcn.180022a80
mov rax, rdi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1800d3880
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x30]
call fcn.180054b50
cmp rax, 0xffffffffffffffff
je 0x180041059
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov rax, qword [rsp + 0x40]
cmp rax, rcx
jb 0x1800410cf
sub rax, rcx
cmp rax, 0xffffffffffffffff
cmovb r14, rax
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rax, qword [rsp + 0x30]
lea rdx, [rax + rcx*2]
mov r8, r14
mov rcx, rdi
call fcn.1800227a0
jmp 0x180041067
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18003b2b0
nop
lea rcx, [rbp - 0x50]
call fcn.180022a80
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1800410b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800410b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800410b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d3c10
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
jmp 0x180040fbd
call fcn.180022780
int3