Function at 0x140039800
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x1401c0030]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xb0], 0
mov byte [rsp + 0xb1], 0
mov byte [rsp + 0xb2], 0
mov byte [rsp + 0xb3], 0
mov byte [rsp + 0xb4], 0
mov byte [rsp + 0xb5], 5
mov dword [rsp + 0x60], 0x221
mov qword [rsp + 0x70], 0xffffffffffffffff
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x1400398df
mov eax, dword [rsp + 0x60]
jmp 0x140039bc3
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x223
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x14003994c
mov eax, dword [rsp + 0x60]
jmp 0x140039bc3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x70]
mov edx, 0x20008
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jne 0x140039986
mov eax, dword [rsp + 0x60]
jmp 0x140039bc3
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x64]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400399d5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
jmp 0x140039bc3
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x64]
mov r8, qword [rsp + 0x78]
mov edx, 5
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140039a30
mov dword [rsp + 0x60], 0x220
jmp 0x140039b67
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140039a55
mov dword [rsp + 0x60], 0x223
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x64]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140039b67
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x64]
mov r8, qword [rsp + 0x90]
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x6c], 0
jmp 0x140039ae5
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax]
cmp dword [rsp + 0x6c], eax
jae 0x140039b59
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140039b28
mov dword [rsp + 0x60], 0x220
jmp 0x140039b59
mov eax, dword [rsp + 0x6c]
imul rax, rax, 0x10
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140039b57
mov dword [rsp + 0x60], 0x223
jmp 0x140039adb
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp qword [rsp + 0x70], 0xffffffffffffffff
je 0x140039b7a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x78], 0
je 0x140039b8d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp qword [rsp + 0x80], 0
je 0x140039ba6
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp qword [rsp + 0x88], 0
je 0x140039bbf
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14005e8d0
add rsp, 0xc8
ret