Function at 0x1400018f0
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 r14d, r14d
mov ebx, r14d
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], r14
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], r14
mov dword [r11 - 0xd8], r14d
movups xmmword [rsp + 0x228], xmm0
movups xmmword [rsp + 0x238], xmm0
movups xmmword [rsp + 0x248], xmm0
lea r9, [r11 - 0x248]
mov r8d, 1
lea rdx, [r11 - 0xd0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x140001a00
lea r8, [rsp + 0xc8]
mov edx, 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.140002f00
mov qword [rsp + 0xb0], r14
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 0x140001ab3
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2 + 4], bx
jne 0x140001a60
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 0x140001aa3
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rcx]
add rdx, 4
mov r8d, esi
mov rcx, rax
call fcn.14001a200
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x140001ac1
mov edx, eax
lea rcx, str._x__getDC:_DsGetDcName:__u_n
call fcn.140002f00
mov rdx, rbx
lea rcx, str._i__dcsync:_DC_would_be__s_n
call fcn.140002f00
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.140003200
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.1400025f0
mov edx, dword [rsp + 0x2b4]
test edx, edx
je 0x140001b69
lea rcx, str._i__dcsync:_DS_Replication_Epoch_is__u_n
call fcn.140002f00
lea r9, [rsp + 0x298]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xb8]
call fcn.1400028b0
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
mov ecx, 0x40
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], r14d
mov rax, qword [rsp + 0x140]
mov dword [rax + 8], 6
mov ebx, r14d
mov rax, qword [rsp + 0x140]
lea rdi, [0x140000000]
cmp dword [rax + 8], r14d
jbe 0x140001c54
nop dword [rax]
nop word [rax + rax]
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.140002c30
inc ebx
mov rax, qword [rsp + 0x140]
cmp ebx, dword [rax + 8]
jb 0x140001c20
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0xa8
lea rcx, [rsp + 0x170]
call fcn.140019e40
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 + 0x80], rax
test eax, eax
jne 0x14000207d
cmp dword [rsp + 0x220], 6
jne 0x140002034
mov r15, qword [rsp + 0x1f0]
mov ebx, r14d
mov dword [rsp + 0x60], ebx
cmp ebx, 8
jae 0x140001d42
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.140002c30
test eax, eax
jne 0x140001d37
mov rdx, qword [rdi]
lea rcx, str._x__ProcessGetNCChangesReply:_Unable_to_MakeAttid_for__S_n
call fcn.140002f00
mov eax, r14d
jmp 0x140001deb
inc ebx
lea rdi, [0x140000000]
jmp 0x140001ce7
mov rsi, r15
test r15, r15
je 0x140001de6
mov r15, qword [r15]
cmp qword [rsi + 0x20], 0
je 0x140001de1
mov edi, r14d
mov dword [rsp + 0x60], r14d
cmp edi, dword [rsi + 0x18]
jae 0x140001de1
mov edx, r14d
mov dword [rsp + 0x6c], edx
cmp edx, 8
jae 0x140001dd9
mov eax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x20]
lea r8, [rax + rcx*8]
mov ecx, edx
mov eax, dword [r8]
cmp dword [rsp + rcx*4 + 0x228], eax
jne 0x140001dd5
cmp qword [r8 + 0x10], 0
je 0x140001dd9
mov ebx, r14d
mov dword [rsp + 0x68], ebx
mov eax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x20]
lea rax, [rax + rcx*8]
cmp ebx, dword [rax + 8]
jae 0x140001dd9
mov ecx, ebx
shl rcx, 4
add rcx, qword [rax + 0x10]
cmp qword [rcx + 8], 0
je 0x140001dd1
call fcn.140002a10
test eax, eax
jne 0x140001dd1
mov eax, r14d
jmp 0x140001deb
inc ebx
jmp 0x140001d9b
inc edx
jmp 0x140001d6c
inc edi
mov dword [rsp + 0x60], edi
jmp 0x140001d64
jmp 0x140001d42
mov eax, 1
test eax, eax
je 0x140002026
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x80], rax
mov r13d, r14d
mov dword [rsp + 0x7c], r14d
nop dword [rax + rax]
cmp r13d, dword [rsp + 0x1e4]
jae 0x140001ff2
lea rdi, [rax + 0x18]
mov rsi, r14
mov qword [rsp + 0x98], r14
mov rbx, r14
mov qword [rsp + 0x90], rbx
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, str.1.2.840.113556.1.4.221
lea rcx, [rsp + 0x1d0]
call fcn.140002c30
test eax, eax
je 0x140001e8d
mov edx, r14d
mov r9d, dword [rsp + 0x70]
mov dword [rsp + 0x74], edx
cmp edx, dword [rdi]
jae 0x140001ea0
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r8, [rax + rcx*8]
cmp dword [r8], r9d
jne 0x140001e89
lea rbx, [r8 + 8]
mov qword [rsp + 0x90], rbx
jmp 0x140001ea0
inc edx
jmp 0x140001e60
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.140002f00
test rbx, rbx
je 0x140001eba
cmp dword [rbx], 1
jne 0x140001eba
mov rax, qword [rbx + 8]
mov rsi, qword [rax + 8]
mov qword [rsp + 0x98], rsi
test rsi, rsi
je 0x140001fd2
mov rsi, r14
mov qword [rsp + 0xa8], r14
mov r15, r14
mov qword [rsp + 0x88], r14
mov r12d, r14d
mov dword [rsp + 0x64], r14d
mov rbx, r14
mov qword [rsp + 0xa0], rbx
xor r9d, r9d
lea r8, [rsp + 0xb0]
lea rdx, str.1.2.840.113556.1.4.1
lea rcx, [rsp + 0x1d0]
call fcn.140002c30
test eax, eax
je 0x140001f47
mov edx, r14d
mov r9d, dword [rsp + 0xb0]
mov dword [rsp + 0x78], edx
cmp edx, dword [rdi]
jae 0x140001f5a
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r8, [rax + rcx*8]
cmp dword [r8], r9d
jne 0x140001f43
lea rbx, [r8 + 8]
mov qword [rsp + 0xa0], rbx
jmp 0x140001f5a
inc edx
jmp 0x140001f1a
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.140002f00
test rbx, rbx
je 0x140001f95
cmp dword [rbx], 1
jne 0x140001f95
mov rax, qword [rbx + 8]
mov rsi, qword [rax + 8]
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x88]
mov qword [rcx], rsi
mov eax, dword [rax]
lea rcx, [rsp + 0x64]
mov dword [rcx], eax
mov r12d, dword [rsp + 0x64]
mov r15, qword [rsp + 0x88]
test rsi, rsi
je 0x140001fc2
mov r8d, r12d
shr r8, 1
lea rax, [0x140023ee0]
mov qword [rsp + 0x20], rax
mov r9, r15
lea rdx, str._n_nObject_RDN___________:
lea rcx, str._s_.s_s
call fcn.140002f00
mov rdx, rdi
lea rcx, [rsp + 0x1d0]
call section..text
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
inc r13d
mov dword [rsp + 0x7c], r13d
jmp 0x140001e10
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 0x14000204f
lea rcx, str._x__dcsync:_Error_in_ProcessGetNCChangesReply_n
call fcn.140002f00
jmp 0x1400020a3
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.140002f00
mov edx, dword [rsp + 0x220]
cmp edx, 6
je 0x140002067
mov r8d, edx
lea rcx, str._x__free_DRS_MSG_GETCHGREPLY_data:_dwOutVersion_not_valid__0x_08x____u__n
jmp 0x140002089
lea rdx, [0x140002410]
lea rcx, [rsp + 0x170]
call fcn.140003160
jmp 0x14000208e
mov r8d, eax
mov edx, eax
lea rcx, str._x__dcsync:_GetNCChanges:_0x_08x___u__n
call fcn.140002f00
cmp dword [rsp + 0x1f8], 0
lea rdi, [0x140000000]
jne 0x140001c60
lea r8, [rsp + 0xc0]
lea rdx, [0x140024cfe]
lea rcx, [0x140025020]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0xb0], rax
jmp 0x1400020dd
mov rdx, qword [rsp + 0x158]
test rdx, rdx
je 0x140002136
mov ebx, r14d
mov r8d, dword [rsp + 0x150]
test r8d, r8d
je 0x14000212d
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rcx, qword [rdx + rcx*8 + 0x10]
test rcx, rcx
je 0x140002126
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x158]
mov r8d, dword [rsp + 0x150]
inc ebx
cmp ebx, r8d
jb 0x140002100
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]
test eax, eax
jne 0x14000215e
mov qword [rsp + 0xb8], r14
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.140003470
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