Function at 0x140003980
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1980]
mov eax, 0x1a80
call fcn.14000a710
sub rsp, rax
mov rax, qword [0x140014010]
xor rax, rsp
mov qword [rbp + 0x1970], rax
mov rsi, rcx
mov rbx, qword [rcx]
mov r8, qword [rbx + 8]
mov rdx, rcx
call fcn.1400079e0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
xor r12d, r12d
mov qword [rsi + 8], r12
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400039fd
xor eax, eax
jmp 0x140003dce
mov dword [rbp - 0x40], 0x238
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x3c]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x78], r12
mov ebx, 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], r12w
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140003d78
mov r15d, 4
mov rax, qword gs:[0x58]
add r15, qword [rax]
movabs r13, 0x333333333333333
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
mov rdx, rax
mov r8d, dword [rbp - 0x20]
cmp byte [rcx + 0x19], 0
jne 0x140003a9c
cmp dword [rcx + 0x20], r8d
jae 0x140003a90
mov rcx, qword [rcx + 0x10]
jmp 0x140003a96
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140003a84
cmp byte [rdx + 0x19], 0
jne 0x140003aa8
cmp r8d, dword [rdx + 0x20]
jae 0x140003aab
mov rdx, rax
mov ecx, dword [rbp - 0x38]
mov dword [rsp + 0x60], ecx
mov ecx, r12d
cmp rdx, rax
cmovne ecx, r8d
mov dword [rsp + 0x64], ecx
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x68]
cmp rbx, 8
cmovae rax, qword [rsp + 0x68]
mov word [rax], r12w
xor edx, edx
mov r8d, 0x1770
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [r15]
cmp dword [0x140018c0c], eax
jle 0x140003b3c
lea rcx, [0x140018c0c]
call fcn.140009ce8
cmp dword [0x140018c0c], 0xffffffff
jne 0x140003b3c
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.QueryFullProcessImageNameW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140018be0], rax
lea rcx, [0x140018c0c]
call fcn.140009c88
mov ebx, dword [rsp + 0x60]
mov r8d, ebx
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140003b74
mov r8d, ebx
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140003c2e
xor edx, edx
mov r8d, 0x1770
lea rcx, [rbp + 0x200]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x140018be0]
test rax, rax
je 0x140003bd2
mov dword [rsp + 0x30], 0xbb7
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x200]
xor edx, edx
mov rcx, rdi
call qword [0x14000b730]
test eax, eax
je 0x140003bd2
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140003bc5
jmp 0x140003c0b
mov r9d, 0xbb7
lea r8, [rbp + 0x200]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x140003c20
lea rax, [rbp + 0x200]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140003c00
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x68]
call fcn.140007560
mov ebx, dword [rsp + 0x60]
test rdi, rdi
je 0x140003c2e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp - 0x78], ebx
mov dword [rbp - 0x70], ebx
mov eax, dword [rsp + 0x64]
mov dword [rbp - 0x6c], eax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140007330
nop
mov rdi, qword [rsi]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r12d
mov rcx, rdi
mov ebx, dword [rbp - 0x78]
cmp byte [rax + 0x19], 0
jne 0x140003c99
nop word [rax + rax]
mov qword [rsp + 0x30], rax
cmp dword [rax + 0x20], ebx
jae 0x140003c85
mov dword [rsp + 0x38], r12d
mov rax, qword [rax + 0x10]
jmp 0x140003c93
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140003c70
cmp byte [rcx + 0x19], 0
jne 0x140003caa
cmp ebx, dword [rcx + 0x20]
jb 0x140003caa
mov rbx, qword [rbp - 0x50]
jmp 0x140003d27
cmp qword [rsi + 8], r13
je 0x140003dfe
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r12
mov ecx, 0x50
call fcn.140009600
mov r8, rax
mov dword [rax + 0x20], ebx
mov eax, dword [rbp - 0x70]
mov dword [r8 + 0x28], eax
mov eax, dword [rbp - 0x6c]
mov dword [r8 + 0x2c], eax
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r8 + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [r8 + 0x40], xmm1
mov ebx, 7
mov word [rbp - 0x68], r12w
mov qword [r8], rdi
mov qword [r8 + 8], rdi
mov qword [r8 + 0x10], rdi
mov word [r8 + 0x18], 0
mov qword [rsp + 0x58], r12
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400086d0
nop
cmp rbx, 8
jb 0x140003d5f
lea rdx, [rbx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003dbd
call fcn.14000988c
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
mov rbx, qword [rbp - 0x80]
test eax, eax
jne 0x140003a70
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp rbx, 8
jb 0x140003dc9
lea rdx, [rbx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003dc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003dc4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000988c
mov eax, 1
mov rcx, qword [rbp + 0x1970]
xor rcx, rsp
call fcn.1400095e0
lea r11, [rsp + 0x1a80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14000275c
nop
int3