Function at 0x140020f28
Capabilities:
Acquire debug privileges
Enumerate processes
Get common file path

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x428
mov r15d, dword [rsp + 0x490]
movaps xmmword [rax - 0x58], xmm6
mov eax, r9d
xor r9d, r9d
mov r14, r8
mov edi, edx
cmp edx, r9d
jne 0x140020f7e
cmp r8, r9
jne 0x140020f7e
cmp eax, r9d
jne 0x140020f7e
cmp r15d, r9d
jne 0x140020f7e
call fcn.140015cf0
mov qword [rsp + 0x470], rax
mov eax, edi
mov ecx, r9d
mov esi, edi
and eax, 0x10000
mov ebp, edi
mov r12d, edi
mov dword [rsp + 0x40], eax
mov eax, edi
mov ebx, edi
and eax, 0x80
and ebx, 0x40
mov r13d, edi
and esi, 2
and ebp, 0x10
and r12d, 0x20
cmp al, 0x80
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x68], ebx
sete cl
and r13d, 0x100
and edi, 1
mov dword [rsp + 0x44], ecx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ecx, dword [rsp + 0x44]
xor edx, edx
mov dword [rsp + 0x70], eax
mov qword [rsp + 0xa8], 0x400
mov qword [rsp + 0x58], rdx
mov rax, rdx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0x60], rdx
cmp ecx, edx
je 0x140021005
mov dword [rsp + 0x74], r14d
mov r14, rdx
cmp ebx, edx
je 0x140021034
cmp ecx, edx
je 0x140021032
mov r14, rdx
lea rcx, [rsp + 0x60]
mov edx, 0x1000
call fcn.140059f54
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x44]
mov qword [rsp + 0x98], rax
xor edx, edx
cmp ebx, edx
setne byte [rsp + 0x478]
cmp ebx, edx
je 0x14002105d
cmp ecx, edx
je 0x14002105d
cmp r15d, edx
je 0x14002105d
mov dword [rax], r15d
mov qword [rsp + 0x58], 1
mov byte [rsp + 0x478], 2
cmp qword [0x140117eb0], rdx
jne 0x14002108a
lea rcx, [0x1400fce9c]
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
lea rdx, [0x1400fce80]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140117eb0], rax
mov edx, 2
lea rcx, [0x1400f9560]
lea r8d, [rdx + 2]
call fcn.14001a1f0
xor eax, eax
lea rcx, [rsp + 0xb0]
mov edx, 0x46e7
mov dword [rsp + 0x480], eax
call fcn.14005a1c4
mov rax, qword [rsp + 0xb0]
xor ecx, ecx
mov qword [rsp + 0x88], rax
add rax, 0xa0
lea r8d, [rcx + 0x24]
mov qword [rsp + 0x80], rax
add rax, 0x64
xor r9d, r9d
lea rbx, [rax + 0x8c]
mov qword [rsp + 0x78], rax
lea rax, [rbx + 0xc1e]
lea rdx, [rbx + 0x80a]
mov word [rax], cx
mov word [rbx + 0x80a], cx
mov qword [rsp + 0xc0], rax
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
lea rcx, [rbx + 0x80a]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
lea rax, [rbx + rcx*2 + 0x80a]
mov qword [rsp + 0xd0], rax
xor eax, eax
cmp r14, rax
je 0x1400211fe
lea r8d, [rax + 0x1c]
lea rcx, [rsp + 0xf4]
xor edx, edx
mov dword [rsp + 0xf0], eax
call fcn.1400dd9e0
lea rcx, [rsp + 0x1a4]
xor edx, edx
mov r8d, 0x134
call fcn.1400dd9e0
mov ebx, 0x138
lea rcx, [rsp + 0x2d8]
mov r8, rbx
xor edx, edx
call fcn.1400dd9e0
xor eax, eax
cmp byte [0x140115008], 1
mov qword [rsp + 0x1a0], rax
mov eax, 0x270
lea rdx, [rsp + 0xf0]
cmove ebx, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 3]
call qword [0x140117eb0]
xor r9d, r9d
lea rdx, [rsp + 0x1a0]
lea ecx, [r9 + 2]
mov r8d, ebx
call qword [0x140117eb0]
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x88]
call fcn.1400c90d4
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x80]
call fcn.1400c90d4
xor eax, eax
mov rbx, qword [rsp + 0x470]
cmp edi, eax
jne 0x1400212fc
cmp word [rbx], ax
jne 0x1400212fc
mov rdx, qword [rsp + 0x88]
mov rcx, r14
call fcn.140064d94
lea rdx, [0x1400fc71c]
mov rcx, r14
call fcn.14005a28c
mov rdx, qword [rsp + 0x80]
mov rcx, r14
call fcn.14005a28c
mov r11b, byte [0x14011795d]
xor eax, eax
cmp r11b, al
ja 0x140021260
call fcn.1400061b4
mov r11b, byte [0x14011795d]
lea rdx, [0x1400fce70]
lea rcx, [rsp + 0x120]
movzx r8d, r11b
call qword [sym.imp.USER32.DLL_wsprintfW]
lea rdx, [rsp + 0x120]
mov rcx, r14
call fcn.14005a28c
mov rdx, qword [0x140117ac0]
lea rcx, [rsp + 0x120]
call fcn.1400c90d4
lea rdx, [rsp + 0x120]
mov rcx, r14
call fcn.14005a28c
lea rcx, [rsp + 0x48]
movsd xmm6, qword [0x1400fce68]
pxor xmm5, xmm5
cvtsi2sd xmm5, qword [0x140117ac0]
divsd xmm6, xmm5
call fcn.14005a150
lea r8, [0x1400fce58]
lea rcx, [rsp + 0x48]
movapd xmm1, xmm6
call fcn.1400c9028
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call fcn.14005a28c
lea rcx, [rsp + 0x48]
call fcn.140052160
mov rcx, rbx
call fcn.1400ddf70
mov edx, r15d
mov ecx, 2
mov qword [rsp + 0x48], rax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edx, 0
cmp rax, 0xffffffffffffffff
mov r15, rax
cmove r15, rdx
cmp r15, 0xffffffffffffffff
je 0x14002186e
movsxd rax, r12d
mov r12, qword [rsp + 0x98]
movsxd rdi, edi
mov qword [rsp + 0x50], rax
movsxd rax, r13d
mov r13d, dword [rsp + 0x68]
mov qword [rsp + 0xc8], rax
movsxd rax, esi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0xe0], rax
movsxd rax, ebp
mov rbp, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x1a0]
mov rcx, r15
mov rsi, rbp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x1a0], 0x238
call sub.KERNEL32.DLL_Process32FirstW
xor edx, edx
cmp eax, edx
je 0x140021848
cmp byte [rsp + 0x478], 2
jne 0x1400213f8
mov rcx, rdx
cmp rbp, rdx
jbe 0x1400213ce
mov eax, dword [rsp + 0x1a8]
cmp dword [r12 + rcx*4], eax
je 0x14002199e
inc rcx
cmp rcx, rbp
jb 0x1400213b5
mov rax, rdx
cmp rbp, rdx
jbe 0x14002199e
mov ecx, dword [rsp + 0x1c0]
cmp dword [r12 + rax*4], ecx
je 0x1400216dd
inc rax
cmp rax, rbp
jb 0x1400213e1
jmp 0x14002199e
mov eax, dword [rsp + 0x488]
cmp eax, edx
je 0x140021410
cmp eax, dword [rsp + 0x1c0]
jne 0x14002199e
mov eax, dword [rsp + 0x490]
cmp eax, edx
je 0x140021428
cmp eax, dword [rsp + 0x1a8]
jne 0x14002199e
mov rsi, qword [rsp + 0x50]
cmp rsi, rdx
jne 0x14002145b
cmp qword [rsp + 0xc8], rdx
je 0x1400215c2
lea rcx, [rsp + 0x1cc]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.DLL_PathMatchSpecW]
xor edx, edx
cmp eax, edx
jne 0x1400216e2
cmp r14, rdx
jne 0x140021469
cmp rsi, rdx
je 0x14002199e
mov rbx, rdx
mov esi, edx
cmp r14, rdx
je 0x140021552
mov r8d, dword [rsp + 0x1a8]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
xor ebp, ebp
mov rdi, rax
cmp rax, rbp
je 0x140021552
lea r8, [0x140117cb0]
lea rdx, [0x1400f9a38]
lea rcx, [0x1400fce40]
xor r9d, r9d
call fcn.1400536e0
lea esi, [rbp + 0x48]
lea r8d, [rbp + 0x40]
lea rcx, [rsp + 0x128]
xor edx, edx
mov dword [rsp + 0x120], esi
mov dword [rsp + 0x124], ebp
call fcn.1400dd9e0
mov r11, qword [0x140117cb0]
cmp r11, rbp
je 0x1400214f8
lea rdx, [rsp + 0x120]
mov r8d, esi
mov rcx, rdi
call r11
mov rsi, qword [rsp + 0x130]
lea rax, [rsp + 0xd8]
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0x110]
mov rcx, rdi
shr rsi, 0xa
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_GetProcessTimes]
cmp eax, ebp
je 0x140021549
mov rcx, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xb8]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x1a8]
add rbp, 0xaa0
mov rdx, rbp
mov rdi, rbp
call fcn.140006240
mov ecx, 0x5c
cmp cx, word [rbp]
jne 0x14002178f
lea eax, [rcx - 0x1d]
cmp ax, word [rbp + 2]
jne 0x14002178f
cmp ax, word [rbp + 4]
jne 0x14002178f
cmp cx, word [rbp + 6]
jne 0x14002178f
xor ecx, ecx
cmp word [rbp + 8], cx
je 0x14002178f
lea ecx, [rax - 5]
cmp cx, word [rbp + 0xa]
jne 0x14002178f
lea rdi, [rbp + 8]
jmp 0x1400217c9
cmp qword [rsp + 0xe0], rdx
je 0x140021655
cmp rdi, rdx
je 0x140021609
mov rdi, qword [rsp + 0x48]
cmp edi, edx
je 0x1400216e2
mov r9d, dword [rsp + 0x40]
lea rcx, [rsp + 0x1cc]
mov r8d, edi
mov rdx, rbx
call fcn.140018208
xor edx, edx
cmp al, dl
je 0x14002199e
jmp 0x1400216e2
cmp dword [rsp + 0x48], edx
jne 0x140021622
cmp word [rsp + 0x1cc], dx
jne 0x14002199e
jmp 0x14002145b
cmp dword [rsp + 0x40], edx
lea rcx, [rsp + 0x1cc]
mov rdx, rbx
jne 0x14002163b
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
jmp 0x140021641
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
xor edx, edx
cmp eax, edx
sete al
cmp al, dl
jne 0x1400216e2
jmp 0x14002199e
cmp rdi, rdx
mov rdi, qword [rsp + 0x48]
je 0x140021685
cmp edi, edx
je 0x1400216e2
mov esi, dword [rsp + 0x40]
lea rcx, [rsp + 0x1cc]
mov r8d, edi
mov r9d, esi
mov rdx, rbx
call fcn.140018208
xor edx, edx
cmp al, dl
jne 0x1400216dd
jmp 0x140021689
mov esi, dword [rsp + 0x40]
cmp edi, edx
je 0x14002199e
lea rcx, [rsp + 0x1cc]
mov r9d, esi
mov r8d, edi
mov rdx, rbx
call fcn.140018208
xor edx, edx
cmp al, dl
je 0x14002199e
cmp qword [rsp + 0x90], rdx
jne 0x14002199e
movsxd rax, dword [rsp + 0x48]
movzx eax, word [rsp + rax*2 + 0x1cc]
cmp ax, dx
je 0x1400216dd
lea ecx, [rdx + 0x2e]
cmp cx, ax
jne 0x14002199e
mov rsi, qword [rsp + 0x50]
cmp r14, rdx
je 0x1400216f3
inc dword [rsp + 0x480]
jmp 0x14002145b
cmp qword [rsp + 0xa0], rdx
je 0x14002170e
mov eax, dword [rsp + 0x70]
cmp eax, dword [rsp + 0x1a8]
je 0x14002199e
mov ecx, dword [rsp + 0x44]
mov eax, ecx
or eax, r13d
je 0x140021835
cmp r12, rdx
je 0x14002176c
mov rax, qword [rsp + 0xa8]
cmp rax, rbp
ja 0x140021754
add rax, 0x400
lea rcx, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0xa8], rax
shl rdx, 2
call fcn.140059f54
mov ecx, dword [rsp + 0x44]
xor edx, edx
mov r12, qword [rsp + 0x60]
mov eax, dword [rsp + 0x1a8]
mov dword [r12 + rbp*4], eax
inc rbp
mov qword [rsp + 0x58], rbp
cmp ecx, edx
je 0x140021783
mov edx, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x1a8]
xor r8d, r8d
call fcn.140018230
inc dword [rsp + 0x480]
jmp 0x14002199e
lea rcx, [0x1400fce20]
mov r8d, 0xc
mov rdx, rbp
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x1400217c9
mov rcx, qword [rsp + 0xd0]
lea rdx, [rbp + 0x16]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov rdi, qword [rsp + 0x78]
add rdi, 0x896
xor eax, eax
cmp qword [rsp + 0x50], rax
je 0x1400218c6
mov rbp, qword [rsp + 0x470]
cmp dword [rsp + 0x40], eax
jne 0x1400217f6
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x14002180c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
xor edx, edx
cmp eax, edx
jne 0x140021996
cmp r14, rdx
jne 0x1400218bf
cmp qword [rsp + 0xa0], rdx
je 0x140021830
mov eax, dword [rsp + 0x70]
cmp eax, dword [rsp + 0x1a8]
je 0x140021996
mov rbp, qword [rsp + 0x58]
mov eax, dword [rsp + 0x1a8]
mov dword [rsp + 0x480], eax
mov rsi, qword [rsp + 0x68]
mov byte [rsp + 0x478], 2
cmp r13d, edx
je 0x14002186e
mov rbx, qword [rsp + 0x470]
mov rdi, qword [rsp + 0x90]
cmp rbp, rsi
ja 0x140021376
mov ebx, dword [rsp + 0x480]
cmp r15, rdx
je 0x140021889
cmp r15, 0xffffffffffffffff
je 0x140021889
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rsp + 0xb0]
call fcn.140052160
lea rcx, [rsp + 0x60]
call fcn.140052160
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x410]
add rsp, 0x428
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [rsp + 0x480]
mov rbp, qword [rsp + 0xc0]
mov ecx, dword [rsp + 0x1a8]
mov r8d, 0x8000
mov rdx, rbp
call fcn.140009200
mov rcx, qword [rsp + 0x78]
xor eax, eax
mov rdx, rbx
mov word [rbp + 0x8000], ax
call fcn.1400c90d4
mov rcx, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x1a8]
mov r11, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x1c0]
xor eax, eax
cmp r8d, eax
mov rax, qword [rsp + 0x80]
lea rbx, [rcx + 0x8c]
cmovne r11, rcx
mov qword [rsp + 0x30], rax
lea rdx, [0x1400fcdf8]
mov qword [rsp + 0x28], r11
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.DLL_wsprintfW]
mov r11, qword [r14]
xor eax, eax
cmp word [r11], ax
je 0x140021966
lea rdx, [0x1400fcdf0]
mov rcx, r14
call fcn.14005a28c
mov rdx, rbx
mov rcx, r14
call fcn.14005a28c
mov rdx, rdi
mov rcx, r14
call fcn.14005a28c
lea rdx, [0x1400fc71c]
mov rcx, r14
call fcn.14005a28c
mov rdx, rbp
mov rcx, r14
call fcn.14005a28c
mov rbx, qword [rsp + 0x470]
lea rdx, [rsp + 0x1a0]
mov rcx, r15
call sub.KERNEL32.DLL_Process32NextW
mov rbp, qword [rsp + 0x58]
xor edx, edx
cmp eax, edx
je 0x140021843
mov rdi, qword [rsp + 0x90]
jmp 0x1400213a3