Function at 0x140006288
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3f0
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
mov rdi, r12
lea eax, [r12 + 0x20]
mov ebx, eax
mov dword [rsp + 0x34], eax
or r14, 0xffffffffffffffff
cmp rdi, r12
je 0x1400062eb
mov rcx, rdi
call fcn.14005bca8
add ebx, ebx
mov ecx, ebx
shr rcx, 2
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14005ab04
mov rdi, rax
lea r8, [rsp + 0x34]
mov edx, ebx
mov rcx, rax
call sub.PSAPI.DLL_EnumProcesses
mov esi, dword [rsp + 0x34]
cmp ebx, esi
jbe 0x1400062de
mov qword [rsp + 0x80], rdi
shr esi, 2
mov edx, 1
lea rcx, str.SeDebugPrivilege
call fcn.140002a20
cmp eax, r12d
jne 0x14000635a
lea r8, str.SetTokenPrivileges_failed._n
lea rdx, str.GetProcessModuleFileNames
mov ecx, 4
call fcn.140009480
mov r15, r12
mov qword [rsp + 0x48], r12
mov r13d, esi
mov qword [rsp + 0x58], r13
cmp r13, r12
jbe 0x1400068b8
mov ebx, dword [rdi + r15*4]
mov r9d, ebx
lea r8, str.GetProcessID___1_d___n
lea rdx, str.GetProcessModuleFileNames
mov ecx, 4
call fcn.140009480
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x60], rax
cmp rax, r12
jne 0x1400063d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.OpenProcess_failed.___1_d___n
lea rdx, str.GetProcessModuleFileNames
mov ecx, 4
call fcn.140009480
jmp 0x1400068a7
lea r8, str.GetProcessHandle.__n
lea rdx, str.GetProcessModuleFileNames
mov ecx, 4
call fcn.140009480
mov dword [rsp + 0x30], r12d
mov rbp, r12
mov word [rsp + 0x1d0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x1d2]
call fcn.14005bb90
mov qword [rsp + 0x1c8], 7
mov qword [rsp + 0x1c0], r12
mov word [rsp + 0x1b0], r12w
lea rcx, [0x140077480]
call fcn.14005b1c0
mov r8, rax
lea rdx, [0x140077480]
lea rcx, [rsp + 0x1a8]
call fcn.140002280
nop
mov eax, 0x20
mov ebx, eax
mov dword [rsp + 0x30], eax
or r14, 0xffffffffffffffff
cmp rbp, r12
je 0x140006470
mov rcx, rbp
call fcn.14005bca8
add ebx, ebx
mov ecx, ebx
shr rcx, 2
mov eax, 8
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14005ab04
mov rbp, rax
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call sub.PSAPI.DLL_EnumProcessModules
mov r11d, dword [rsp + 0x30]
cmp ebx, r11d
jbe 0x140006463
shr r11d, 2
mov eax, r11d
test r11d, r11d
mov r14, qword [rsp + 0x40]
je 0x140006875
mov rdi, rax
mov r15, qword [rsp + 0x50]
mov r9d, 0x104
lea r8, [rsp + 0x1d0]
mov rdx, qword [rbp + r12*8]
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov edx, 0x5c
lea rcx, [rsp + 0x1d0]
call fcn.14005bc7c
mov r13, rax
test rax, rax
je 0x140006857
test r14, r14
je 0x140006716
mov rcx, qword [r14 + 0x30]
mov rdx, qword [rcx]
mov qword [rsp + 0x98], rdx
mov rcx, qword [r14]
mov qword [rsp + 0x90], rcx
movaps xmm0, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x70], xmm0
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x14000654b
cmp rsi, qword [r14]
je 0x140006555
call fcn.14005c2f8
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x78]
cmp rbx, rax
je 0x140006852
test rsi, rsi
jne 0x140006572
call fcn.14005c2f8
xor r11d, r11d
jmp 0x140006575
mov r11, qword [rsi]
cmp rbx, qword [r11 + 0x30]
jne 0x140006580
call fcn.14005c2f8
mov rax, qword [rbx + 0x30]
mov qword [rsp + 0x38], rax
test rsi, rsi
jne 0x140006598
call fcn.14005c2f8
xor r11d, r11d
jmp 0x14000659b
mov r11, qword [rsi]
cmp rbx, qword [r11 + 0x30]
jne 0x1400065a6
call fcn.14005c2f8
cmp qword [rbx + 0x38], 8
jb 0x1400065b3
mov rdx, qword [rbx + 0x20]
jmp 0x1400065b7
lea rdx, [rbx + 0x20]
mov r8, qword [rsp + 0x38]
lea rcx, [r13 + 2]
call fcn.14005c5e0
test eax, eax
jne 0x140006707
lea rcx, [rsp + 0x1d0]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1a8]
call fcn.140002280
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rdx, qword [rsp + 0x1b0]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0xc0]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x140], xmm5
lea rcx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rcx, qword [rsp + 0x1b0]
mov rax, qword [rsp + 0x1c0]
lea rdx, [rcx + rax*2]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0x150]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0x150]
movdqa xmmword [rsp + 0x100], xmm5
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rdx, qword [rsp + 0x1b0]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0xa0]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x130], xmm5
lea rax, [0x14005c48c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x188]
call fcn.14000378c
lea r8, [rsp + 0x1a8]
lea rdx, [rsp + 0x170]
mov rcx, r15
call fcn.140005c98
lea rcx, [rsp + 0x70]
call fcn.140013038
jmp 0x140006533
lea rcx, [rsp + 0x1d0]
call fcn.14005b1c0
mov r8, rax
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1a8]
call fcn.140002280
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rdx, qword [rsp + 0x1b0]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0x120]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0x120]
movdqa xmmword [rsp + 0xd0], xmm5
lea rcx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rcx, qword [rsp + 0x1b0]
mov rax, qword [rsp + 0x1c0]
lea rdx, [rcx + rax*2]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0x160]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0x160]
movdqa xmmword [rsp + 0xf0], xmm5
lea rdx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 8
cmovae rdx, qword [rsp + 0x1b0]
lea r8, [rsp + 0x1a8]
lea rcx, [rsp + 0xb0]
call fcn.140002f6c
movaps xmm5, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0x110], xmm5
lea rax, [0x14005c48c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x198]
call fcn.14000378c
lea r8, [rsp + 0x1a8]
lea rdx, [rsp + 0x170]
mov rcx, r15
call fcn.140005c98
jmp 0x140006857
mov rsi, qword [rsp + 0x60]
inc r12
cmp r12, rdi
jb 0x1400064c9
mov rdi, qword [rsp + 0x80]
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r12d, r12d
cmp rbp, r12
je 0x14000688f
mov rcx, rbp
call fcn.14005bca8
nop
cmp qword [rsp + 0x1c8], 8
jb 0x1400068a7
mov rcx, qword [rsp + 0x1b0]
call fcn.14005ab0c
inc r15
mov qword [rsp + 0x48], r15
cmp r15, r13
jb 0x140006373
xor edx, edx
lea rcx, str.SeDebugPrivilege
call fcn.140002a20
cmp eax, r12d
jne 0x1400068e3
lea r8, str.SetTokenPrivileges_failed._n
lea rdx, str.GetProcessModuleFileNames
mov ecx, 4
call fcn.140009480
cmp rdi, r12
je 0x1400068f0
mov rcx, rdi
call fcn.14005bca8
mov eax, 1
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14005bad0
mov rbx, qword [rsp + 0x440]
add rsp, 0x3f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret