Function at 0x140002d60
Capabilities:
Get token membership
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140047080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
mov esi, ecx
mov dword [rbp + 0xf], 0
mov word [rbp + 0x13], 0x500
xor ebx, ebx
mov qword [rbp - 1], rbx
lea rax, [rbp - 1]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
lea r8d, [rbx + 0x20]
mov dl, 2
lea rcx, [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140002e0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.AllocateAndInitializeSid_error:
mov ebx, eax
lea rcx, [0x140048630]
call fcn.140004ee0
mov rcx, rax
mov edx, ebx
call fcn.140003070
mov rcx, rax
call fcn.140005190
jmp 0x140002e41
mov dword [rbp + 0x17], ebx
lea r8, [rbp + 0x17]
mov rdx, qword [rbp - 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140002e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CheckTokenMembership_error:
jmp 0x140002dea
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x17], ebx
jne 0x140002e5c
lea rdx, str.error:_Not_Admin
lea rcx, [0x1400484b0]
call fcn.140004ee0
mov rcx, rax
call fcn.140005190
mov rdx, rdi
mov ecx, esi
call fcn.14000b000
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x140040ba0]
movdqu xmmword [rbp + 0x37], xmm1
mov byte [rbp + 0x27], 0
mov rdx, qword [rdi + 8]
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140002e95
lea rcx, [rbp - 0x21]
call fcn.140005360
lea rdx, [rbp - 0x21]
lea rcx, [rbp + 0x27]
call fcn.140004be0
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x140002ef1
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fda
call fcn.14000c650
nop
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlCITesting
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002f66
mov dword [rbp + 0x17], 4
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.TestSigning
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 7]
test eax, eax
jne 0x140002f60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 1], 1
jmp 0x140002f6a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rbp - 0x29], 0
je 0x140002fe0
lea rcx, [rbp + 0x1f]
call fcn.1400086c0
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140002fad
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fa8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fd4
call fcn.14000c650
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000c630
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001878c
nop
call fcn.14001878c
nop
lea rdx, str.error_:CheckTESTMode
lea rcx, [0x1400484b0]
call fcn.140004ee0
mov rcx, rax
call fcn.140005190
mov ecx, 1
call fcn.140018b0c
int3