Function at 0x1401798a0
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.140006eb0
movzx eax, al
test eax, eax
je 0x1401798d8
xor eax, eax
jmp 0x140179d06
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x18], 0
je 0x140179909
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 0x140179966
mov rbx, qword [rsp + 0xf0]
add rbx, 0x18
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.14000f8f0
mov rdx, rbx
mov rcx, rax
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x14017995f
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], 0
mov eax, 6
jmp 0x140179d06
xor eax, eax
jmp 0x140179d06
lea rcx, [rsp + 0x48]
call fcn.140002de0
nop
lea rcx, [rsp + 0x40]
call fcn.140002de0
nop
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xf0]
add rcx, 8
xor r8d, r8d
lea rdx, [0x140244664]
call fcn.140006780
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0xffffffff
je 0x1401799fb
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.140002db0
nop
lea rcx, [rsp + 0x78]
call fcn.140001490
lea rcx, [rsp + 0x48]
call fcn.140006eb0
movzx eax, al
test eax, eax
jne 0x140179b23
lea rcx, [rsp + 0x48]
call fcn.14000f8f0
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 0x140179b23
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x48]
call fcn.1400020d0
mov r8d, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.140006b20
mov qword [rsp + 0xb8], rax
lea rdx, [0x1402452e0]
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 0x140179b08
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.140002db0
nop
lea rcx, [rsp + 0x90]
call fcn.140001490
cmp qword [rsp + 0x58], 0
je 0x140179b23
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.140006eb0
movzx eax, al
test eax, eax
je 0x140179b52
mov qword [rsp + 0xd0], 0
jmp 0x140179b64
lea rcx, [rsp + 0x48]
call fcn.14000f8f0
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.14000f8f0
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.140006eb0
movzx eax, al
test eax, eax
je 0x140179bde
mov qword [rsp + 0xd8], 0
jmp 0x140179bf0
lea rcx, [rsp + 0x48]
call fcn.14000f8f0
mov qword [rsp + 0xd8], rax
mov edx, dword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140001dc0
mov rbx, rax
mov rcx, qword [rsp + 0xf0]
add rcx, 8
call fcn.14000f8f0
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 0x140179c63
mov rcx, qword [rsp + 0x68]
call fcn.140174ed0
mov r11, rax
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x18], r11
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140002620
cmp qword [rsp + 0x68], 0
je 0x140179c8e
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 0x140179cc8
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 0x140179d06
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 0x140179d06
add rsp, 0xe0
pop rbx
ret