Function at 0x140064b1c
Capabilities:
Get domain controller name

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rdx + 0x10], r14
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x140064b68
mov rax, qword [rdx]
mov word [rax], r14w
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rsp + 0xa0], xmm0
mov word [rsp + 0x90], r14w
movdqu xmmword [rsp + 0x80], xmm0
mov word [rsp + 0x70], r14w
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x70]
call fcn.140064478
mov rbx, rax
mov rcx, rax
shr rcx, 0x27
not ecx
mov r15d, 1
test r15b, cl
je 0x140064bde
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
mov rax, rbx
jmp 0x14006512e
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rsp + 0xe0], xmm0
mov word [rsp + 0xd0], r14w
lea rdx, [rsp + 0xd0]
call fcn.140065f30
mov ebx, eax
test eax, eax
je 0x140064c7f
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140064c27
add rax, r15
jmp 0x140064c2e
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
or rbx, rax
movabs rax, 0x262500000000
or rbx, rax
lea rcx, [rsp + 0xd0]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
mov rax, rbx
jmp 0x14006512e
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rdx, qword [rsp + 0x90]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov ebx, eax
test eax, eax
je 0x140064d30
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140064cd8
add rax, r15
jmp 0x140064cdf
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
or rbx, rax
movabs rax, 0x272500000000
or rbx, rax
lea rcx, [rsp + 0xd0]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
mov rax, rbx
jmp 0x14006512e
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], r14w
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
lea rcx, [rsp + 0x50]
call fcn.140003cac
lea rdx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.140003c44
test ebx, ebx
je 0x140064dc9
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
lea rcx, [rsp + 0xb0]
call fcn.140003cac
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x50], r14d
lea rcx, [rsp + 0x58]
call fcn.14003e030
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x140064df4
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x140064efd
lea edx, [rax + 0x5c]
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140064e16
add rax, r15
jmp 0x140064e1d
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x292500000000
or rdi, rax
cmp dword [rsp + 0x50], r14d
je 0x140064e74
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140064e74
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140064ec1
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x140064ea1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x58], r14b
jmp 0x140064ec1
test rcx, rcx
je 0x140064eac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0xb0]
call fcn.140003c44
nop
lea rcx, [rsp + 0xd0]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
mov rax, rdi
jmp 0x14006512e
cmp qword [rsp + 0xc0], r14
jne 0x140064f0c
mov rcx, r14
jmp 0x140064f26
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rcx, qword [rsp + 0xb0]
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x30]
mov r8d, 4
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14006505d
test rcx, rcx
je 0x140064f65
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140064f81
add rax, r15
jmp 0x140064f88
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
or rbx, rax
movabs rax, 0x2a2500000000
or rbx, rax
cmp dword [rsp + 0x50], r14d
je 0x140064fd4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140064fd4
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140065021
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x140065001
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x58], r14b
jmp 0x140065021
test rcx, rcx
je 0x14006500c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0xb0]
call fcn.140003c44
nop
lea rcx, [rsp + 0xd0]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
mov rax, rbx
jmp 0x14006512e
mov rdx, qword [rcx + 0xa8]
test rdx, rdx
je 0x140065076
mov rcx, rdi
call fcn.140003cac
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop
cmp dword [rsp + 0x50], r14d
je 0x1400650a6
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x1400650a6
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400650e9
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x1400650c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400650e9
test rcx, rcx
je 0x1400650d4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0xb0]
call fcn.140003c44
nop
lea rcx, [rsp + 0xd0]
call fcn.140003c44
nop
lea rcx, [rsp + 0x70]
call fcn.140003c44
nop
lea rcx, [rsp + 0x90]
call fcn.140003c44
movabs rax, 0x8000000000
jmp 0x14006512e
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400663d0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret