Function at 0x1800050a0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x11d0]
mov eax, 0x12d0
call fcn.1800199a0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x12f8], rbx
mov qword [rsp + 0x1300], rsi
mov qword [rsp + 0x1308], rdi
mov rax, qword [0x1800880c8]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov rsi, rcx
mov qword [rsp + 0x78], rcx
xor edi, edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x58], 0x400
mov dword [rsp + 0x54], 0x400
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
xor r8d, r8d
lea rdx, [0x180063ab8]
call fcn.180002d10
mov dword [rsp + 0x50], 1
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x7c]
call fcn.180037b90
xor edx, edx
lea ecx, [rdi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800051b1
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1800051a8
lea rdx, str.EXPLORER.EXE
lea rcx, [rbp - 0x54]
call fcn.180042400
mov rcx, rbx
test eax, eax
je 0x18000519c
lea rdx, [rbp - 0x80]
call sub.KERNEL32.dll_Process32NextW
jmp 0x180005176
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0x78]
jmp 0x1800051b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800052ca
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x18000521e
mov edx, r9d
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1800052b6
mov r14, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rbp + 0x9c0]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800052ad
lea rdx, str.ConvertSidToStringSidW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800052ad
lea rdx, [rsp + 0x60]
mov rcx, r14
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180005302
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800052e4
mov rcx, rsi
call fcn.180002d10
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rsi
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.180019960
lea r11, [rsp + 0x12d0]
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