Function at 0x140044138
Capabilities:
Get user security identifier

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov qword [rsp + 0x60], r9
mov r12, r8
mov qword [rbp - 0x50], rdx
mov r15, rcx
xor edi, edi
mov r13d, edi
mov dword [rsp + 0x68], edi
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x20]
call fcn.140009aa8
mov rsi, rax
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x50]
mov rbx, rax
mov rdi, qword [rax]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x1e8]
mov r8, rax
mov r9d, 0x1ef
lea rdx, str.LookupAccountByName___s:_d_
mov rcx, rbx
call qword [rdi + 0x128]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140009aa8
mov rbx, rax
mov rax, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, rax
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x50]
mov rsi, rax
mov r14, qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1e8]
mov rbx, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1e8]
mov r8, rax
mov dword [rsp + 0x20], 0x1f1
mov r9, rbx
lea rdx, str.Target_s___s:_d_
mov rcx, rsi
call qword [r14 + 0x140]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x20]
call fcn.140009aa8
mov rbx, rax
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x50]
mov rdi, rax
mov rsi, qword [rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1e8]
mov rbx, rax
mov r14, qword [rsp + 0x60]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x1f0]
mov r8, rax
mov dword [rsp + 0x20], 0x1f2
mov r9, rbx
lea rdx, str.UserName_s___s:_d_
mov rcx, rdi
call qword [rsi + 0x140]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
xor esi, esi
test al, al
jne 0x140044a70
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x60], 8
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.14000973c
nop
lea rcx, [rsp + 0x48]
call fcn.1400119ac
mov rax, qword [r12]
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp - 0x80]
call fcn.14000c640
test al, al
je 0x140044346
lea rcx, [rbp]
call fcn.1400375a8
nop
lea rcx, [rbp - 0x20]
call fcn.1400377b0
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000a95c
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp]
call fcn.1400375e8
lea rcx, [rbp - 0x80]
call fcn.1400119ac
lea rdx, [0x1400a7f30]
lea rcx, [rbp - 0x80]
call fcn.14000b524
lea rdx, [0x1400ce690]
lea rcx, [rsp + 0x48]
call fcn.14000cad0
lea rcx, [rsp + 0x48]
test al, al
je 0x140044389
lea r8, [0x1400ce628]
lea rdx, [0x1400ce690]
jmp 0x1400443ca
lea rdx, [0x1400ce640]
call fcn.14000cad0
lea rcx, [rsp + 0x48]
test al, al
je 0x1400443a7
lea rdx, [0x1400ce640]
jmp 0x1400443c3
lea rdx, [0x1400ce6f8]
call fcn.14000cad0
lea rcx, [rsp + 0x48]
test al, al
je 0x1400443d1
lea rdx, [0x1400ce6f8]
lea r8, [0x1400cd608]
call fcn.14000dbdc
jmp 0x1400443fb
xor r8d, r8d
lea rdx, [rbp - 0x80]
call fcn.14000ca08
cmp rax, qword [0x14008ac28]
je 0x1400443fb
lea r8, [0x1400cd608]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14000daa0
mov rax, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.14000adb8
mov rdi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1e8]
mov rcx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
cmp dword [rsp + 0x40], esi
jbe 0x140044907
cmp dword [rsp + 0x44], esi
jbe 0x140044907
lea rcx, [rbp - 0x68]
call fcn.140009b88
nop
mov edx, dword [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.14000de50
mov ecx, dword [rsp + 0x44]
call fcn.140058c70
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e318
nop
mov rax, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, rax
mov r14, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.14000adb8
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.14000adb8
mov rsi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1e8]
mov rcx, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
xor edi, edi
test ebx, ebx
je 0x1400447b5
lea rdx, [0x1400ce668]
lea rcx, [rsp + 0x48]
call fcn.14000cad0
test al, al
je 0x140044559
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x40]
call fcn.140009b04
nop
lea r8, [rbp - 0x40]
lea rdx, [0x1400ce668]
lea rcx, [rsp + 0x48]
call fcn.14000dbdc
nop
jmp 0x140044595
lea rdx, [0x1400ce6b8]
lea rcx, [rsp + 0x48]
call fcn.14000cad0
test al, al
je 0x1400445a3
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x40]
call fcn.140009b04
nop
lea r8, [rbp - 0x40]
lea rdx, [0x1400ce6b8]
lea rcx, [rsp + 0x48]
call fcn.14000dbdc
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
jmp 0x14004468f
lea rcx, [rbp - 0x68]
call fcn.14000c640
test al, al
jne 0x1400445e9
lea rdx, [0x1400a7f30]
lea rcx, [rbp - 0x40]
call fcn.140009b04
nop
mov r13d, 1
mov dword [rsp + 0x68], r13d
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000ca08
cmp rax, qword [0x14008ac28]
mov bl, r13b
jne 0x1400445ec
mov bl, dil
test r13b, 1
je 0x1400445fb
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
test bl, bl
je 0x14004468f
lea rdx, [0x1400a7f30]
lea rcx, [rbp - 0x20]
call fcn.140009b04
nop
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000e410
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x40]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 2
jne 0x140044686
cmp rdx, 1
ja 0x140044677
lea rcx, str.invalid_vector_T__subscript
call fcn.140056fc0
int3
lea rdx, [r8 + 0x18]
lea rcx, [rsp + 0x48]
call fcn.14000a95c
nop
lea rcx, [rbp - 0x40]
call fcn.140004460
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140009aa8
mov rdi, rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x20]
call fcn.140010714
mov rbx, rax
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x50]
mov r14, rax
mov r15, qword [rax]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1e8]
mov rsi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1e8]
mov rdi, rax
lea rcx, [rbp - 0x68]
call fcn.14000adb8
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.14000adb8
mov r8, rax
mov dword [rsp + 0x30], 0x232
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea rdx, str.SearchName_s__DomainName_s__SID_s___s:_d_
mov rcx, r14
call qword [r15 + 0x148]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x48]
mov rdx, r12
mov rbx, qword [rbp - 0x50]
mov rcx, rbx
call fcn.140042750
nop
lea rax, vtable.MemoryBufferPtr_struct__SID_.0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x78]
xor edi, edi
test rcx, rcx
je 0x140044783
lea edx, [rdi + 0xc]
call fcn.140058c3c
mov qword [rsp + 0x78], rdi
lea rax, vtable.BufferPtr_struct__SID_.0
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 0x68]
call fcn.14000a3b0
nop
lea rcx, [rbp - 0x80]
call fcn.14000a3b0
nop
lea rcx, [rsp + 0x48]
call fcn.14000a3b0
mov rax, rbx
jmp 0x140044b06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140009aa8
mov rbx, rax
mov r8, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rreloc.WS2_32.dll_htonl + 8]
mov r14, rax
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + 0x50]
mov r15, rax
mov r12, qword [rax]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r13d
call fcn.140023e14
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.14000adb8
mov rbx, rax
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x30], 0x239
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
mov r9, rbx
lea rdx, [0x140095740]
mov rcx, r15
call qword [r12 + 0x138]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
mov qword [rbp - 8], 7
xor edi, edi
mov qword [rbp - 0x10], rdi
mov word [rbp - 0x20], di
cmp word [0x1400a6650], di
jne 0x140044880
mov eax, edi
jmp 0x14004488c
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x20]
call fcn.1400045d0
nop
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rdi
mov byte [rbp - 0x40], dil
lea rcx, str..._nsAccount.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
mov ecx, r13d
call fcn.140023e14
mov edx, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x23a
lea r8, [rbp - 0x40]
lea rcx, [rbp]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp]
call fcn.14005ba94
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140023e14
mov r13d, eax
test eax, eax
js 0x140044938
lea rcx, [rbp]
call fcn.140022e08
mov rcx, rax
call fcn.14004f2b0
mov r13d, eax
lea rcx, [rbp]
call fcn.140023754
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140009aa8
mov rbx, rax
mov r8, qword [r12]
lea rdx, [rbp - 0x20]
mov rcx, r12
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rsi, rax
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + 0x50]
mov r14, rax
mov r15, qword [rax]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x1e8]
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.14000adb8
mov rbx, rax
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x30], 0x246
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r13d
mov r9, rbx
lea rdx, [0x140095740]
mov rcx, r14
call qword [r15 + 0x138]
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
mov qword [rbp - 8], 7
xor edi, edi
mov qword [rbp - 0x10], rdi
mov word [rbp - 0x20], di
cmp word [0x1400a6650], di
jne 0x1400449f0
mov eax, edi
jmp 0x1400449fc
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x20]
call fcn.1400045d0
nop
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rdi
mov byte [rbp - 0x40], dil
lea rcx, str..._nsAccount.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x247
lea r8, [rbp - 0x40]
mov edx, r13d
lea rcx, [rbp]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp]
call fcn.14005ba94
nop
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
cmp word [0x1400a6650], si
jne 0x140044a8e
mov rax, rsi
jmp 0x140044a9a
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp - 0x20]
call fcn.1400045d0
nop
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], sil
lea rcx, str..._nsAccount.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
lea r9, [rbp - 0x20]
mov r8d, 0x24c
lea rdx, [rbp - 0x40]
lea rcx, [rbp]
call fcn.140023340
lea rdx, [0x1400c8320]
lea rcx, [rbp]
call fcn.14005ba94
nop
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140058630
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret