Function at 0x140003da0
Capabilities:
Compare security identifiers
Enumerate processes

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x230]
mov r12, rdx
xor edx, edx
mov qword [rsp + 0x58], r9
mov r14, r8
mov rsi, rcx
mov qword [rsp + 0x50], rax
xor r15b, r15b
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [rax], 5
jne 0x140004044
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [rax], 0
jne 0x140004044
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r13, rax
test rax, rax
je 0x140004048
lea rdx, [rsp + 0x70]
mov rcx, rax
mov dword [rsp + 0x70], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000403b
mov qword [rsp + 0x2d0], rbx
mov qword [rsp + 0x2c8], rdi
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140004016
lea r8, [rsp + 0x48]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004016
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rax, [rsp + 0x40]
lea edx, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [rsp + 0x40]
mov ecx, ebx
call fcn.14000ac7c
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov rdi, rax
lea rax, [rsp + 0x40]
mov edx, 2
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x140003ffe
mov edx, ebx
mov rcx, rsi
add rdx, rdx
mov rdx, qword [rdi + rdx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140003f02
inc ebx
cmp ebx, dword [rdi]
jb 0x140003ee0
jmp 0x140003ffe
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rax, [rsp + 0x40]
lea edx, [r9 + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [rsp + 0x40]
mov ecx, ebx
call fcn.14000ac7c
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov r15, rax
lea rax, [rsp + 0x40]
mov edx, 4
mov r8, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [r14]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x40], ecx
mov rdx, qword [r15]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov r9, r14
mov r8, r12
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x140003fcf
lea rcx, [r12 - 2]
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140003f90
mov eax, dword [0x1400260dc]
xor edx, edx
mov dword [rcx], eax
or eax, 0xffffffff
mov rcx, r12
sub eax, dword [r14]
add dword [rsp + 0x40], eax
call fcn.14000c904
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
call fcn.140003930
mov eax, dword [rsp + 0x40]
inc eax
jmp 0x140003ff0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003ff3
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call fcn.140003930
mov eax, dword [rsp + 0x40]
add eax, 2
add dword [r14], eax
mov rcx, r15
call fcn.14000ac3c
mov r15b, 1
mov rcx, rdi
call fcn.14000ac3c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
jne 0x14000402b
lea rdx, [rsp + 0x70]
mov rcx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140003e53
mov rdi, qword [rsp + 0x2c8]
mov rbx, qword [rsp + 0x2d0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r15b
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret