Function at 0x140012e70
Capabilities:
Acquire debug privileges
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rbp - 9], 0
mov word [rbp - 5], 0x500
lea rax, [rbp - 0x49]
mov qword [rsp + 0x50], rax
xor esi, esi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
mov r9d, 0x220
lea r8d, [rsi + 0x20]
mov dl, 2
lea rcx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140013061
mov dword [rbp - 0x39], esi
lea r8, [rbp - 0x39]
mov rdx, qword [rbp - 0x49]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp - 0x39]
test eax, eax
cmove ecx, esi
mov dword [rbp - 0x39], ecx
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x39], 1
jne 0x140013061
mov qword [rbp - 0x31], 0xffffffffffffffff
mov dword [rbp - 0x29], esi
lea rax, [rbp - 0x31]
mov qword [rbp - 0x19], rax
mov byte [rbp - 0x11], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x31]
lea edx, [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
je 0x140012f5e
lea rax, str.EnableSeDebugPrivilege_OpenProcessToken_
mov qword [rbp - 0x41], 0x29
jmp 0x14001300c
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, rbx
lea edx, [r9 + 8]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
je 0x140012f94
lea rax, str.EnableSeDebugPrivilege_GetTokenInformation_
mov qword [rbp - 0x41], 0x2c
jmp 0x14001300c
lea r8, [rbp - 0x21]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
je 0x140012fb5
lea rax, str.EnableSeDebugPrivilege_LookupPrivilegeValueW_
jmp 0x140013004
mov dword [rbp + 0x27], 1
mov rax, qword [rbp - 0x21]
mov qword [rbp + 0x2b], rax
mov dword [rbp + 0x33], 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0x10
lea r8, [rbp + 0x27]
xor edx, edx
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
jne 0x140012ffd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x140013047
lea rax, str.EnableSeDebugPrivilege_AdjustTokenPrivileges_
mov qword [rbp - 0x41], 0x2e
mov qword [rbp - 0x49], rax
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 1]
call fcn.140001230
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call fcn.140006170
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x20], eax
lea rcx, [rbp - 1]
call fcn.1400011c0
xor bl, bl
jmp 0x140013049
mov bl, 1
mov rcx, qword [rbp - 0x31]
cmp rcx, 0xffffffffffffffff
je 0x140013059
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x140013137
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x17], 7
mov edx, 0x30
lea rcx, [rbp - 1]
call fcn.140007a90
mov rcx, rax
movdqa xmm0, xmmword [0x14002aa80]
movdqu xmmword [rbp + 0xf], xmm0
movaps xmm1, xmmword [0x14002b320]
movups xmmword [rax], xmm1
movaps xmm0, xmmword [0x14002b330]
movups xmmword [rax + 0x10], xmm0
movaps xmm1, xmmword [0x14002b340]
movups xmmword [rax + 0x20], xmm1
movaps xmm0, xmmword [0x14002b350]
movups xmmword [rax + 0x30], xmm0
movaps xmm1, xmmword [0x14002b360]
movups xmmword [rax + 0x40], xmm1
mov eax, dword [0x14002b370]
mov dword [rcx + 0x50], eax
movzx eax, word [0x14002b374]
mov word [rcx + 0x54], ax
mov word [rcx + 0x56], si
mov qword [rbp - 1], rcx
mov dword [rbp + 0x1f], 1
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140006170
mov eax, dword [rbp + 0x1f]
mov dword [rdi + 0x20], eax
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140013135
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013130
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013156
call fcn.140014f34
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140014ed0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
call fcn.14001bb3c
int3