Function at 0x1400376b4
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 0x50]
mov dword [r14], 7
lea r12, [rcx + 0x58]
mov rcx, r12
call fcn.140038c18
lea r15, [rbx + 0x60]
mov rcx, r15
call fcn.140038c18
lea rcx, [rbx + 0x68]
call fcn.140038c18
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.140038c18
xor eax, eax
mov byte [rbx + 0x4c], al
test rsi, rsi
je 0x140037967
mov qword [rsp + 0x50], rax
mov edx, reloc.OLEAUT32.dll_VarUI2FromUI1
lea rcx, [rsp + 0x50]
call fcn.140037654
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400378a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140037924
cmp dword [rsp + 0x44], 0x44
ja 0x1400379ac
lea ecx, [rax + 6]
cmp dword [rsp + 0x40], ecx
jbe 0x140037879
mov eax, dword [rsp + 0x40]
lea r8, [rax + rax]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
jne 0x1400377d7
cmp r8, rcx
jbe 0x14003786a
mov rdx, r8
lea rcx, [rsp + 0x50]
call fcn.140037654
jmp 0x140037874
lea rax, [rsp + 0x58]
cmp r8, rcx
jbe 0x14003784c
lea rcx, [rsp + 0x50]
cmp rdx, rax
mov rdx, r8
jne 0x140037845
call fcn.140037654
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140037990
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax + 0x60], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rax + 0x70], xmm1
jmp 0x140037874
call fcn.140037680
jmp 0x140037874
cmp rdx, rax
je 0x14003786a
test r8, r8
je 0x140037860
lea rcx, [rsp + 0x58]
call fcn.14006b740
lea rcx, [rsp + 0x50]
call fcn.1400376ac
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140037924
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
xor ecx, ecx
test eax, eax
je 0x140037924
or rbx, 0xffffffffffffffff
test rdi, rdi
jne 0x1400378ce
mov eax, ecx
jmp 0x1400378da
mov rax, rbx
inc rax
cmp word [rdi + rax*2], cx
jne 0x1400378d1
mov r8d, eax
mov rdx, rdi
mov rcx, r15
call fcn.140038a60
xor eax, eax
inc rbx
cmp word [rsi + rbx*2], ax
jne 0x1400378ea
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
call fcn.140038a60
mov rcx, r13
call fcn.140038c18
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x140037920
lea rcx, [rsp + 0x50]
call fcn.1400376ac
mov al, 1
jmp 0x140037969
mov dword [r14], 7
mov rcx, r12
call fcn.140038c18
mov rcx, r15
call fcn.140038c18
lea rcx, [rbx + 0x68]
call fcn.140038c18
mov rcx, r13
call fcn.140038c18
xor eax, eax
mov byte [rbx + 0x4c], al
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140037967
lea rcx, [rsp + 0x50]
call fcn.1400376ac
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14005f5e0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14006c700
nop
mov dword [rax], SafeArrayGetElement
call fcn.14006c5e0
mov ecx, 0x80070057
call fcn.140034ce8
int3
mov ecx, 0x80004005
call fcn.140034ce8
int3