Function at 0x1400386d0
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 [0x140097050]
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 0x1400388c1
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 0x1400388c1
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 0x1400387be
lea rax, str.EnableSeDebugPrivilege_OpenProcessToken_
mov qword [rbp - 0x41], 0x29
jmp 0x14003886c
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 0x1400387f4
lea rax, str.EnableSeDebugPrivilege_GetTokenInformation_
mov qword [rbp - 0x41], 0x2c
jmp 0x14003886c
lea r8, [rbp - 0x21]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
je 0x140038815
lea rax, str.EnableSeDebugPrivilege_LookupPrivilegeValueW_
jmp 0x140038864
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 0x14003885d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x1400388a7
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.140001350
mov rbx, rax
mov rdx, rax
mov rcx, rdi
call fcn.140002f90
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x20], eax
lea rcx, [rbp - 1]
call fcn.1400012e0
xor bl, bl
jmp 0x1400388a9
mov bl, 1
mov rcx, qword [rbp - 0x31]
cmp rcx, 0xffffffffffffffff
je 0x1400388b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x140038997
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x17], 7
mov edx, 0x30
lea rcx, [rbp - 1]
call fcn.140003c60
mov rcx, rax
movdqa xmm0, xmmword [0x14005ac40]
movdqu xmmword [rbp + 0xf], xmm0
movaps xmm1, xmmword [0x14005b4e0]
movups xmmword [rax], xmm1
movaps xmm0, xmmword [0x14005b4f0]
movups xmmword [rax + 0x10], xmm0
movaps xmm1, xmmword [0x14005b500]
movups xmmword [rax + 0x20], xmm1
movaps xmm0, xmmword [0x14005b510]
movups xmmword [rax + 0x30], xmm0
movaps xmm1, xmmword [0x14005b520]
movups xmmword [rax + 0x40], xmm1
mov eax, dword [0x14005b530]
mov dword [rcx + 0x50], eax
movzx eax, word [0x14005b534]
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.140002f90
mov eax, dword [rbp + 0x1f]
mov dword [rdi + 0x20], eax
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140038995
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038990
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400389b6
call fcn.14003ac6c
xor al, al
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14003ac10
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret
call fcn.140041558
int3