Function at 0x14001f6dc
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, 0x438
mov ebx, dword [rsp + 0x4a0]
movaps xmmword [rax - 0x58], xmm6
mov eax, r9d
xor r9d, r9d
mov r15, r8
mov edi, edx
cmp edx, r9d
jne 0x14001f731
cmp r8, r9
jne 0x14001f731
cmp eax, r9d
jne 0x14001f731
cmp ebx, r9d
jne 0x14001f731
call fcn.14001513c
mov qword [rsp + 0x480], rax
mov eax, edi
mov r12d, edi
mov r13d, edi
and eax, 0x10000
mov r14d, edi
mov esi, edi
mov dword [rsp + 0x68], eax
mov eax, edi
mov ebp, r9d
and eax, 0xc0
and r12d, 2
and r13d, 0x10
and r14d, 0x20
and esi, 0x40
cmp al, 0xc0
sete bpl
and edi, 1
mov dword [rsp + 0x78], r9d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov qword [rsp + 0xb8], 0x400
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0xa8], rdx
mov rax, rdx
mov qword [rsp + 0x58], rdx
cmp esi, edx
je 0x14001f7cb
cmp ebp, edx
je 0x14001f7c9
mov dword [rsp + 0x78], r15d
mov r15, rdx
lea rcx, [rsp + 0x58]
mov edx, 0x1000
call fcn.140056fe0
mov rax, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0xa8], rax
cmp esi, edx
setne byte [rsp + 0x488]
cmp esi, edx
je 0x14001f7f2
cmp ebp, edx
je 0x14001f7f2
cmp ebx, edx
je 0x14001f7f2
mov dword [rax], ebx
mov qword [rsp + 0x50], 1
mov byte [rsp + 0x488], 2
cmp qword [0x14010be10], rdx
jne 0x14001f81f
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14010be10], rax
mov edx, 2
lea rcx, str.SeDebugPrivilege
lea r8d, [rdx + 2]
call fcn.14001945c
xor eax, eax
lea rcx, [rsp + 0xc0]
mov edx, 0x46e7
mov dword [rsp + 0x490], eax
call fcn.1400571c8
mov rax, qword [rsp + 0xc0]
xor ecx, ecx
mov qword [rsp + 0x88], rax
add rax, 0xa0
lea r8d, [rcx + 0x24]
mov qword [rsp + 0x98], rax
add rax, 0x64
xor r9d, r9d
lea rbx, [rax + 0x8c]
mov qword [rsp + 0x80], rax
lea rax, [rbx + 0xc1e]
lea rdx, [rbx + 0x80a]
mov word [rax], cx
mov word [rbx + 0x80a], cx
mov qword [rsp + 0xd0], 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 + 0xe0], rax
xor eax, eax
cmp r15, rax
je 0x14001f996
lea r8d, [rax + 0x1c]
lea rcx, [rsp + 0x104]
xor edx, edx
mov dword [rsp + 0x100], eax
call fcn.1400d1fa0
lea rcx, [rsp + 0x1b4]
xor edx, edx
mov r8d, 0x134
call fcn.1400d1fa0
mov ebx, 0x138
lea rcx, [rsp + 0x2e8]
mov r8, rbx
xor edx, edx
call fcn.1400d1fa0
xor eax, eax
cmp byte [0x140109008], 1
mov qword [rsp + 0x1b0], rax
mov eax, 0x270
lea rdx, [rsp + 0x100]
cmove ebx, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 3]
call qword [0x14010be10]
xor r9d, r9d
lea rdx, [rsp + 0x1b0]
lea ecx, [r9 + 2]
mov r8d, ebx
call qword [0x14010be10]
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x88]
call fcn.1400c171c
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x98]
call fcn.1400c171c
xor eax, eax
mov rbx, qword [rsp + 0x480]
cmp edi, eax
jne 0x14001fa94
cmp word [rbx], ax
jne 0x14001fa94
mov rdx, qword [rsp + 0x88]
mov rcx, r15
call fcn.14006168c
lea rdx, [0x1400f1aac]
mov rcx, r15
call fcn.140057290
mov rdx, qword [rsp + 0x98]
mov rcx, r15
call fcn.140057290
mov r11b, byte [0x14010b9a9]
xor eax, eax
cmp r11b, al
ja 0x14001f9f8
call fcn.140005ef8
mov r11b, byte [0x14010b9a9]
lea rdx, str._t_d_t
lea rcx, [rsp + 0x130]
movzx r8d, r11b
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x130]
mov rcx, r15
call fcn.140057290
mov rdx, qword [0x14010ba88]
lea rcx, [rsp + 0x130]
call fcn.1400c171c
lea rdx, [rsp + 0x130]
mov rcx, r15
call fcn.140057290
lea rcx, [rsp + 0x48]
movsd xmm6, qword [0x1400f1a98]
pxor xmm5, xmm5
cvtsi2sd xmm5, qword [0x14010ba88]
divsd xmm6, xmm5
call fcn.140057154
lea r8, str._t_lf
lea rcx, [rsp + 0x48]
movapd xmm1, xmm6
call fcn.1400c1670
mov rdx, qword [rsp + 0x48]
mov rcx, r15
call fcn.140057290
lea rcx, [rsp + 0x48]
call fcn.14004f564
mov rcx, rbx
call fcn.1400d2530
mov edx, dword [rsp + 0x4a0]
mov ecx, 2
mov qword [rsp + 0x70], rax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, 0
cmp rax, 0xffffffffffffffff
cmove rax, rdx
mov qword [rsp + 0xa0], rax
cmp rax, 0xffffffffffffffff
je 0x140020017
movsxd rcx, r14d
mov r14d, dword [rsp + 0x68]
movsxd rdi, edi
mov qword [rsp + 0x40], rcx
movsxd rcx, r12d
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rcx
movsxd rcx, r13d
mov r13, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rcx
movsxd rsi, esi
movsxd rcx, ebp
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x1b0]
mov rcx, rax
mov rbp, r12
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x1b0], 0x238
call sub.KERNEL32.dll_Process32FirstW
xor edx, edx
cmp eax, edx
je 0x14001ffe1
mov rbp, qword [rsp + 0xa0]
cmp byte [rsp + 0x488], 2
jne 0x14001fbab
mov rcx, rdx
cmp r12, rdx
jbe 0x14001fb80
mov eax, dword [rsp + 0x1b8]
cmp dword [r13 + rcx*4], eax
je 0x140020155
inc rcx
cmp rcx, r12
jb 0x14001fb66
mov rax, rdx
cmp r12, rdx
jbe 0x140020155
mov ecx, dword [rsp + 0x1d0]
cmp dword [r13 + rax*4], ecx
je 0x14001fe73
inc rax
cmp rax, r12
jb 0x14001fb93
jmp 0x140020155
mov eax, dword [rsp + 0x498]
cmp eax, edx
je 0x14001fbc3
cmp eax, dword [rsp + 0x1d0]
jne 0x140020155
mov eax, dword [rsp + 0x4a0]
cmp eax, edx
je 0x14001fbdb
cmp eax, dword [rsp + 0x1b8]
jne 0x140020155
mov rax, qword [rsp + 0x40]
cmp rax, rdx
jne 0x14001fc42
cmp qword [rsp + 0xd8], rdx
je 0x14001fdf5
cmp rdi, rdx
je 0x14001fc2a
mov rdi, qword [rsp + 0x70]
cmp edi, edx
je 0x14001fe78
lea rcx, [rsp + 0x1dc]
mov r9d, r14d
mov r8d, edi
mov rdx, rbx
call fcn.1400174f8
xor edx, edx
cmp al, dl
je 0x140020155
jmp 0x14001fe73
cmp dword [rsp + 0x70], edx
jne 0x14001fdbe
cmp word [rsp + 0x1dc], dx
jne 0x140020155
cmp r15, rdx
jne 0x14001fc50
cmp rax, rdx
je 0x140020155
mov rbx, rdx
mov esi, edx
cmp r15, rdx
je 0x14001fd3f
mov r8d, dword [rsp + 0x1b8]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor r12d, r12d
mov rdi, rax
cmp rax, r12
je 0x14001fd3f
lea r8, [0x14010bc40]
lea rdx, str.PSAPI.DLL
lea rcx, str.GetProcessMemoryInfo
xor r9d, r9d
call fcn.140050ad8
lea esi, [r12 + 0x48]
lea r8d, [r12 + 0x40]
lea rcx, [rsp + 0x138]
xor edx, edx
mov dword [rsp + 0x130], esi
mov dword [rsp + 0x134], r12d
call fcn.1400d1fa0
mov r11, qword [0x14010bc40]
cmp r11, r12
je 0x14001fce4
lea rdx, [rsp + 0x130]
mov r8d, esi
mov rcx, rdi
call r11
mov rsi, qword [rsp + 0x140]
lea rax, [rsp + 0xe8]
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xf8]
lea rdx, [rsp + 0x120]
mov rcx, rdi
shr rsi, 0xa
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
cmp eax, r12d
je 0x14001fd36
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0xc8]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x1b8]
add r12, 0xaa0
mov rdx, r12
mov rdi, r12
call fcn.140005f84
mov ecx, 0x5c
cmp cx, word [r12]
jne 0x14001ff1d
lea eax, [rcx - 0x1d]
cmp ax, word [r12 + 2]
jne 0x14001ff1d
cmp ax, word [r12 + 4]
jne 0x14001ff1d
cmp cx, word [r12 + 6]
jne 0x14001ff1d
xor ecx, ecx
cmp word [r12 + 8], cx
je 0x14001ff1d
lea ecx, [rax - 5]
cmp cx, word [r12 + 0xa]
jne 0x14001ff1d
lea rdi, [r12 + 8]
jmp 0x14001ff5b
cmp r14d, edx
jne 0x14001fdde
lea rcx, [rsp + 0x1dc]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x14001fe73
lea rcx, [rsp + 0x1dc]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor edx, edx
cmp eax, edx
jmp 0x14001fe6d
cmp rdi, rdx
mov rdi, qword [rsp + 0x70]
je 0x14001fe1f
cmp edi, edx
je 0x14001fe78
lea rcx, [rsp + 0x1dc]
mov r9d, r14d
mov r8d, edi
mov rdx, rbx
call fcn.1400174f8
xor edx, edx
cmp al, dl
jne 0x14001fe73
cmp edi, edx
je 0x140020155
lea rcx, [rsp + 0x1dc]
mov r9d, r14d
mov r8d, edi
mov rdx, rbx
call fcn.1400174f8
xor edx, edx
cmp al, dl
je 0x140020155
cmp qword [rsp + 0x90], rdx
jne 0x140020155
movsxd rax, dword [rsp + 0x70]
movzx eax, word [rsp + rax*2 + 0x1dc]
cmp ax, dx
je 0x14001fe73
lea ecx, [rdx + 0x2e]
cmp cx, ax
jne 0x140020155
mov rax, qword [rsp + 0x40]
cmp r15, rdx
je 0x14001fe89
inc dword [rsp + 0x490]
jmp 0x14001fc42
cmp qword [rsp + 0xb0], rdx
je 0x14001fea4
mov eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0x1b8]
je 0x140020155
cmp rsi, rdx
je 0x14001ffce
mov rax, qword [rsp + 0xb8]
cmp rax, r12
ja 0x14001fedb
add rax, 0x400
lea rcx, [rsp + 0x58]
mov rdx, rax
mov qword [rsp + 0xb8], rax
shl rdx, 2
call fcn.140056fe0
xor edx, edx
mov r13, qword [rsp + 0x58]
mov eax, dword [rsp + 0x1b8]
mov dword [r13 + r12*4], eax
inc r12
mov qword [rsp + 0x50], r12
cmp qword [rsp + 0xf0], rdx
je 0x14001ff11
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x1b8]
xor r8d, r8d
call fcn.140017520
inc dword [rsp + 0x490]
jmp 0x140020155
lea rcx, str.SystemRoot_
mov r8d, 0xc
mov rdx, r12
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor ecx, ecx
cmp eax, ecx
jne 0x14001ff5b
mov rcx, qword [rsp + 0xe0]
lea rdx, [r12 + 0x16]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdi, qword [rsp + 0x80]
add rdi, 0x896
mov rcx, qword [rsp + 0x40]
xor eax, eax
cmp rcx, rax
je 0x140020070
mov r12, qword [rsp + 0x480]
cmp r14d, eax
jne 0x14001ff8a
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x14001ffa0
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor edx, edx
cmp eax, edx
jne 0x140020148
cmp r15, rdx
jne 0x140020069
cmp qword [rsp + 0xb0], rdx
je 0x14001ffc4
mov eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0x1b8]
je 0x140020148
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x490], eax
mov rbp, qword [rsp + 0x68]
mov byte [rsp + 0x488], 2
cmp rsi, rdx
je 0x14002000f
mov rax, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x90]
cmp r12, rbp
ja 0x14001fb1f
mov rax, qword [rsp + 0xa0]
movsxd rbx, dword [rsp + 0x490]
cmp rax, rdx
je 0x140020033
cmp rax, 0xffffffffffffffff
je 0x140020033
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xc0]
call fcn.14004f564
lea rcx, [rsp + 0x58]
call fcn.14004f564
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x420]
add rsp, 0x438
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [rsp + 0x490]
mov r12, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x1b8]
mov r8d, 0x8000
mov rdx, r12
call fcn.140008d78
mov rcx, qword [rsp + 0x80]
xor eax, eax
mov rdx, rbx
mov word [r12 + 0x8000], ax
call fcn.1400c171c
mov rcx, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x1b8]
mov r11, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x1d0]
xor eax, eax
cmp r8d, eax
mov rax, qword [rsp + 0x98]
lea rbx, [rcx + 0x8c]
cmovne r11, rcx
mov qword [rsp + 0x30], rax
lea rdx, str._lu_t_lu_t_lu_t_s_t_s_t
mov qword [rsp + 0x28], r11
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r11, qword [r15]
xor eax, eax
cmp word [r11], ax
je 0x140020118
lea rdx, [0x1400f1a20]
mov rcx, r15
call fcn.140057290
mov rdx, rbx
mov rcx, r15
call fcn.140057290
mov rdx, rdi
mov rcx, r15
call fcn.140057290
lea rdx, [0x1400f1aac]
mov rcx, r15
call fcn.140057290
mov rdx, r12
mov rcx, r15
call fcn.140057290
mov rbx, qword [rsp + 0x480]
mov rsi, qword [rsp + 0x48]
lea rdx, [rsp + 0x1b0]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
mov r12, qword [rsp + 0x50]
xor edx, edx
cmp eax, edx
je 0x14001ffdc
mov rdi, qword [rsp + 0x90]
jmp 0x14001fb54