Function at 0x140058950
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x1400e1700]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor ebx, ebx
mov dword [rbp + 0x1b], 0
lea rax, [rbp - 0x49]
mov word [rbp + 0x1f], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x1b]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140058a6c
mov rdx, qword [rbp - 0x49]
lea r8, [rbp + 0x17]
xor ecx, ecx
mov dword [rbp + 0x17], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp + 0x17]
test eax, eax
cmove ecx, ebx
mov dword [rbp + 0x17], ecx
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 0x17], ebx
je 0x140058a6c
mov qword [rsp + 0x110], r12
mov qword [rsp + 0x118], r13
call fcn.140058640
test eax, eax
jne 0x140058b6d
lea rcx, [rbp - 0x39]
call qword [sym.imp.POWRPROF.dll_GetPwrCapabilities]
cmp al, 1
jne 0x140058a39
movzx eax, byte [rbp - 0x33]
or al, byte [rbp - 0x34]
or al, byte [rbp - 0x35]
or al, byte [rbp - 0x36]
jne 0x140058a39
cmp byte [rbp - 0x2c], bl
sete bl
test ebx, ebx
jne 0x140058c5c
mov r12, qword [rsp + 0x110]
mov r13, qword [rsp + 0x118]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400b8870
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movdqa xmm1, xmmword [0x1400d1000]
mov cl, 0x5b
movd edx, xmm1
movdqa xmm0, xmm1
movdqa xmm2, xmmword [0x1400d0790]
mov r8b, 0x40
movdqu xmmword [rbp - 0x29], xmm2
xor byte [rbp - 0x28], dl
xor cl, dl
xor byte [rbp - 0x27], dl
xor r8b, dl
xor byte [rbp - 0x26], dl
mov r9b, Ordinal_79
xor byte [rbp - 0x25], dl
xor r9b, dl
xor byte [rbp - 0x24], dl
mov r10b, 0x41
xor byte [rbp - 0x23], dl
xor r10b, dl
xor byte [rbp - 0x22], dl
mov r11b, 0x5d
xor byte [rbp - 0x21], dl
xor r11b, dl
xor byte [rbp - 0x20], dl
mov bl, 0x5a
xor byte [rbp - 0x1f], dl
xor bl, dl
xor byte [rbp - 0x1e], dl
mov dil, 8
xor byte [rbp - 0x1d], dl
xor dil, dl
xor byte [rbp - 0x1c], dl
mov sil, 9
xor byte [rbp - 0x1b], dl
xor sil, dl
xor byte [rbp - 0x1a], dl
mov r14b, 0xa
movdqu xmmword [rbp - 0x39], xmm1
xor byte [rbp - 0x37], dl
xor r14b, dl
xor byte [rbp - 0x36], dl
mov r15b, Ordinal_26
xor byte [rbp - 0x35], dl
xor r15b, dl
xor byte [rbp - 0x34], dl
xor byte [rbp - 0x33], dl
xor byte [rbp - 0x32], dl
xor byte [rbp - 0x31], dl
xor byte [rbp - 0x30], dl
xor byte [rbp - 0x2f], dl
xor byte [rbp - 0x2e], dl
xor byte [rbp - 0x2d], dl
xor byte [rbp - 0x2c], dl
xor byte [rbp - 0x2b], dl
xor byte [rbp - 0x2a], dl
psrldq xmm0, 1
movd eax, xmm0
mov byte [rbp - 0x19], cl
mov byte [rbp - 0x18], r8b
xor al, dl
mov byte [rbp - 0x17], r9b
mov byte [rbp - 0x38], al
movd eax, xmm2
mov byte [rbp - 0x16], r10b
mov byte [rbp - 0x15], r11b
xor al, dl
mov byte [rbp - 0x14], bl
lea rdx, [rbp - 0x38]
mov byte [rbp - 0x29], al
mov byte [rbp - 0x13], dil
mov byte [rbp - 0x12], sil
mov byte [rbp - 0x11], r14b
mov byte [rbp - 0x10], r15b
mov byte [rbp - 0xf], 0
call fcn.14005c900
call fcn.14005cf40
int3
movdqa xmm1, xmmword [0x1400d06d0]
mov r8b, 4
movd r10d, xmm1
mov dl, 5
movdqu xmmword [rbp - 0x39], xmm1
movzx r14d, dl
mov byte [rbp - 0x1c], 0
xor byte [rbp - 0x37], r10b
mov cl, 0x41
xor byte [rbp - 0x36], r10b
mov r9b, reloc.WS2_32.dll_setsockopt
xor byte [rbp - 0x35], r10b
movzx r11d, r8b
xor byte [rbp - 0x34], r10b
movzx edi, r9b
xor byte [rbp - 0x33], r10b
movzx esi, r8b
xor byte [rbp - 0x32], r10b
movzx r12d, cl
xor byte [rbp - 0x31], r10b
xor dl, r10b
xor byte [rbp - 0x30], r10b
movdqa xmm0, xmm1
xor byte [rbp - 0x2f], r10b
xor cl, r10b
xor byte [rbp - 0x2e], r10b
xor r8b, r10b
xor byte [rbp - 0x2d], r10b
xor r9b, r10b
xor byte [rbp - 0x2c], r10b
xor r11b, r10b
xor byte [rbp - 0x2b], r10b
xor dil, r10b
xor byte [rbp - 0x2a], r10b
xor sil, r10b
psrldq xmm0, 1
xor r14b, r10b
movd eax, xmm0
xor r12b, r10b
mov byte [rbp - 0x28], dl
mov bl, 2
xor bl, r10b
mov byte [rbp - 0x29], cl
xor al, r10b
mov byte [rbp - 0x27], r8b
mov byte [rbp - 0x38], al
lea rdx, [rbp - 0x38]
mov al, 0x53
mov byte [rbp - 0x26], r9b
xor al, r10b
mov byte [rbp - 0x25], r11b
mov r15b, 0x40
mov byte [rbp - 0x1d], al
xor r15b, r10b
mov byte [rbp - 0x24], bl
mov r13b, 0x42
mov byte [rbp - 0x23], dil
xor r13b, r10b
mov byte [rbp - 0x22], sil
mov byte [rbp - 0x21], r14b
mov byte [rbp - 0x20], r15b
mov byte [rbp - 0x1f], r12b
mov byte [rbp - 0x1e], r13b
call fcn.14005c900
call fcn.14005cf40
int3
movdqa xmm1, xmmword [0x1400d1020]
mov r8b, Ordinal_79
movd r10d, xmm1
mov dl, 0x4c
movdqu xmmword [rbp - 0x39], xmm1
movzx r14d, dl
mov byte [rbp - 0x1c], 0
xor byte [rbp - 0x37], r10b
mov cl, 8
xor byte [rbp - 0x36], r10b
mov r9b, 0x5c
xor byte [rbp - 0x35], r10b
movzx r11d, r8b
xor byte [rbp - 0x34], r10b
movzx edi, r9b
xor byte [rbp - 0x33], r10b
movzx esi, r8b
xor byte [rbp - 0x32], r10b
movzx r12d, cl
xor byte [rbp - 0x31], r10b
xor dl, r10b
xor byte [rbp - 0x30], r10b
movdqa xmm0, xmm1
xor byte [rbp - 0x2f], r10b
xor cl, r10b
xor byte [rbp - 0x2e], r10b
xor r8b, r10b
xor byte [rbp - 0x2d], r10b
xor r9b, r10b
xor byte [rbp - 0x2c], r10b
xor r11b, r10b
xor byte [rbp - 0x2b], r10b
xor dil, r10b
xor byte [rbp - 0x2a], r10b
xor sil, r10b
psrldq xmm0, 1
xor r14b, r10b
movd eax, xmm0
xor r12b, r10b
mov byte [rbp - 0x28], dl
mov bl, 0x4b
xor bl, r10b
mov byte [rbp - 0x29], cl
xor al, r10b
mov byte [rbp - 0x27], r8b
mov byte [rbp - 0x38], al
lea rdx, [rbp - 0x38]
mov al, reloc.WLDAP32.dll_Ordinal_27
mov byte [rbp - 0x26], r9b
xor al, r10b
mov byte [rbp - 0x25], r11b
mov r15b, 9
mov byte [rbp - 0x1d], al
xor r15b, r10b
mov byte [rbp - 0x24], bl
mov r13b, listen
mov byte [rbp - 0x23], dil
xor r13b, r10b
mov byte [rbp - 0x22], sil
mov byte [rbp - 0x21], r14b
mov byte [rbp - 0x20], r15b
mov byte [rbp - 0x1f], r12b
mov byte [rbp - 0x1e], r13b
call fcn.14005c900
call fcn.14005cf40
int3