Function at 0x140035f70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
lea ecx, [r15 + 0x18]
call fcn.140062618
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
lea rdx, str.SeImpersonatePrivilege
lea rcx, [rsp + 0x60]
call fcn.14005ad00
nop
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140036037
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_create_process_snapshot._Error__d
call fcn.14005cb30
jmp 0x140036217
mov dword [rbp - 0x40], 0x238
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140036071
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_get_first_process_of_the_snapshot._Error:__d
call fcn.14005cb30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140036217
movabs rsi, 0xaaaaaaaaaaaaaaa
nop dword [rax + rax]
lea rdx, str.explorer.exe
lea rcx, [rbp - 0x14]
call fcn.14006ee9c
test eax, eax
jne 0x1400360df
mov rbx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], rsi
je 0x140036310
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r15
mov ecx, 0x18
call fcn.140062618
mov ecx, dword [rbp - 0x38]
mov dword [rax + 0x10], ecx
inc qword [rsp + 0x58]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rsp + 0x38], r15
mov qword [rbx + 8], rax
mov qword [rcx], rax
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140036080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
lea rcx, str.Found__d_instances_of_explorer.exe
call fcn.14005cb30
mov rax, qword [rsp + 0x50]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140036217
nop dword [rax + rax]
mov r8d, dword [rbx + 0x10]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14003614e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rcx, str.Cannot_open_process_explorer.exe___pid__d__error__d_
jmp 0x1400361fe
mov edx, dword [rbx + 0x10]
lea rcx, str.Opened_process_explorer.exe__pid__d_
call fcn.14005cb30
lea r8, [rsp + 0x40]
mov edx, 2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140036193
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cannot_open_process_token__Error__d_
call fcn.14005cb30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140036206
lea rcx, str.Opened_process_explorer.exe_token
call fcn.14005cb30
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140036206
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov r8d, edi
lea rcx, str.Cannot_duplicate_explorer___d__token__error__d_
mov edx, dword [rbx + 0x10]
call fcn.14005cb30
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [rsp + 0x50]
jne 0x140036120
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
cmp eax, 1
jne 0x14003623d
lea rcx, str.Impersionation_as_current_user_succesful__n
call fcn.14005cb30
mov byte [r14 + 0x81], 1
jmp 0x140036252
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Impersonation_as_current_user_failed._Error__d_n
call fcn.14005cb30
nop
cmp byte [rbp - 0x68], 0
je 0x140036282
cmp dword [rbp - 0x78], 0
je 0x140036282
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9d, 0x10
lea r8, [rbp - 0x78]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov byte [rbp - 0x68], 0
mov rcx, qword [rbp - 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140036296
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x60]
call fcn.14005b820
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + 8]
mov qword [rax], r15
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400362d5
nop word [rax + rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.140062610
mov rcx, rbx
test rbx, rbx
jne 0x1400362c0
mov edx, 0x18
mov rcx, qword [rsp + 0x50]
call fcn.140062610
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400625f0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, str.list_too_long
call fcn.140060888
int3