Function at 0x140174010
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.140006e20
movzx eax, al
test eax, eax
je 0x140174048
xor eax, eax
jmp 0x140174476
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x18], 0
je 0x140174079
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 0x1401740d6
mov rbx, qword [rsp + 0xf0]
add rbx, 0x18
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140023510
mov rdx, rbx
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x1401740cf
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], 0
mov eax, 6
jmp 0x140174476
xor eax, eax
jmp 0x140174476
lea rcx, [rsp + 0x48]
call fcn.140002db0
nop
lea rcx, [rsp + 0x40]
call fcn.140002db0
nop
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xf0]
add rcx, 8
xor r8d, r8d
lea rdx, [0x14023eaf4]
call fcn.140006780
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
je 0x14017416b
mov rcx, qword [rsp + 0xf0]
add rcx, 8
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x78]
call fcn.140006b20
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.140002d80
nop
lea rcx, [rsp + 0x78]
call fcn.140001490
lea rcx, [rsp + 0x48]
call fcn.140006e20
movzx eax, al
test eax, eax
jne 0x140174293
lea rcx, [rsp + 0x48]
call fcn.140023510
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 0x140174293
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.1400020a0
mov r8d, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140006b20
mov qword [rsp + 0xb8], rax
lea rdx, [0x14023f770]
mov rcx, qword [rsp + 0xb8]
call fcn.140006d50
mov byte [rsp + 0x80], al
lea rcx, [rsp + 0x88]
call fcn.140001490
movzx r11d, byte [rsp + 0x80]
test r11d, r11d
je 0x140174278
lea rcx, [rsp + 0x48]
call fcn.140001a40
mov r8d, eax
sub r8d, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140006a60
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.140002d80
nop
lea rcx, [rsp + 0x90]
call fcn.140001490
cmp qword [rsp + 0x58], 0
je 0x140174293
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.140006e20
movzx eax, al
test eax, eax
je 0x1401742c2
mov qword [rsp + 0xd0], 0
jmp 0x1401742d4
lea rcx, [rsp + 0x48]
call fcn.140023510
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140023510
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.140006e20
movzx eax, al
test eax, eax
je 0x14017434e
mov qword [rsp + 0xd8], 0
jmp 0x140174360
lea rcx, [rsp + 0x48]
call fcn.140023510
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140001dd0
mov rbx, rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.140023510
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 0x1401743d3
mov rcx, qword [rsp + 0x68]
call fcn.14016f650
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], r11
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.1400025f0
cmp qword [rsp + 0x68], 0
je 0x1401743fe
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 0x140174438
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140001490
nop
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x98]
jmp 0x140174476
mov dword [rsp + 0x9c], 6
lea rcx, [rsp + 0x40]
call fcn.140001490
nop
lea rcx, [rsp + 0x48]
call fcn.140001490
mov eax, dword [rsp + 0x9c]
jmp 0x140174476
add rsp, 0xe0
pop rbx
ret