Function at 0x7ffe046300dc
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r13, qword [rbp + 0x70]
xor r15d, r15d
cmp dword [0x7ffe0466eeac], r15d
mov r14, r9
mov rsi, r8
mov qword [rbp + 0x48], r15
mov rdi, rdx
mov ebx, r15d
mov r12d, r15d
mov eax, 0x100
je 0x7ffe04630147
cmp dword [0x7ffe0466eea8], r15d
je 0x7ffe04630147
test qword [0x7ffe0466eea0], rax
je 0x7ffe04630147
mov r8, rcx
lea rdx, str.GetDefaultLdapServer_called_with_DomainName__S._n
mov ecx, eax
call fcn.7ffe04636b9c
mov rcx, qword [rbp + 0x40]
test rdi, rdi
je 0x7ffe046303df
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x7ffe046303df
test rsi, rsi
je 0x7ffe046303df
test r13, r13
je 0x7ffe046303df
mov byte [r13], r15b
cmp dword [rax], r15d
jbe 0x7ffe0463038a
movzx eax, word [rbp + 0x78]
mov edx, 0xcc4
sub ax, dx
mov edx, 1
cmp ax, dx
jbe 0x7ffe04630199
mov eax, 0x40008000
jmp 0x7ffe046301a5
mov r15, qword [rbp + 0x88]
mov eax, 0x40008040
or eax, dword [rbp + 0x68]
lea rdx, [rbp + 0x48]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
mov rdx, rcx
mov dword [rsp + 0x20], eax
xor ecx, ecx
xor r8d, r8d
call qword [sym.imp.logoncli.dll_DsGetDcNameW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x7ffe04630383
mov rcx, qword [rbp + 0x48]
mov r12d, 0x7473484c
mov r8d, r12d
xor edx, edx
mov rcx, qword [rcx + 8]
add rcx, 4
call fcn.7ffe0465afdc
mov qword [rdi], rax
test rax, rax
jne 0x7ffe04630205
lea ebx, [rax + 0xe]
xor r15d, r15d
jmp 0x7ffe0463038d
mov rax, qword [rbp + 0x48]
mov r8d, r12d
xor edx, edx
mov rcx, qword [rax]
add rcx, 4
call fcn.7ffe0465afdc
mov qword [rsi], rax
test rax, rax
jne 0x7ffe0463023d
mov rcx, qword [rdi]
mov edx, r12d
call fcn.7ffe04621ee0
xor r15d, r15d
mov qword [rdi], r15
mov ebx, 0xe
jmp 0x7ffe0463038d
test r14, r14
je 0x7ffe04630284
mov rcx, qword [rbp + 0x48]
mov r8d, r12d
xor edx, edx
mov rcx, qword [rcx + 0x28]
call fcn.7ffe0465afdc
mov qword [r14], rax
test rax, rax
jne 0x7ffe04630284
mov rcx, qword [rbp + 0x48]
cmp qword [rcx + 0x28], rax
je 0x7ffe04630288
mov rcx, qword [rsi]
mov edx, r12d
call fcn.7ffe04621ee0
mov rcx, qword [rdi]
mov edx, r12d
call fcn.7ffe04621ee0
xor r15d, r15d
mov qword [rsi], r15
jmp 0x7ffe04630230
mov rcx, qword [rbp + 0x48]
test r15, r15
je 0x7ffe046302dc
mov rcx, qword [rcx + 0x30]
mov r8d, r12d
xor edx, edx
call fcn.7ffe0465afdc
mov qword [r15], rax
xor r15d, r15d
test rax, rax
jne 0x7ffe046302dc
mov rax, qword [rbp + 0x48]
cmp qword [rax + 0x30], r15
je 0x7ffe046302dc
mov rcx, qword [rsi]
mov edx, r12d
call fcn.7ffe04621ee0
mov rcx, qword [rdi]
mov edx, r12d
call fcn.7ffe04621ee0
mov rcx, qword [r14]
mov edx, r12d
call fcn.7ffe04621ee0
mov qword [rsi], r15
mov qword [r14], r15
jmp 0x7ffe04630230
lfence
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x7ffe04630308
mov rdx, qword [rax + 0x48]
test rdx, rdx
je 0x7ffe04630308
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
sete al
jmp 0x7ffe0463030b
mov al, r15b
mov byte [r13], al
mov rax, qword [rbp + 0x48]
mov ecx, dword [rax + 0x38]
mov rax, qword [rbp + 0x80]
mov dword [rax], ecx
mov rax, qword [rsi]
test rax, rax
je 0x7ffe0463033f
jmp 0x7ffe0463032d
add rax, 2
cmp word [rax], r15w
jne 0x7ffe04630329
cmp word [rax - 2], 0x2e
jne 0x7ffe0463033f
mov word [rax - 2], r15w
test r14, r14
je 0x7ffe04630367
lfence
mov rax, qword [r14]
test rax, rax
je 0x7ffe04630367
jmp 0x7ffe04630355
add rax, 2
cmp word [rax], r15w
jne 0x7ffe04630351
cmp word [rax - 2], 0x2e
jne 0x7ffe04630367
mov word [rax - 2], r15w
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.netutils.dll_NetApiBufferFree]
nop dword [rax + rax]
mov qword [rbp + 0x48], r15
mov r12d, 1
jmp 0x7ffe04630386
xor r15d, r15d
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x7ffe046303a6
call qword [sym.imp.netutils.dll_NetApiBufferFree]
nop dword [rax + rax]
mov qword [rbp + 0x48], r15
cmp dword [0x7ffe0466eeac], r15d
je 0x7ffe046303db
cmp dword [0x7ffe0466eea8], r15d
je 0x7ffe046303db
mov eax, 0x100
test qword [0x7ffe0466eea0], rax
je 0x7ffe046303db
mov r9, qword [rbp + 0x40]
lea rdx, str.GetDefaultLdapServer_returned_0x_x_for_DomainName__S._n
mov r8d, ebx
mov ecx, eax
call fcn.7ffe04636b9c
mov eax, ebx
jmp 0x7ffe046303e4
mov eax, 0x57
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret