Function at 0x140018ff0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402669b0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov qword [rsp + 0x60], rcx
call fcn.140024fb0
mov rcx, rax
xor edx, edx
test rax, rax
setne dl
test edx, edx
jne 0x140019053
mov ecx, 0x80004005
call fcn.14001bed0
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x20], rdi
call fcn.140024fb0
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140019081
mov ecx, 0x80004005
call fcn.14001bed0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.140024fb0
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400190b2
mov ecx, 0x80004005
call fcn.14001bed0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov qword [rsp + 0x70], rax
or r12, 0xffffffffffffffff
cmp rax, r12
je 0x1400198e9
mov dword [rbp - 0x70], 0x130
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x14001910a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400198e9
lea r14, reloc.OLEAUT32.dll_VariantCopy
lea rsi, [0x140225ea8]
mov eax, 1
lea rcx, [rbp - 0x44]
mov rbx, r12
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140019124
test ebx, ebx
jne 0x14001918a
lea rdx, [rdi - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140019201
cmp dword [rdx + 0x10], 0
jge 0x140019161
cmp dword [rdi - 0xc], 0
jl 0x140019803
mov dword [rdi - 0x10], 0
mov byte [rdi], 0
jmp 0x140019201
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019176
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x20], rdi
jmp 0x140019201
mov r14d, dword [rdi - 0x10]
lea rsi, [rbp - 0x44]
sub rsi, rdi
test ebx, ebx
js 0x1400198de
mov ecx, eax
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, ecx
jge 0x1400191bc
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14001be70
mov rdi, qword [rsp + 0x20]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
cmp rsi, r14
movsxd r14, ebx
mov r9, r14
ja 0x1400191d9
lea r8, [rsi + rdi]
call fcn.14019a830
jmp 0x1400191e2
lea r8, [rbp - 0x44]
call fcn.14019a7a8
cmp ebx, dword [rdi - 0xc]
jg 0x1400198d3
mov dword [rdi - 0x10], ebx
mov byte [r14 + rdi], 0
lea r14, reloc.OLEAUT32.dll_VariantCopy
lea rsi, [0x140225ea8]
call fcn.140024fb0
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x1400198c8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
test rsi, 0xffffffffffff0000
jne 0x140019257
movzx esi, si
mov ecx, esi
call fcn.140024a24
test rax, rax
je 0x1400192ac
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14001bb90
mov rbx, qword [rsp + 0x28]
jmp 0x1400192ac
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400192ac
cmp dword [rdx + 0x10], 0
jge 0x140019280
cmp dword [rbx - 0xc], 0
jl 0x14001980e
mov dword [rbx - 0x10], 0
mov byte [rbx], 0
jmp 0x1400192ac
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019295
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov rdi, qword [rsp + 0x20]
mov eax, dword [rdi - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, 3
sub ecx, eax
mov dword [rsp + 0x38], ecx
xor r13d, r13d
test ecx, ecx
jle 0x14001937e
nop
mov qword [rsp + 0x78], r14
sub r14, rbx
mov r15d, dword [rbx - 0x10]
mov edx, 1
lea rcx, reloc.OLEAUT32.dll_VariantCopy
call fcn.14019ad18
mov r12, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, r15d
setge dl
test edx, edx
je 0x14001982f
lea esi, [r15 + rax]
test esi, esi
js 0x140019824
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140019335
mov edx, esi
lea rcx, [rsp + 0x28]
call fcn.14001be70
mov rbx, qword [rsp + 0x28]
cmp r14, r15
lea r8, [r14 + rbx]
jbe 0x140019343
mov r8, qword [rsp + 0x78]
movsxd rdx, r12d
lea rcx, [r15 + rbx]
mov r9, rdx
call fcn.14019a7a8
cmp esi, dword [rbx - 0xc]
jg 0x140019819
mov dword [rbx - 0x10], esi
movsxd rax, esi
mov byte [rax + rbx], 0
inc r13d
cmp r13d, dword [rsp + 0x38]
lea r14, reloc.OLEAUT32.dll_VariantCopy
jl 0x1400192d0
or r12, 0xffffffffffffffff
mov r8d, dword [rbp - 0x54]
lea rdx, [0x140225a74]
lea rcx, [rsp + 0x40]
call fcn.14001b830
mov r8d, dword [rbp - 0x4c]
lea rdx, [0x140225a74]
lea rcx, [rsp + 0x30]
call fcn.14001b830
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.14001b0c0
nop
lea r8, str.ThreadCount:
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14001b6b0
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001b0c0
nop
mov r15, qword [rax]
lea rcx, [r15 - 0x18]
lea rbx, [rdi - 0x18]
cmp rcx, rbx
je 0x140019508
cmp dword [rbx + 0x10], 0
jl 0x140019436
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140019436
call fcn.14001b870
mov rdi, rax
mov ecx, r12d
lock xadd dword [rbx + 0x10], ecx
dec ecx
jg 0x140019428
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x140019508
movsxd rsi, dword [r15 - 0x10]
test esi, esi
jne 0x140019496
mov rsi, qword [rbx]
cmp dword [rbx + 8], 0
je 0x140019508
cmp dword [rbx + 0x10], 0
jge 0x14001946a
cmp dword [rdi - 0xc], 0
jl 0x14001983a
mov dword [rdi - 0x10], 0
mov byte [rdi], 0
jmp 0x140019508
mov eax, r12d
lock xadd dword [rbx + 0x10], eax
dec eax
jg 0x140019482
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x140019508
test r15, r15
je 0x14001985b
mov r13d, dword [rdi - 0x10]
mov r14, r15
sub r14, rdi
test esi, esi
js 0x140019850
mov ecx, 1
sub ecx, dword [rbx + 0x10]
mov eax, dword [rbx + 0xc]
sub eax, esi
or eax, ecx
jge 0x1400194d3
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.14001be70
mov rdi, qword [rsp + 0x20]
mov rbx, rsi
movsxd rdx, dword [rdi - 0xc]
mov r9, rsi
mov rcx, rdi
cmp r14, r13
ja 0x1400194f0
lea r8, [r14 + rdi]
call fcn.14019a830
jmp 0x1400194f8
mov r8, r15
call fcn.14019a7a8
cmp esi, dword [rdi - 0xc]
jg 0x140019845
mov dword [rdi - 0x10], esi
mov byte [rbx + rdi], 0
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019527
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019546
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019564
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str._tPriorityBase:
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14001b6b0
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14001b0c0
nop
mov r14, qword [rax]
lea rcx, [r14 - 0x18]
mov rbx, qword [rsp + 0x20]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400196b5
cmp dword [rdi + 0x10], 0
jl 0x1400195e3
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400195e3
call fcn.14001b870
mov rbx, rax
mov ecx, r12d
lock xadd dword [rdi + 0x10], ecx
dec ecx
jg 0x1400195d5
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
jmp 0x1400196b5
movsxd rsi, dword [r14 - 0x10]
test esi, esi
jne 0x140019643
mov rsi, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400196b5
cmp dword [rdi + 0x10], 0
jge 0x140019617
cmp dword [rbx - 0xc], 0
jl 0x140019866
mov dword [rbx - 0x10], 0
mov byte [rbx], 0
jmp 0x1400196b5
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
dec eax
jg 0x14001962f
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
jmp 0x1400196b5
test r14, r14
je 0x140019887
mov r13d, dword [rbx - 0x10]
mov r15, r14
sub r15, rbx
test esi, esi
js 0x14001987c
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, esi
or eax, ecx
jge 0x140019680
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.14001be70
mov rbx, qword [rsp + 0x20]
mov rdi, rsi
movsxd rdx, dword [rbx - 0xc]
mov r9, rsi
mov rcx, rbx
cmp r15, r13
ja 0x14001969d
lea r8, [r15 + rbx]
call fcn.14019a830
jmp 0x1400196a5
mov r8, r14
call fcn.14019a7a8
cmp esi, dword [rbx - 0xc]
jg 0x140019871
mov dword [rbx - 0x10], esi
mov byte [rdi + rbx], 0
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400196d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400196f1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r13, [0x140222810]
lea rsi, [0x140222810]
mov rbx, qword [rsp + 0x20]
sub rsi, rbx
mov r14d, dword [rbx - 0x10]
mov edx, 2
lea rcx, [0x140222810]
call fcn.14019ad18
mov r15, rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, r14d
setge dl
test edx, edx
je 0x1400198bd
lea edi, [r14 + rax]
test edi, edi
js 0x1400198b2
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140019764
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14001be70
mov rbx, qword [rsp + 0x20]
cmp rsi, r14
ja 0x14001976d
lea r13, [rsi + rbx]
movsxd rdx, r15d
lea rcx, [r14 + rbx]
mov r9, rdx
mov r8, r13
call fcn.14019a7a8
cmp edi, dword [rbx - 0xc]
jg 0x1400198a7
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
mov edi, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x1400197ac
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14001bd60
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
mov rax, qword [r14]
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call qword [rax + 0x78]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400197df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rbp - 0x70]
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140019892
mov rdi, qword [rsp + 0x20]
jmp 0x14001910a
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov edi, 1
jmp 0x1400198eb
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
nop
mov ecx, 0x80004005
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
mov ecx, 0x80070057
call fcn.14001bed0
int3
xor edi, edi
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019905
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140019924
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
dec r12d
jg 0x140019942
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14019a4e0
lea r11, [rsp + 0x1d0]
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