Function at 0x140071c40
Capabilities:
Enumerate processes

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x102d0
call fcn.140166d30
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x10300], rbx
mov qword [rsp + 0x10308], rbp
mov qword [rsp + 0x10310], rsi
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x102c0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x1400721a3
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rdi, rax
je 0x1400721a3
call qword [sym.imp.USER32.dll_GetShellWindow]
cmp rdi, rax
je 0x1400721a3
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_MonitorFromWindow]
mov rsi, rax
test rax, rax
je 0x1400721a3
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1401489d0
mov dword [rsp + 0x50], 0x28
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rsp + 0x54]
cmp dword [rsp + 0x38], edx
jne 0x1400721a3
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x3c], eax
jne 0x1400721a3
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jl 0x1400721a3
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x44], eax
jl 0x1400721a3
call fcn.140129a50
mov rdx, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140071d60
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.140003440
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r13, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x84]
call fcn.1401489d0
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, r13
call sub.KERNEL32.dll_Process32FirstW
or r12, 0xffffffffffffffff
lea r14d, [r12 + 2]
test eax, eax
je 0x140071f18
mov rsi, qword [rsp + 0x20]
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x88], eax
jne 0x140071ee9
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0xac]
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
mov rdi, rcx
test ecx, ecx
jne 0x140071e69
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140071ee9
cmp dword [rdx + 0x10], eax
jge 0x140071e3a
cmp dword [rsi - 0xc], eax
jl 0x140071f02
mov dword [rsi - 0x10], r15d
mov word [rsi], ax
jmp 0x140071ee9
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140071e52
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x20], rsi
jmp 0x140071ee9
mov ebx, dword [rsi - 0x10]
lea rbp, [rsp + 0xac]
sub rbp, rsi
sar rbp, 1
mov ecx, r14d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140071e9a
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140002da0
mov rsi, qword [rsp + 0x20]
cmp rbp, rbx
ja 0x140071eba
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + rbp*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.140144840
jmp 0x140071ed7
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0xac]
mov rdx, rbx
mov rcx, rsi
call fcn.1401448d0
test edi, edi
js 0x140071f0d
cmp edi, dword [rsi - 0xc]
jg 0x140071f0d
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
lea rdx, [rsp + 0x80]
mov rcx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140071f1d
jmp 0x140071de2
mov ecx, 0x80070057
call fcn.140002d80
int3
mov ecx, 0x80070057
call fcn.140002d80
int3
mov rsi, qword [rsp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r11d, r11d
lea rdi, str.explorer.exe
mov ecx, SafeArrayDestroy
repe cmpsw word [rsi], word [rdi]
je 0x140071f41
sbb r11d, r11d
sbb r11d, 0xffffffff
mov r13d, r15d
test r11d, r11d
sete r13b
call fcn.140129a50
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140071f6b
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x28], rsi
mov r8d, 0x7fff
lea rdx, [rsp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov rcx, r12
lea rdi, [rsp + 0x2c0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140072011
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140072099
cmp dword [rdx + 0x10], eax
jge 0x140071fe2
cmp dword [rsi - 0xc], eax
jge 0x140071fd6
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rsi - 0x10], r15d
mov word [rsi], ax
jmp 0x140072099
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140071ffa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x28], rsi
jmp 0x140072099
mov ebx, dword [rsi - 0x10]
lea rbp, [rsp + 0x2c0]
sub rbp, rsi
sar rbp, 1
mov ecx, r14d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x140072042
mov edx, edi
lea rcx, [rsp + 0x28]
call fcn.140002da0
mov rsi, qword [rsp + 0x28]
cmp rbp, rbx
ja 0x140072062
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + rbp*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.140144840
jmp 0x14007207f
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x2c0]
mov rdx, rbx
mov rcx, rsi
call fcn.1401448d0
test edi, edi
js 0x140072198
cmp edi, dword [rsi - 0xc]
jg 0x140072198
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
mov edi, dword [rsi - 0x10]
mov dx, 0x5c
mov rcx, rsi
call fcn.140146ba0
test rax, rax
jne 0x1400720b2
mov eax, r12d
jmp 0x1400720b8
sub rax, rsi
sar rax, 1
sub edi, eax
lea r8d, [rdi - 1]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140062f80
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140005a30
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400720fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, r15d
mov rax, qword [rsp + 0x28]
test rax, rax
setne cl
test ecx, ecx
jne 0x14007211a
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rcx, qword [rsp + 0x20]
mov rdi, rax
sub rdi, rcx
movzx edx, word [rcx]
cmp dx, word [rcx + rdi]
jne 0x14007213c
add rcx, 2
test dx, dx
jne 0x140072125
mov edx, r15d
jmp 0x140072141
sbb edx, edx
sbb edx, 0xffffffff
mov ecx, r15d
test edx, edx
sete cl
test ecx, ecx
jne 0x140072152
test r13d, r13d
je 0x140072155
mov r14d, r15d
lea rdx, [rax - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140072172
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
add r12d, 0xffffffff
test r12d, r12d
jg 0x140072193
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
jmp 0x1400721a5
mov ecx, 0x80070057
call fcn.140002d80
nop
xor eax, eax
mov rcx, qword [rsp + 0x102c0]
xor rcx, rsp
call fcn.1401447b0
lea r11, [rsp + 0x102d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret