Function at 0x14017e2e0
Capabilities:
Get domain controller name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xe0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140006ea0
movzx eax, al
test eax, eax
je 0x14017e318
xor eax, eax
jmp 0x14017e746
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x18], 0
je 0x14017e349
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rsp + 0xf0]
mov qword [r11 + 0x18], 0
mov rax, qword [rsp + 0xf0]
movzx eax, byte [rax + 0x10]
test eax, eax
je 0x14017e3a6
mov rbx, qword [rsp + 0xf0]
add rbx, 0x18
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140050200
mov rdx, rbx
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x14017e39f
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], 0
mov eax, 6
jmp 0x14017e746
xor eax, eax
jmp 0x14017e746
lea rcx, [rsp + 0x48]
call fcn.140002d10
nop
lea rcx, [rsp + 0x40]
call fcn.140002d10
nop
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xf0]
add rcx, 8
xor r8d, r8d
lea rdx, [0x140255ad4]
call fcn.140006800
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
je 0x14017e43b
mov rcx, qword [rsp + 0xf0]
add rcx, 8
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x78]
call fcn.140006ba0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x78]
call fcn.140007060
lea rcx, [rsp + 0x48]
call fcn.140006ea0
movzx eax, al
test eax, eax
jne 0x14017e563
lea rcx, [rsp + 0x48]
call fcn.140050200
mov rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x14017e563
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.140002020
mov r8d, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140006ba0
mov qword [rsp + 0xb8], rax
lea rdx, [0x140256750]
mov rcx, qword [rsp + 0xb8]
call fcn.140006dd0
mov byte [rsp + 0x80], al
lea rcx, [rsp + 0x88]
call fcn.140007060
movzx r11d, byte [rsp + 0x80]
test r11d, r11d
je 0x14017e548
lea rcx, [rsp + 0x48]
call fcn.1400019a0
mov r8d, eax
sub r8d, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140006ae0
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x48]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x90]
call fcn.140007060
cmp qword [rsp + 0x58], 0
je 0x14017e563
mov rcx, qword [rsp + 0x58]
call sub.NETAPI32.dll_NetApiBufferFree
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x48]
call fcn.140006ea0
movzx eax, al
test eax, eax
je 0x14017e592
mov qword [rsp + 0xd0], 0
jmp 0x14017e5a4
lea rcx, [rsp + 0x48]
call fcn.140050200
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140050200
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
xor r8d, r8d
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edx, dword [rsp + 0x74]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x48]
call fcn.140006ea0
movzx eax, al
test eax, eax
je 0x14017e61e
mov qword [rsp + 0xd8], 0
jmp 0x14017e630
lea rcx, [rsp + 0x48]
call fcn.140050200
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140001d50
mov rbx, rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140050200
mov rdx, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x74]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14017e6a3
mov rcx, qword [rsp + 0x68]
call fcn.140179920
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], r11
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140002550
cmp qword [rsp + 0x68], 0
je 0x14017e6ce
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x18], 0
je 0x14017e708
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140007060
nop
lea rcx, [rsp + 0x48]
call fcn.140007060
mov eax, dword [rsp + 0x98]
jmp 0x14017e746
mov dword [rsp + 0x9c], 6
lea rcx, [rsp + 0x40]
call fcn.140007060
nop
lea rcx, [rsp + 0x48]
call fcn.140007060
mov eax, dword [rsp + 0x9c]
jmp 0x14017e746
add rsp, 0xe0
pop rbx
ret