Function at 0x140040c80
Capabilities:
Enumerate processes

Disassembly:
push r13
push r14
push r15
sub rsp, 0x290
xor r13d, r13d
mov r15, rdx
mov qword [rcx], r13
mov r14, rcx
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
cmp qword [rdx + 0x10], r13
jne 0x140040cc0
mov rcx, rdx
call fcn.140034c50
mov rax, r14
add rsp, 0x290
pop r15
pop r14
pop r13
ret
xor edx, edx
mov qword [rsp + 0x280], r12
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140040d0b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140034c50
mov rax, r14
jmp 0x140040f3c
mov qword [rsp + 0x288], rdi
mov qword [rsp + 0x2b8], rbx
mov qword [rsp + 0x2c0], rbp
mov qword [rsp + 0x2c8], rsi
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x20], xmm0
mov r8d, 0xa
lea rax, [rsp + 0x6c]
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x7ffffffffffffffe
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x140040d60
cmp rdi, rcx
ja 0x140040f5f
cmp rdi, 7
ja 0x140040db7
lea rbx, [rdi + rdi]
mov qword [rsp + 0x30], rdi
mov r8, rbx
mov qword [rsp + 0x38], 7
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r13w
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x20]
jmp 0x140040e4e
mov rbp, rdi
or rbp, 7
cmp rbp, rcx
jbe 0x140040dff
mov rbp, rcx
lea rcx, [rdx + rdx]
cmp rcx, 0x1000
jb 0x140040e1e
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140040f59
mov rcx, rax
call fcn.14015ec00
test rax, rax
je 0x140040f52
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140040e26
cmp rbp, 0xa
cmovb rbp, r8
lea rcx, [rbp + 1]
cmp rcx, rdx
ja 0x140040f59
add rcx, rcx
jne 0x140040dca
mov rsi, r13
jmp 0x140040e26
call fcn.14015ec00
mov rsi, rax
lea rbx, [rdi + rdi]
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r13w
cmp qword [r15 + 0x18], 7
mov rax, r15
jbe 0x140040e5b
mov rax, qword [r15]
cmp rbp, 7
lea rdx, [rsp + 0x20]
cmova rdx, rsi
cmp rdi, qword [r15 + 0x10]
jne 0x140040e8d
test rdi, rdi
je 0x140040e89
sub rdx, rax
movzx ecx, word [rax + rdx]
cmp cx, word [rax]
jne 0x140040e8d
add rax, 2
sub rdi, 1
jne 0x140040e76
mov bl, 1
jmp 0x140040e8f
xor bl, bl
cmp rbp, 7
jbe 0x140040eca
lea rdx, [rbp*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140040ec2
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f52
mov rcx, rsi
call fcn.14015ebf8
test bl, bl
je 0x140040ef2
mov rdx, qword [r14 + 8]
cmp rdx, qword [r14 + 0x10]
je 0x140040ee5
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [r14 + 8], 4
jmp 0x140040ef2
lea r8, [rsp + 0x48]
mov rcx, r14
call fcn.140042600
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140040d2b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call fcn.140034c50
mov rbp, qword [rsp + 0x2c0]
mov rax, r14
mov rsi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x288]
mov r12, qword [rsp + 0x280]
add rsp, 0x290
pop r15
pop r14
pop r13
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140005720
int3
call fcn.1400057c0
int3