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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x448
movaps xmmword [rax - 0x58], xmm6
mov eax, r9d
xor r9d, r9d
mov r14, r8
mov edi, edx
mov r15, rcx
cmp edx, r9d
jne 0x14002d8a5
cmp r8, r9
jne 0x14002d8a5
cmp eax, r9d
jne 0x14002d8a5
cmp dword [rsp + 0x4b0], r9d
jne 0x14002d8a5
call fcn.140017340
mov r15, rax
lea rcx, [rsp + 0x50]
mov edx, 0x7c
mov qword [rsp + 0x50], r15
call fcn.1400eea1c
mov rax, qword [rsp + 0x50]
cmp word [rax], r9w
je 0x14002d8dc
mov word [rax], r9w
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
cmp word [rax], r9w
jne 0x14002d8e1
mov qword [rsp + 0x50], r9
mov eax, edi
mov ecx, r9d
mov esi, edi
and eax, 0x10000
mov ebp, edi
mov r12d, edi
mov dword [rsp + 0x490], 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 eax, edi
mov dword [rsp + 0x78], r9d
sete cl
and eax, 0x80000
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x4a0], ecx
and r13d, 0x100
and edi, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x4a0]
xor edx, edx
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0xc0], 0x400
mov qword [rsp + 0x60], rdx
mov rax, rdx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0x70], rdx
cmp ecx, edx
je 0x14002d97c
mov dword [rsp + 0x78], r14d
mov r14, rdx
cmp ebx, edx
je 0x14002d9ae
cmp ecx, edx
je 0x14002d9ac
mov r14, rdx
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.14006149c
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x4a0]
mov qword [rsp + 0xb0], rax
xor edx, edx
cmp ebx, edx
setne byte [rsp + 0x498]
cmp ebx, edx
je 0x14002d9dc
cmp ecx, edx
je 0x14002d9dc
mov ecx, dword [rsp + 0x4b0]
cmp ecx, edx
je 0x14002d9dc
mov dword [rax], ecx
mov qword [rsp + 0x60], 1
mov byte [rsp + 0x498], 2
cmp qword [0x140135000], rdx
jne 0x14002da09
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 [0x140135000], rax
mov edx, 2
lea rcx, str.SeDebugPrivilege
lea r8d, [rdx + 2]
call fcn.14001c028
xor eax, eax
lea rcx, [rsp + 0xc8]
mov edx, 0x48f3
mov rbx, rax
mov qword [rsp + 0x40], rax
call fcn.14006170c
mov rax, qword [rsp + 0xc8]
lea r8d, [rbx + 9]
mov qword [rsp + 0x88], rax
add rax, 0xa0
xor r9d, r9d
mov qword [rsp + 0x90], rax
add rax, 0x64
lea rcx, [rax + 0x8c]
mov qword [rsp + 0x58], rax
lea rax, [rcx + 0xe2a]
mov qword [rsp + 0xd8], rax
mov word [rax], r8w
lea rdx, [rax + 2]
xor r8d, r8d
mov word [rdx], r8w
add rax, 0x20c
mov qword [rsp + 0xf0], rdx
mov word [rax], r8w
mov word [rcx + 0xa16], r8w
lea rdx, [rcx + 0xa16]
lea r8d, [rbx + 0x24]
xor ecx, ecx
mov qword [rsp + 0xa8], rax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r11, qword [rsp + 0x58]
add r11, 0xaa2
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, qword [rsp + 0x58]
movsxd rcx, eax
lea rax, [r8 + rcx*2 + 0xaa2]
mov qword [rsp + 0xe8], rax
xor eax, eax
cmp r14, rax
je 0x14002dbbb
lea r8d, [rbx + 0x1c]
lea rcx, [rsp + 0x114]
xor edx, edx
mov dword [rsp + 0x110], eax
call fcn.1400fae60
lea rcx, [rsp + 0x1c4]
xor edx, edx
mov r8d, 0x134
call fcn.1400fae60
mov ebx, 0x138
lea rcx, [rsp + 0x2f8]
mov r8, rbx
xor edx, edx
call fcn.1400fae60
xor eax, eax
cmp byte [0x140132038], 1
mov qword [rsp + 0x1c0], rax
mov eax, 0x270
lea rdx, [rsp + 0x110]
cmove ebx, eax
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea ecx, [r9 + 3]
call qword [0x140135000]
xor r9d, r9d
lea rdx, [rsp + 0x1c0]
lea ecx, [r9 + 2]
mov r8d, ebx
call qword [0x140135000]
mov rdx, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x88]
call fcn.1400dfd2c
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x90]
call fcn.1400dfd2c
mov rbx, qword [rsp + 0x40]
xor eax, eax
cmp edi, eax
jne 0x14002dcb2
cmp word [r15], ax
jne 0x14002dcb2
mov rdx, qword [rsp + 0x88]
mov rcx, r14
call fcn.14006d65c
lea rdx, [0x14011a0cc]
mov rcx, r14
call fcn.1400617d4
mov rdx, qword [rsp + 0x90]
mov rcx, r14
call fcn.1400617d4
mov r11b, byte [0x140134a49]
xor eax, eax
cmp r11b, al
ja 0x14002dc16
call fcn.14000667c
mov r11b, byte [0x140134a49]
lea rdx, str._t_d_t
lea rcx, [rsp + 0x140]
movzx r8d, r11b
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.1400617d4
mov rdx, qword [0x140134b80]
lea rcx, [rsp + 0x140]
call fcn.1400dfd2c
lea rdx, [rsp + 0x140]
mov rcx, r14
call fcn.1400617d4
lea rcx, [rsp + 0x48]
movsd xmm6, qword [0x14011a0b8]
pxor xmm5, xmm5
cvtsi2sd xmm5, qword [0x140134b80]
divsd xmm6, xmm5
call fcn.140061698
lea r8, str._t_lf
lea rcx, [rsp + 0x48]
movapd xmm1, xmm6
call fcn.1400dfc80
mov rdx, qword [rsp + 0x48]
mov rcx, r14
call fcn.1400617d4
lea rcx, [rsp + 0x48]
call fcn.1400591f8
mov rcx, r15
call fcn.1400fb3f0
mov edx, dword [rsp + 0x4b0]
mov ecx, 2
mov qword [rsp + 0x48], rax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, 0
cmp rax, 0xffffffffffffffff
cmove rax, rdx
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x14002e2cc
movsxd rcx, r12d
mov r12, qword [rsp + 0x60]
movsxd rdi, edi
mov qword [rsp + 0xa0], rcx
movsxd rcx, r13d
mov r13, qword [rsp + 0xb0]
mov qword [rsp + 0xe0], rcx
movsxd rcx, esi
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xd0], rcx
movsxd rcx, ebp
mov qword [rsp + 0xb8], rcx
lea rdx, [rsp + 0x1c0]
mov rcx, rax
mov rsi, r12
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x1c0], 0x238
call sub.KERNEL32.dll_Process32FirstW
xor edx, edx
cmp eax, edx
je 0x14002e29d
mov rbp, qword [rsp + 0x80]
cmp byte [rsp + 0x498], 2
jne 0x14002ddbf
mov rcx, rdx
cmp r12, rdx
jbe 0x14002dd94
mov eax, dword [rsp + 0x1c8]
cmp dword [r13 + rcx*4], eax
je 0x14002e42e
inc rcx
cmp rcx, r12
jb 0x14002dd7a
mov rax, rdx
cmp r12, rdx
jbe 0x14002e42e
mov ecx, dword [rsp + 0x1e0]
cmp dword [r13 + rax*4], ecx
je 0x14002e0fd
inc rax
cmp rax, r12
jb 0x14002dda7
jmp 0x14002e42e
mov eax, dword [rsp + 0x4a8]
cmp eax, edx
je 0x14002ddd7
cmp eax, dword [rsp + 0x1e0]
jne 0x14002e42e
mov eax, dword [rsp + 0x4b0]
cmp eax, edx
je 0x14002ddef
cmp eax, dword [rsp + 0x1c8]
jne 0x14002e42e
mov rsi, qword [rsp + 0xa0]
cmp rsi, rdx
jne 0x14002de25
cmp qword [rsp + 0xe0], rdx
je 0x14002dfd9
lea rcx, [rsp + 0x1ec]
mov rdx, r15
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
xor edx, edx
cmp eax, edx
jne 0x14002e0fd
mov rcx, qword [rsp + 0x50]
cmp rcx, rdx
je 0x14002de4d
mov r8d, dword [rsp + 0x490]
mov edx, dword [rsp + 0x1c8]
call fcn.14001a1e4
xor edx, edx
cmp eax, edx
je 0x14002e42e
cmp r14, rdx
jne 0x14002de5b
cmp rsi, rdx
je 0x14002e42e
mov rbx, rdx
mov esi, edx
cmp r14, rdx
je 0x14002df4a
mov r8d, dword [rsp + 0x1c8]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x14002df4a
lea r8, [0x140134d70]
lea rdx, str.PSAPI.DLL
lea rcx, str.GetProcessMemoryInfo
xor r9d, r9d
call fcn.14005a8cc
xor esi, esi
lea rcx, [rsp + 0x148]
lea r8d, [rsi + 0x40]
xor edx, edx
mov dword [rsp + 0x140], 0x48
mov dword [rsp + 0x144], esi
call fcn.1400fae60
mov r11, qword [0x140134d70]
cmp r11, rsi
je 0x14002deee
lea r8d, [rsi + 0x48]
lea rdx, [rsp + 0x140]
mov rcx, rdi
call r11
mov rsi, qword [rsp + 0x150]
lea rax, [rsp + 0x100]
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x130]
mov rcx, rdi
shr rsi, 0xa
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
xor ecx, ecx
cmp eax, ecx
je 0x14002df41
mov rcx, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x1c8]
lea rdi, [rdx + 0xcac]
add rdx, 0xcac
call fcn.140006708
mov rcx, qword [rsp + 0x58]
mov r9d, 0x5c
cmp r9w, word [rcx + 0xcac]
jne 0x14002e1e6
lea eax, [r9 - 0x1d]
cmp ax, word [rcx + 0xcae]
jne 0x14002e1e6
cmp ax, word [rcx + 0xcb0]
jne 0x14002e1e6
cmp r9w, word [rcx + 0xcb2]
jne 0x14002e1e6
xor edx, edx
cmp word [rcx + 0xcb4], dx
je 0x14002e1e6
lea edx, [rax - 5]
cmp dx, word [rcx + 0xcb6]
jne 0x14002e1e6
lea rdi, [rcx + 0xcb4]
jmp 0x14002e227
cmp qword [rsp + 0xd0], rdx
je 0x14002e076
cmp rdi, rdx
je 0x14002e025
mov rdi, qword [rsp + 0x48]
mov esi, dword [rsp + 0x490]
cmp edi, edx
je 0x14002e104
lea rcx, [rsp + 0x1ec]
mov r9d, esi
mov r8d, edi
mov rdx, r15
call fcn.140019fb8
xor edx, edx
cmp al, dl
je 0x14002e42e
jmp 0x14002e104
cmp dword [rsp + 0x48], edx
jne 0x14002e03e
cmp word [rsp + 0x1ec], dx
jne 0x14002e42e
jmp 0x14002de25
mov esi, dword [rsp + 0x490]
lea rcx, [rsp + 0x1ec]
cmp esi, edx
mov rdx, r15
jne 0x14002e05c
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x14002e062
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor edx, edx
cmp eax, edx
sete al
cmp al, dl
jne 0x14002e104
jmp 0x14002e42e
mov esi, dword [rsp + 0x490]
cmp rdi, rdx
mov rdi, qword [rsp + 0x48]
je 0x14002e0a7
cmp edi, edx
je 0x14002e104
lea rcx, [rsp + 0x1ec]
mov r9d, esi
mov r8d, edi
mov rdx, r15
call fcn.140019fb8
xor edx, edx
cmp al, dl
jne 0x14002e104
cmp edi, edx
je 0x14002e42e
lea rcx, [rsp + 0x1ec]
mov r9d, esi
mov r8d, edi
mov rdx, r15
call fcn.140019fb8
xor edx, edx
cmp al, dl
je 0x14002e42e
cmp qword [rsp + 0x98], rdx
jne 0x14002e42e
movsxd rax, dword [rsp + 0x48]
movzx eax, word [rsp + rax*2 + 0x1ec]
cmp ax, dx
je 0x14002e104
lea ecx, [rdx + 0x2e]
cmp cx, ax
jne 0x14002e42e
jmp 0x14002e104
mov esi, dword [rsp + 0x490]
cmp r14, rdx
jne 0x14002e124
cmp qword [rsp + 0xb8], rdx
je 0x14002e124
mov eax, dword [rsp + 0x7c]
cmp eax, dword [rsp + 0x1c8]
je 0x14002e42e
mov rcx, qword [rsp + 0x50]
cmp rcx, rdx
je 0x14002e147
mov edx, dword [rsp + 0x1c8]
mov r8d, esi
call fcn.14001a1e4
xor edx, edx
cmp eax, edx
je 0x14002e42e
cmp r14, rdx
je 0x14002e161
mov rsi, qword [rsp + 0xa0]
inc rbx
mov qword [rsp + 0x40], rbx
jmp 0x14002de4d
mov ecx, dword [rsp + 0x4a0]
mov eax, ecx
or eax, dword [rsp + 0x68]
je 0x14002e28c
cmp r13, rdx
je 0x14002e1c2
mov rax, qword [rsp + 0xc0]
cmp rax, r12
ja 0x14002e1ae
add rax, 0x400
lea rcx, [rsp + 0x70]
mov rdx, rax
mov qword [rsp + 0xc0], rax
shl rdx, 2
call fcn.14006149c
mov ecx, dword [rsp + 0x4a0]
xor edx, edx
mov r13, qword [rsp + 0x70]
mov eax, dword [rsp + 0x1c8]
mov dword [r13 + r12*4], eax
inc r12
cmp ecx, edx
je 0x14002e1d9
mov edx, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x1c8]
xor r8d, r8d
call fcn.14001a26c
inc rbx
mov qword [rsp + 0x40], rbx
jmp 0x14002e42e
lea rdx, [rcx + 0xcac]
lea rcx, str.SystemRoot_
mov r8d, 0xc
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor edx, edx
cmp eax, edx
jne 0x14002e229
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xe8]
add rdi, 0xaa2
lea rdx, [rdi + 0x220]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
cmp qword [rsp + 0xa0], rdx
je 0x14002e31d
cmp dword [rsp + 0x490], edx
jne 0x14002e252
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
cmp eax, edx
je 0x14002e268
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
xor edx, edx
cmp eax, edx
jne 0x14002e42e
cmp r14, rdx
jne 0x14002e318
cmp qword [rsp + 0xb8], rdx
je 0x14002e28c
mov eax, dword [rsp + 0x7c]
cmp eax, dword [rsp + 0x1c8]
je 0x14002e42e
mov ebx, dword [rsp + 0x1c8]
mov qword [rsp + 0x40], rbx
mov rsi, qword [rsp + 0x60]
mov byte [rsp + 0x498], 2
cmp dword [rsp + 0x68], edx
je 0x14002e2c4
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x98]
cmp r12, rsi
ja 0x14002dd33
mov rax, qword [rsp + 0x80]
mov ebx, ebx
cmp rax, rdx
je 0x14002e2e2
cmp rax, 0xffffffffffffffff
je 0x14002e2e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xc8]
call fcn.1400591f8
lea rcx, [rsp + 0x70]
call fcn.1400591f8
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x430]
add rsp, 0x448
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x6c]
cmp rax, rdx
je 0x14002e33b
mov rdx, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x1c8]
call fcn.140019fe0
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x1c8]
mov r8d, 0x8000
call fcn.14000988c
mov rax, qword [rsp + 0xa8]
xor ecx, ecx
mov word [rax + 0x8000], cx
mov rcx, qword [rsp + 0x58]
mov rdx, rbx
call fcn.1400dfd2c
mov r10, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x1c8]
mov rax, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x1e0]
xor edx, edx
cmp dword [rsp + 0x6c], edx
lea rbx, [r10 + 0x8c]
lea rcx, [0x1401155d8]
cmovne rcx, qword [rsp + 0xd8]
cmp r8d, edx
lea rdx, str._lu_t_lu_t_lu_t_s_t_s_s_t
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x90]
cmovne rax, r10
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
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 0x14002e3f9
lea rdx, [0x14011a038]
mov rcx, r14
call fcn.1400617d4
mov rdx, rbx
mov rcx, r14
call fcn.1400617d4
mov rdx, rdi
mov rcx, r14
call fcn.1400617d4
lea rdx, [0x14011a0cc]
mov rcx, r14
call fcn.1400617d4
mov rdx, qword [rsp + 0xa8]
mov rcx, r14
call fcn.1400617d4
lea rdx, [rsp + 0x1c0]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
mov rbx, qword [rsp + 0x40]
xor edx, edx
cmp eax, edx
je 0x14002e298
mov rdi, qword [rsp + 0x98]
jmp 0x14002dd68