Function at 0x180020a30
Capabilities:
Get domain controller name
Get domain information
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push r12
lea rbp, [rsp - 0x30a0]
mov eax, 0x31a0
call fcn.18002add0
sub rsp, rax
mov rax, qword [0x1800990e0]
xor rax, rsp
mov qword [rbp + 0x3080], rax
mov r12, rcx
lea rcx, [rbp + 0x881]
xor edx, edx
mov r8d, 0x27ff
mov byte [rbp + 0x880], 0
call fcn.1800292e0
xor esi, esi
lea rcx, [rbp + 0x81]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x70], rsi
mov byte [rbp + 0x80], sil
call fcn.1800292e0
lea rcx, [rbp + 0x281]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x280], sil
call fcn.1800292e0
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x18002138a
lea rcx, [rbp - 0x7f]
xor edx, edx
mov r8d, 0xff
mov byte [rbp - 0x80], sil
call fcn.1800292e0
lea rcx, [rbp + 0x481]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x480], sil
call fcn.1800292e0
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180021399
mov qword [rsp + 0x31c8], rbx
mov qword [rsp + 0x31d0], rdi
mov qword [rsp + 0x31d8], r13
or rdi, 0xffffffffffffffff
lea rcx, [rbp + 0x680]
mov edx, 0x100
mov r9, rdi
mov qword [rsp + 0x3198], r14
mov qword [rsp + 0x3190], r15
call fcn.18002bfb0
lea r8, [rsp + 0x58]
lea edx, [rsi + 1]
xor ecx, ecx
mov qword [rsp + 0x58], rsi
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
jne 0x180020bb0
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0x280]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x30], rsi
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r8, [rbp + 0x280]
lea rcx, [rbp - 0x80]
mov r9, rdi
mov edx, 0x100
call fcn.18002a5b4
jmp 0x180020bc7
cmp dword [0x18009caf4], 6
jl 0x180020bc7
lea rcx, [0x180072c18]
mov edx, eax
call fcn.1800169b0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180020bd6
call sub.NETAPI32.dll_DsRoleFreeMemory
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x680]
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp - 0x80]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], sil
jne 0x180020c10
test rax, rax
jne 0x180020c36
lea r8, [rbp + 0x80]
lea rcx, [rbp - 0x80]
mov r9, rdi
mov edx, 0x100
call fcn.18002a5b4
lea rax, [rbp - 0x80]
lea r9, [0x180072ce8]
lea rcx, [rbp + 0x480]
mov r8, rdi
mov edx, 0x100
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp + 0x480]
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x180020c64
lea rdx, [rbp + 0x480]
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180020c8f
call sub.NETAPI32.dll_NetApiBufferFree
lea rcx, [rbp + 0x381]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x380], sil
call fcn.1800292e0
lea rcx, [rbp + 0x181]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x180], sil
call fcn.1800292e0
lea r8, [rsp + 0x68]
lea rcx, [rbp + 0x680]
xor edx, edx
mov ebx, esi
mov qword [rsp + 0x68], rsi
call sub.NETAPI32.dll_NetUserModalsGet
test eax, eax
jne 0x180020d13
cmp dword [0x18009caf4], 6
jl 0x180020d08
mov rcx, qword [rsp + 0x68]
mov eax, 0xc22e4507
mul dword [rcx + 4]
lea rcx, str.Maximum_password_age__d_:__d_n
shr edx, 0x10
call fcn.1800169b0
mov rcx, qword [rsp + 0x68]
mov r15d, dword [rcx + 4]
jmp 0x180020d30
cmp dword [0x18009caf4], 6
jl 0x180020d28
lea rcx, str.Could_not_find_MaxPasswordAge
call fcn.1800169b0
mov rcx, qword [rsp + 0x68]
mov r15d, edi
test rcx, rcx
je 0x180020d40
call sub.NETAPI32.dll_NetApiBufferFree
nop word [rax + rax]
lea rax, [rsp + 0x58]
lea rcx, [rbp + 0x680]
mov r9d, 0x2710
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x28], rax
mov edx, 1
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x20], 0xffffffff
call sub.NETAPI32.dll_NetQueryDisplayInformation
mov r13d, eax
cmp eax, 5
je 0x1800212a8
cmp dword [rsp + 0x60], 0
mov r14d, esi
jbe 0x180021287
mov rsi, qword [rsp + 0x58]
add rsi, 0x18
nop
mov r8, qword [rsi - 0x18]
xor ebx, ebx
lea rax, [rbp + 0x380]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r9d, edi
mov edx, 0x200
xor ecx, ecx
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [rsi - 0x10]
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x180]
mov qword [rsp + 0x30], rbx
mov r9d, edi
mov edx, 0x200
xor ecx, ecx
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x64], 0x100
lea rcx, [rbp + 0x280]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], bl
jne 0x180020e20
test rax, rax
je 0x180020e59
lea rcx, [rbp + 0x80]
mov rax, rdi
inc rax
cmp byte [rcx + rax], bl
jne 0x180020e37
test rax, rax
je 0x180020e59
lea rax, [rbp + 0x80]
lea r9, [rbp + 0x280]
mov qword [rsp + 0x20], rax
jmp 0x180020e61
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp + 0x580]
lea rcx, [rbp + 0x380]
call fcn.180024550
lea rax, [rbp + 0x180]
cmp byte [rbp + 0x180], bl
je 0x180020eaa
nop dword [rax + rax]
movzx edx, byte [rax]
lea ecx, [rdx - 9]
test cl, 0xfa
jne 0x180020ea3
cmp dl, 0xe
je 0x180020ea3
mov byte [rax], 0x20
inc rax
cmp byte [rax], bl
jne 0x180020e90
lea rax, [rbp + 0x580]
lea r9, str._s_t_S___s__t_s
lea rcx, [rbp + 0x880]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x180]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov rax, qword [rsi]
mov edx, 0x2800
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x380]
mov qword [rsp + 0x20], rax
call fcn.180029e64
mov rdx, qword [rsi - 0x18]
lea r9, [rsp + 0x50]
lea rcx, [rbp + 0x680]
mov r8d, 2
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x18002120f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002120f
test byte [rcx + 0x28], 2
je 0x180020f48
lea r8, str._tACCOUNTDISABLE
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x28], 0x20
je 0x180020f6e
lea r8, str._tPASSWD_NOTREQD
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x28], 0x40
je 0x180020f94
lea r8, str._tPASSWD_CANT_CHANGE
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x28], 0x10
je 0x180020fba
lea r8, str._tLOCKOUT
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x10000
je 0x180020fe3
lea r8, str._tDONT_EXPIRE_PASSWD
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x800
je 0x18002100c
lea r8, str._tINTERDOMAIN_TRUST_ACCOUNT
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x2000
je 0x180021035
lea r8, str._tSERVER_TRUST_ACCOUNT
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x1000
je 0x18002105e
lea r8, str._tWORKSTATION_TRUST_ACCOUNT
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x100
je 0x180021087
lea r8, str._tTEMP_DUPLICATE_ACCOUNT
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test byte [rcx + 0x28], 0x80
je 0x1800210ad
lea r8, str._tENCRYPTED_TEXT_PASSWORD_ALLOWED
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x100000
je 0x1800210d6
lea r8, str._tNOT_DELEGATED
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x40000
je 0x1800210ff
lea r8, str._tSMARTCARD_REQUIRED
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x200000
je 0x180021128
lea r8, str._tUSE_DES_KEY_ONLY
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x400000
je 0x180021151
lea r8, str._tDONT_REQUIRE_PREAUTH
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x80000
je 0x18002117a
lea r8, str._tTRUSTED_FOR_DELEGATION
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x800000
je 0x1800211a3
lea r8, str._tPASSWORD_EXPIRED
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
test dword [rcx + 0x28], 0x1000000
je 0x1800211cc
lea r8, str._tTRUSTED_TO_AUTHENTICATE_FOR_DELEGATION
lea rcx, [rbp + 0x880]
mov r9, rdi
mov edx, 0x2800
call fcn.180029f1c
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + 0x60]
lea r9, str._s_t_d:_d:_d:_d_n
mov r8, rdi
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x68]
mov edx, 0x2800
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x880]
lea rcx, [rbp + 0x880]
mov qword [rsp + 0x20], rax
call fcn.180029e64
jmp 0x18002123b
lea rax, [rbp + 0x880]
lea r9, str._s_t_1:_d:_1:_1_n
lea rcx, [rbp + 0x880]
mov r8, rdi
mov edx, 0x2800
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.180029e64
lea rax, [rbp + 0x880]
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x180021245
lea rdx, [rbp + 0x880]
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180021270
call sub.NETAPI32.dll_NetApiBufferFree
mov ebx, dword [rsi + 0xc]
inc r14d
add rsi, 0x28
cmp r14d, dword [rsp + 0x60]
jb 0x180020da0
xor esi, esi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180021296
call sub.NETAPI32.dll_NetApiBufferFree
cmp r13d, 0xea
je 0x180020d40
jmp 0x18002135b
movaps xmm0, xmmword [str.Access_Denied._Cannot_query_domain_users_while_SNARE_is_running_with_the_privileges_of_the_local_administrator]
movaps xmm1, xmmword [0x180072d80]
mov eax, dword [0x180072dd8]
mov dword [rbp - 0x18], eax
movzx eax, word [0x180072ddc]
lea rcx, [rbp - 0x11]
movaps xmmword [rbp - 0x80], xmm0
movaps xmm0, xmmword [0x180072d90]
movaps xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x14], ax
movzx eax, byte [0x180072dde]
xor edx, edx
movaps xmm1, xmmword [0x180072da0]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x180072db0]
mov r8d, 0x91
mov byte [rbp - 0x12], al
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x180072dc0]
movaps xmmword [rbp - 0x40], xmm0
movsd xmm0, qword [0x180072dd0]
movsd qword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm1
call fcn.1800292e0
lea rax, [rbp - 0x80]
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180021330
lea rdx, [rbp - 0x80]
mov r8, rdi
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18002135b
call sub.NETAPI32.dll_NetApiBufferFree
mov r15, qword [rsp + 0x3190]
mov r14, qword [rsp + 0x3198]
mov r13, qword [rsp + 0x31d8]
mov rdi, qword [rsp + 0x31d0]
mov rbx, qword [rsp + 0x31c8]
mov eax, 1
jmp 0x18002139b
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180021399
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov rcx, qword [rbp + 0x3080]
xor rcx, rsp
call fcn.1800292b0
add rsp, 0x31a0
pop r12
pop rsi
pop rbp
ret