Function at 0x1400018e0
Capabilities:
Check os version
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor r15d, r15d
mov ebx, r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x258], xmm0
movups xmmword [rsp + 0x268], xmm0
movups xmmword [r11 - 0x80], xmm0
mov qword [r11 - 0x70], rax
mov dword [r11 - 0x68], eax
mov qword [r11 - 0x230], r15
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
mov qword [r11 - 0x238], r15
mov dword [r11 - 0xd8], r15d
movups xmmword [rsp + 0x228], xmm0
movups xmmword [rsp + 0x238], xmm0
movups xmmword [rsp + 0x248], xmm0
lea r9, [r11 - 0x248]
lea r8d, [r15 + 1]
lea rdx, [r11 - 0xd0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x1400019ed
lea r8, [rsp + 0xc8]
lea edx, [r15 + 0xc]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rax, qword [rsp + 0xc8]
mov rdi, qword [rax + 0x18]
mov rdx, rdi
lea rcx, str._i__dcsync:_Domain_would_be__s_n
call fcn.140002ec0
mov qword [rsp + 0xb0], r15
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40020010
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x140001aa3
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2 + 4], bx
jne 0x140001a50
lea eax, [rax*2 + 2]
mov esi, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001a93
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rcx]
add rdx, 4
mov r8d, esi
mov rcx, rax
call fcn.140005530
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x140001ab1
mov edx, eax
lea rcx, str._x__getDC:_DsGetDcName:__u_n
call fcn.140002ec0
mov rdx, rbx
lea rcx, str._i__dcsync:_DC_would_be__s_n
call fcn.140002ec0
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
mov eax, 9
mov ecx, 0x10
cmp qword [rsp + 0xd0], 6
cmovb eax, ecx
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], eax
mov r8, rbx
call fcn.1400031c0
lea rax, [rsp + 0x298]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0xe0]
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0xb8]
call fcn.1400025b0
mov edx, dword [rsp + 0x2b4]
test edx, edx
je 0x140001b59
lea rcx, str._i__dcsync:_DS_Replication_Epoch_is__u_n
call fcn.140002ec0
lea r9, [rsp + 0x298]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xb8]
call fcn.140002870
lea rax, [rsp + 0x258]
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x128], 0x288030
mov dword [rsp + 0x12c], 0x3e8
mov qword [rsp + 0x130], 0xa00000
mov edx, 0x24
lea ecx, [rdx + 0x1c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x140], rax
mov dword [rax], 1
mov rax, qword [rsp + 0x140]
mov dword [rax + 4], r15d
mov rax, qword [rsp + 0x140]
mov dword [rax + 8], 6
mov ebx, r15d
mov rax, qword [rsp + 0x140]
lea rdi, [0x140000000]
cmp dword [rax + 8], r15d
jbe 0x140001c34
nop
mov edx, ebx
lea r8, [rax + 0xc]
lea r8, [r8 + rdx*4]
mov r9d, 1
mov rdx, qword [rdi + rdx*8 + 0x24570]
lea rcx, [rsp + 0x150]
call fcn.140002bf0
inc ebx
mov rax, qword [rsp + 0x140]
cmp ebx, dword [rax + 8]
jb 0x140001c00
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0xa8
lea rcx, [rsp + 0x170]
call fcn.140004660
lea rax, [rsp + 0x170]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov r8, qword [rsp + 0xc0]
lea rdx, [0x140024d48]
lea rcx, [0x140025020]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0xa8], rax
test eax, eax
jne 0x14000204b
cmp dword [rsp + 0x220], 6
jne 0x140002002
mov r12, qword [rsp + 0x1f0]
mov ebx, r15d
mov dword [rsp + 0x60], ebx
cmp ebx, 8
jae 0x140001d22
mov eax, ebx
lea rdi, [rdi + rax*8]
lea rdi, [rdi + 0x24c80]
lea r8, [rsp + 0x228]
lea r8, [r8 + rax*4]
xor r9d, r9d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x1d0]
call fcn.140002bf0
test eax, eax
jne 0x140001d17
mov rdx, qword [rdi]
lea rcx, str._x__ProcessGetNCChangesReply:_Unable_to_MakeAttid_for__S_n
call fcn.140002ec0
mov eax, r15d
jmp 0x140001dd1
inc ebx
lea rdi, [0x140000000]
jmp 0x140001cc7
mov rsi, r12
test r12, r12
je 0x140001dcc
mov r12, qword [r12]
mov r8, qword [rsi + 0x20]
test r8, r8
je 0x140001dc7
mov r14d, r15d
mov dword [rsp + 0x60], r15d
cmp r14d, dword [rsi + 0x18]
jae 0x140001dc7
mov eax, r15d
mov dword [rsp + 0x6c], eax
cmp eax, 8
jae 0x140001db9
mov ecx, r14d
lea rdx, [rcx + rcx*2]
lea rdi, [rdx*8]
mov edx, eax
mov ecx, dword [r8 + rdi]
cmp dword [rsp + rdx*4 + 0x228], ecx
jne 0x140001db5
cmp qword [r8 + rdi + 0x10], 0
je 0x140001dbd
mov ebx, r15d
mov dword [rsp + 0x68], ebx
cmp ebx, dword [rdi + r8 + 8]
jae 0x140001dbd
mov ecx, ebx
shl rcx, 4
add rcx, qword [rdi + r8 + 0x10]
cmp qword [rcx + 8], 0
je 0x140001db1
call fcn.1400029d0
test eax, eax
jne 0x140001dad
mov eax, r15d
jmp 0x140001dd1
mov r8, qword [rsi + 0x20]
inc ebx
jmp 0x140001d82
inc eax
jmp 0x140001d50
mov r8, qword [rsi + 0x20]
inc r14d
mov dword [rsp + 0x60], r14d
jmp 0x140001d47
jmp 0x140001d22
mov eax, 1
test eax, eax
je 0x140001ff4
mov r13, qword [rsp + 0x1f0]
mov r12d, r15d
mov dword [rsp + 0x7c], r15d
nop dword [rax]
cmp r12d, dword [rsp + 0x1e4]
jae 0x140001fc0
mov rsi, r15
mov qword [rsp + 0x90], r15
mov rbx, r15
mov qword [rsp + 0x88], rbx
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, str.1.2.840.113556.1.4.221
lea rcx, [rsp + 0x1d0]
call fcn.140002bf0
test eax, eax
je 0x140001e6b
mov edx, r15d
mov r9d, dword [rsp + 0x70]
mov dword [rsp + 0x74], edx
cmp edx, dword [r13 + 0x18]
jae 0x140001e7e
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r13 + 0x20]
lea r8, [rax + rcx*8]
cmp dword [r8], r9d
jne 0x140001e67
lea rbx, [r8 + 8]
mov qword [rsp + 0x88], rbx
jmp 0x140001e7e
inc edx
jmp 0x140001e3c
lea rdx, str.1.2.840.113556.1.4.221
lea rcx, str._x__findAttr:_Unable_to_get_an_ATTRTYP_for__S_n
call fcn.140002ec0
test rbx, rbx
je 0x140001e98
cmp dword [rbx], 1
jne 0x140001e98
mov rax, qword [rbx + 8]
mov rsi, qword [rax + 8]
mov qword [rsp + 0x90], rsi
test rsi, rsi
je 0x140001faf
mov rsi, r15
mov qword [rsp + 0xa0], r15
mov r14, r15
mov qword [rsp + 0x80], r15
mov dword [rsp + 0x64], r15d
xor ebx, ebx
mov qword [rsp + 0x98], rbx
xor r9d, r9d
lea r8, [rsp + 0xb0]
lea rdx, str.1.2.840.113556.1.4.1
lea rcx, [rsp + 0x1d0]
call fcn.140002bf0
test eax, eax
je 0x140001f20
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov dword [rsp + 0x78], edx
cmp edx, dword [r13 + 0x18]
jae 0x140001f33
lea rcx, [rdx + rdx*2]
mov rax, qword [r13 + 0x20]
lea r8, [rax + rcx*8]
cmp dword [r8], r9d
jne 0x140001f1c
lea rbx, [r8 + 8]
mov qword [rsp + 0x98], rbx
jmp 0x140001f33
inc edx
jmp 0x140001ef3
lea rdx, str.1.2.840.113556.1.4.1
lea rcx, str._x__findAttr:_Unable_to_get_an_ATTRTYP_for__S_n
call fcn.140002ec0
test rbx, rbx
je 0x140001f6e
cmp dword [rbx], 1
jne 0x140001f6e
mov rax, qword [rbx + 8]
mov rsi, qword [rax + 8]
mov qword [rsp + 0xa0], rsi
lea rcx, [rsp + 0x80]
mov qword [rcx], rsi
mov eax, dword [rax]
lea rcx, [rsp + 0x64]
mov dword [rcx], eax
mov r15d, dword [rsp + 0x64]
mov r14, qword [rsp + 0x80]
test rsi, rsi
je 0x140001f9b
mov r8d, r15d
shr r8, 1
lea rax, [0x140023ee0]
mov qword [rsp + 0x20], rax
mov r9, r14
lea rdx, str._n_nObject_RDN___________:
lea rcx, str._s_.s_s
call fcn.140002ec0
lea rdx, [r13 + 0x18]
lea rcx, [rsp + 0x1d0]
call section..text
xor r15d, r15d
mov r13, qword [r13]
inc r12d
mov dword [rsp + 0x7c], r12d
jmp 0x140001df0
movaps xmm0, xmmword [rsp + 0x180]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmm1, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0x108], xmm1
movsd xmm0, qword [rsp + 0x1c0]
movsd qword [rsp + 0x118], xmm0
jmp 0x14000201d
lea rcx, str._x__dcsync:_Error_in_ProcessGetNCChangesReply_n
call fcn.140002ec0
jmp 0x140002071
mov r8d, dword [rsp + 0x1e4]
mov edx, dword [rsp + 0x220]
lea rcx, str._x__dcsync:_DRSGetNCChanges__invalid_dwOutVersion___u__and_or_cNumObjects___u__n
call fcn.140002ec0
mov edx, dword [rsp + 0x220]
cmp edx, 6
je 0x140002035
mov r8d, edx
lea rcx, str._x__free_DRS_MSG_GETCHGREPLY_data:_dwOutVersion_not_valid__0x_08x____u__n
jmp 0x140002057
lea rdx, [0x1400023e0]
lea rcx, [rsp + 0x170]
call fcn.140003120
jmp 0x14000205c
mov r8d, eax
mov edx, eax
lea rcx, str._x__dcsync:_GetNCChanges:_0x_08x___u__n
call fcn.140002ec0
cmp dword [rsp + 0x1f8], 0
lea rdi, [0x140000000]
jne 0x140001c40
lea r8, [rsp + 0xc0]
lea rdx, [0x140024cfe]
lea rcx, [0x140025020]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0xb0], rax
jmp 0x1400020ab
mov rdx, qword [rsp + 0x158]
test rdx, rdx
je 0x140002106
mov ebx, r15d
mov r8d, dword [rsp + 0x150]
test r8d, r8d
je 0x1400020fd
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rcx, qword [rdx + rcx*8 + 0x10]
test rcx, rcx
je 0x1400020f6
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x158]
mov r8d, dword [rsp + 0x150]
inc ebx
cmp ebx, r8d
jb 0x1400020d0
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0xb8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov rcx, qword [rsp + 0xb8]
test eax, eax
cmove rcx, r15
mov qword [rsp + 0xb8], rcx
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, 1
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140003430
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret