Function at 0x140064b1c
Capabilities:
Get domain controller name

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400bd288]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rbx, 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 [0x140097d80]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
movdqu xmmword [rsp + 0xb8], xmm0
mov word [rsp + 0xa8], r14w
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0xa8]
call fcn.140064478
mov rdi, rax
mov rcx, rax
shr rcx, 0x27
not ecx
mov r15d, 1
test r15b, cl
je 0x140064bdb
lea rcx, [rsp + 0xa8]
call fcn.140003c44
nop
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov rax, rdi
jmp 0x1400650b2
movdqa xmm0, xmmword [0x140097d80]
movdqu xmmword [rsp + 0xd8], xmm0
mov word [rsp + 0xc8], r14w
lea rdx, [rsp + 0xc8]
call fcn.140065ff0
mov edi, 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 0x140064c24
add rax, r15
jmp 0x140064c2b
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x262500000000
or rbx, rax
lea rcx, [rsp + 0xc8]
call fcn.140003c44
nop
lea rcx, [rsp + 0xa8]
call fcn.140003c44
nop
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov rax, rbx
jmp 0x1400650b2
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
lea rax, [rsp + 0x48]
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]
test eax, eax
jne 0x140064ccd
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
lea rcx, [rsp + 0x68]
call fcn.140003cac
mov rcx, qword [rsp + 0x48]
jmp 0x140064cd7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140064cdd
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r14w
lea rdx, [rsp + 0xc8]
cmp qword [rsp + 0xe0], 8
cmovae rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x140064d44
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140035324
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x38]
call fcn.14003e030
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140064d6f
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140064e78
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 0x140064d91
add rax, r15
jmp 0x140064d98
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, 0x2a2500000000
or rdi, rax
cmp dword [rsp + 0x30], r14d
je 0x140064def
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140064def
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140064e3c
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x140064e1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x38], r14b
jmp 0x140064e3c
test rcx, rcx
je 0x140064e27
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 + 0x88]
call fcn.140003c44
nop
lea rcx, [rsp + 0xc8]
call fcn.140003c44
nop
lea rcx, [rsp + 0xa8]
call fcn.140003c44
nop
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov rax, rdi
jmp 0x1400650b2
cmp qword [rsp + 0x98], r14
jne 0x140064e87
mov rcx, r14
jmp 0x140064ea1
lea rcx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
lea r9, [rsp + 0x50]
mov r8d, 4
call qword [sym.imp.NETAPI32.dll_NetUserGetInfo]
mov edi, eax
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140064fe1
test rcx, rcx
je 0x140064ee6
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 0x140064f02
add rax, r15
jmp 0x140064f09
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov rbx, rdi
or rbx, rax
movabs rax, 0x2b2500000000
or rbx, rax
cmp dword [rsp + 0x30], r14d
je 0x140064f58
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140064f58
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140064fa5
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x140064f85
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x38], r14b
jmp 0x140064fa5
test rcx, rcx
je 0x140064f90
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 + 0x88]
call fcn.140003c44
nop
lea rcx, [rsp + 0xc8]
call fcn.140003c44
nop
lea rcx, [rsp + 0xa8]
call fcn.140003c44
nop
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov rax, rbx
jmp 0x1400650b2
mov rdx, qword [rcx + 0xa8]
test rdx, rdx
je 0x140064ffa
mov rcx, rbx
call fcn.140003cac
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
nop
cmp dword [rsp + 0x30], r14d
je 0x14006502a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14006502a
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov ecx, 0x29c
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14006506d
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x14006504d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006506d
test rcx, rcx
je 0x140065058
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 + 0x88]
call fcn.140003c44
nop
lea rcx, [rsp + 0xc8]
call fcn.140003c44
nop
lea rcx, [rsp + 0xa8]
call fcn.140003c44
nop
lea rcx, [rsp + 0x68]
call fcn.140003c44
movabs rax, 0x8000000000
jmp 0x1400650b2
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140066490
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret