Function at 0x140173f40
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.140007b70
movzx eax, al
test eax, eax
je 0x140173f78
xor eax, eax
jmp 0x1401743a6
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x18], 0
je 0x140173fa9
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 0x140174006
mov rbx, qword [rsp + 0xf0]
add rbx, 0x18
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.1400012c0
mov rdx, rbx
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x140173fff
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], 0
mov eax, 6
jmp 0x1401743a6
xor eax, eax
jmp 0x1401743a6
lea rcx, [rsp + 0x48]
call fcn.140002d50
nop
lea rcx, [rsp + 0x40]
call fcn.140002d50
nop
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xf0]
add rcx, 8
xor r8d, r8d
lea rdx, [0x14023faf4]
call fcn.140006720
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
je 0x14017409b
mov rcx, qword [rsp + 0xf0]
add rcx, 8
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x78]
call fcn.140006ac0
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.140002d20
nop
lea rcx, [rsp + 0x78]
call fcn.140001470
lea rcx, [rsp + 0x48]
call fcn.140007b70
movzx eax, al
test eax, eax
jne 0x1401741c3
lea rcx, [rsp + 0x48]
call fcn.1400012c0
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 0x1401741c3
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.140002060
mov r8d, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140006ac0
mov qword [rsp + 0xb8], rax
lea rdx, [0x140240770]
mov rcx, qword [rsp + 0xb8]
call fcn.140006cf0
mov byte [rsp + 0x80], al
lea rcx, [rsp + 0x88]
call fcn.140001470
movzx r11d, byte [rsp + 0x80]
test r11d, r11d
je 0x1401741a8
lea rcx, [rsp + 0x48]
call fcn.1400019f0
mov r8d, eax
sub r8d, 2
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140006a00
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.140002d20
nop
lea rcx, [rsp + 0x90]
call fcn.140001470
cmp qword [rsp + 0x58], 0
je 0x1401741c3
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.140007b70
movzx eax, al
test eax, eax
je 0x1401741f2
mov qword [rsp + 0xd0], 0
jmp 0x140174204
lea rcx, [rsp + 0x48]
call fcn.1400012c0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.1400012c0
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.140007b70
movzx eax, al
test eax, eax
je 0x14017427e
mov qword [rsp + 0xd8], 0
jmp 0x140174290
lea rcx, [rsp + 0x48]
call fcn.1400012c0
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140001d70
mov rbx, rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.1400012c0
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 0x140174303
mov rcx, qword [rsp + 0x68]
call fcn.14016f580
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], r11
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140002590
cmp qword [rsp + 0x68], 0
je 0x14017432e
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 0x140174368
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140001470
nop
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x98]
jmp 0x1401743a6
mov dword [rsp + 0x9c], 6
lea rcx, [rsp + 0x40]
call fcn.140001470
nop
lea rcx, [rsp + 0x48]
call fcn.140001470
mov eax, dword [rsp + 0x9c]
jmp 0x1401743a6
add rsp, 0xe0
pop rbx
ret