Function at 0x140043d80
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 [0x1400c9118]
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 0x1400446b8
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.1400119f0
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.14000c638
test al, al
je 0x140043f8e
lea rcx, [rbp]
call fcn.140037628
nop
lea rcx, [rbp - 0x20]
call fcn.140037830
nop
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000a948
nop
lea rcx, [rbp - 0x20]
call fcn.14000a3b0
nop
lea rcx, [rbp]
call fcn.140037668
lea rcx, [rbp - 0x80]
call fcn.1400119f0
lea rdx, [0x1400a6dc0]
lea rcx, [rbp - 0x80]
call fcn.14000b510
lea rdx, [0x1400cd690]
lea rcx, [rsp + 0x48]
call fcn.14000cac8
lea rcx, [rsp + 0x48]
test al, al
je 0x140043fd1
lea r8, [0x1400cd628]
lea rdx, [0x1400cd690]
jmp 0x140044012
lea rdx, [0x1400cd640]
call fcn.14000cac8
lea rcx, [rsp + 0x48]
test al, al
je 0x140043fef
lea rdx, [0x1400cd640]
jmp 0x14004400b
lea rdx, [0x1400cd6f8]
call fcn.14000cac8
lea rcx, [rsp + 0x48]
test al, al
je 0x140044019
lea rdx, [0x1400cd6f8]
lea r8, [0x1400cc608]
call fcn.14000dc20
jmp 0x140044043
xor r8d, r8d
lea rdx, [rbp - 0x80]
call fcn.14000ca00
cmp rax, qword [0x140089c28]
je 0x140044043
lea r8, [0x1400cc608]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14000dae4
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.14000aed0
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 0x14004454f
cmp dword [rsp + 0x44], esi
jbe 0x14004454f
lea rcx, [rbp - 0x68]
call fcn.140009b88
nop
mov edx, dword [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.14000de94
mov ecx, dword [rsp + 0x44]
call fcn.140058840
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002e394
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.14000aed0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.14000aed0
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 0x1400443fd
lea rdx, [0x1400cd668]
lea rcx, [rsp + 0x48]
call fcn.14000cac8
test al, al
je 0x1400441a1
lea rdx, [0x1400a54e0]
lea rcx, [rbp - 0x40]
call fcn.140009b04
nop
lea r8, [rbp - 0x40]
lea rdx, [0x1400cd668]
lea rcx, [rsp + 0x48]
call fcn.14000dc20
nop
jmp 0x1400441dd
lea rdx, [0x1400cd6b8]
lea rcx, [rsp + 0x48]
call fcn.14000cac8
test al, al
je 0x1400441eb
lea rdx, [0x1400a54e0]
lea rcx, [rbp - 0x40]
call fcn.140009b04
nop
lea r8, [rbp - 0x40]
lea rdx, [0x1400cd6b8]
lea rcx, [rsp + 0x48]
call fcn.14000dc20
nop
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
jmp 0x1400442d7
lea rcx, [rbp - 0x68]
call fcn.14000c638
test al, al
jne 0x140044231
lea rdx, [0x1400a6dc0]
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.14000ca00
cmp rax, qword [0x140089c28]
mov bl, r13b
jne 0x140044234
mov bl, dil
test r13b, 1
je 0x140044243
lea rcx, [rbp - 0x40]
call fcn.14000a3b0
test bl, bl
je 0x1400442d7
lea rdx, [0x1400a6dc0]
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.14000e454
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 0x1400442ce
cmp rdx, 1
ja 0x1400442bf
lea rcx, str.invalid_vector_T__subscript
call fcn.140056b90
int3
lea rdx, [r8 + 0x18]
lea rcx, [rsp + 0x48]
call fcn.14000a948
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.140010758
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.14000aed0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.14000aed0
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.140042374
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 0x1400443cb
lea edx, [rdi + 0xc]
call fcn.140058838
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 0x14004474e
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.140023b78
mov edi, eax
lea rcx, [rsp + 0x48]
call fcn.14000aed0
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, [0x1400945a0]
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 [0x1400a54e0], di
jne 0x1400444c8
mov eax, edi
jmp 0x1400444d4
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
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.1400653e0
mov r8, rax
lea rdx, str..._nsAccount.cpp
lea rcx, [rbp - 0x40]
call fcn.140004720
nop
mov ecx, r13d
call fcn.140023b78
mov edx, eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x23a
lea r8, [rbp - 0x40]
lea rcx, [rbp]
call fcn.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp]
call fcn.14005b684
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140023b78
mov r13d, eax
test eax, eax
js 0x140044580
lea rcx, [rbp]
call fcn.140022b84
mov rcx, rax
call fcn.14004eeb4
mov r13d, eax
lea rcx, [rbp]
call fcn.1400234d0
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.14000aed0
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, [0x1400945a0]
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 [0x1400a54e0], di
jne 0x140044638
mov eax, edi
jmp 0x140044644
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
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.1400653e0
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.140022e44
lea rdx, [0x1400c67e8]
lea rcx, [rbp]
call fcn.14005b684
nop
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], rsi
mov word [rbp - 0x20], si
cmp word [0x1400a54e0], si
jne 0x1400446d6
mov rax, rsi
jmp 0x1400446e2
lea rcx, [0x1400a54e0]
call fcn.140065008
mov r8, rax
lea rdx, [0x1400a54e0]
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.1400653e0
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.1400230bc
lea rdx, [0x1400c7088]
lea rcx, [rbp]
call fcn.14005b684
nop
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140058200
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret