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, 0x330
mov rax, qword [0x140029008]
xor rax, rsp
mov qword [rsp + 0x320], rax
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x2a8], xmm0
movups xmmword [rsp + 0x2b8], xmm0
movups xmmword [r11 - 0x80], xmm0
mov qword [r11 - 0x70], rax
mov dword [r11 - 0x68], eax
mov qword [r11 - 0x250], r12
movups xmmword [rsp + 0x130], xmm0
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm0
movups xmmword [rsp + 0x160], xmm0
movups xmmword [rsp + 0x170], xmm0
movups xmmword [rsp + 0x180], xmm0
movups xmmword [rsp + 0x190], xmm0
movups xmmword [rsp + 0x1a0], xmm0
mov qword [r11 - 0x258], r12
mov dword [r11 - 0xd8], r12d
movups xmmword [rsp + 0x278], xmm0
movups xmmword [rsp + 0x288], xmm0
movups xmmword [rsp + 0x298], xmm0
lea r9, [r11 - 0x268]
lea r8d, [r12 + 1]
lea rdx, [r11 - 0xd0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
js 0x1400019ff
lea r8, [rsp + 0xf8]
lea edx, [r12 + 0xc]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_LsaQueryInformationPolicy]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rax, qword [rsp + 0xf8]
mov rdi, qword [rax + 0x18]
mov rdx, rdi
lea rcx, str._i__dcsync:_Domain_would_be__s_n
call fcn.140003220
mov qword [rsp + 0xe0], r12
lea rax, [rsp + 0xe0]
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 + 0xe0]
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 + 0xe0]
mov rdx, qword [rcx]
add rdx, 4
mov r8d, esi
mov rcx, rax
call fcn.140005640
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x140001ac1
mov edx, eax
lea rcx, str._x__getDC:_DsGetDcName:__u_n
call fcn.140003220
mov rdx, rbx
lea rcx, str._i__dcsync:_DC_would_be__s_n
call fcn.140003220
lea r8, [rsp + 0x1b0]
lea rdx, [rsp + 0x1b8]
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
mov eax, 9
mov ecx, 0x10
cmp qword [rsp + 0x120], 6
cmovb eax, ecx
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x30], eax
mov r8, rbx
call fcn.140003520
lea rax, [rsp + 0x2e8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x130]
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0xe8]
call fcn.140002910
mov edx, dword [rsp + 0x304]
test edx, edx
je 0x140001b69
lea rcx, str._i__dcsync:_DS_Replication_Epoch_is__u_n
call fcn.140003220
lea r9, [rsp + 0x2e8]
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xe8]
call fcn.140002bd0
lea rax, [rsp + 0x2a8]
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x178], 0x288030
mov dword [rsp + 0x17c], 0x3e8
mov qword [rsp + 0x180], 0xa00000
mov edx, 0x24
lea ecx, [rdx + 0x1c]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x190], rax
mov dword [rax], 1
mov rax, qword [rsp + 0x190]
mov dword [rax + 4], r12d
mov rax, qword [rsp + 0x190]
mov dword [rax + 8], 6
mov ebx, r12d
mov rax, qword [rsp + 0x190]
lea rdi, [0x140000000]
cmp dword [rax + 8], r12d
jbe 0x140001c44
nop
mov edx, ebx
lea r8, [rax + 0xc]
lea r8, [r8 + rdx*4]
mov r9d, 1
mov rdx, qword [rdi + rdx*8 + 0x244f0]
lea rcx, [rsp + 0x1a0]
call fcn.140002f50
inc ebx
mov rax, qword [rsp + 0x190]
cmp ebx, dword [rax + 8]
jb 0x140001c10
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0xa8
lea rcx, [rsp + 0x1c0]
call fcn.140004990
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 8
mov r8, qword [rsp + 0xf0]
lea rdx, [0x140024cc8]
lea rcx, [0x140024fa0]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0xc0], rax
test eax, eax
jne 0x14000239e
cmp dword [rsp + 0x270], 6
jne 0x140002355
mov r15, qword [rsp + 0x240]
mov ebx, r12d
mov dword [rsp + 0x6c], ebx
cmp ebx, 8
jae 0x140001d40
mov eax, ebx
lea rdi, [rdi + rax*8]
lea rdi, [rdi + 0x24c00]
lea r8, [rsp + 0x278]
lea r8, [r8 + rax*4]
xor r9d, r9d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x220]
call fcn.140002f50
test eax, eax
jne 0x140001d30
mov rdx, qword [rdi]
lea rcx, str._x__ProcessGetNCChangesReply:_Unable_to_MakeAttid_for__S_n
call fcn.140003220
lea rcx, str._x__dcsync:_Error_in_ProcessGetNCChangesReply_n
call fcn.140003220
jmp 0x1400023bd
inc ebx
lea rdi, [0x140000000]
jmp 0x140001cd7
mov rsi, r15
test r15, r15
je 0x140001e05
mov r15, qword [r15]
cmp qword [rsi + 0x20], 0
je 0x140001e00
mov r14d, r12d
mov dword [rsp + 0x6c], r12d
cmp r14d, dword [rsi + 0x18]
jae 0x140001e00
mov edx, r12d
mov dword [rsp + 0x94], edx
cmp edx, 8
jae 0x140001df3
mov eax, r14d
lea rcx, [rax + rax*2]
lea rdi, [rcx*8]
mov r8, qword [rsi + 0x20]
mov ecx, edx
mov eax, dword [r8 + rdi]
cmp dword [rsp + rcx*4 + 0x278], eax
jne 0x140001dec
cmp qword [r8 + rdi + 0x10], 0
je 0x140001df3
mov ebx, r12d
mov dword [rsp + 0x90], ebx
mov rax, qword [rsi + 0x20]
cmp ebx, dword [rax + rdi + 8]
jae 0x140001df3
mov ecx, ebx
shl rcx, 4
mov rax, qword [rax + rdi + 0x10]
add rcx, rax
cmp qword [rcx + 8], 0
je 0x140001de8
call fcn.140002d30
test eax, eax
jne 0x140001de8
lea rcx, str._x__dcsync:_Error_in_ProcessGetNCChangesReply_n
call fcn.140003220
jmp 0x1400023bd
inc ebx
jmp 0x140001da8
inc edx
jmp 0x140001d6f
inc r14d
mov dword [rsp + 0x6c], r14d
jmp 0x140001d62
jmp 0x140001d40
mov rcx, qword [rsp + 0x240]
mov qword [rsp + 0xc0], rcx
mov eax, r12d
mov dword [rsp + 0x78], eax
cmp eax, dword [rsp + 0x234]
jae 0x14000231a
lea rdi, [rcx + 0x18]
mov qword [rsp + 0xe0], rdi
mov rbx, r12
mov qword [rsp + 0x80], rbx
mov r15, r12
mov qword [rsp + 0xd8], r12
mov r14d, r12d
mov dword [rsp + 0xa4], r12d
mov edx, 0x2e
lea rcx, str.1.2.840.113556.1.4.221
call fcn.14000465c
test rax, rax
je 0x140001ff0
lea rcx, [rax + 1]
cmp byte [rcx], 0
je 0x140001ff0
xor r8d, r8d
xor edx, edx
call fcn.140007bd0
mov ebx, eax
mov dword [rsp + 0xd0], eax
mov r13d, eax
and r13d, 0x3fff
mov dword [rsp + 0x60], r13d
cmp r13d, 0x4000
jb 0x140001eb4
add r13d, 0x8000
mov dword [rsp + 0x60], r13d
mov eax, r12d
mov dword [rsp + 0x98], eax
mov rcx, qword [0x14002ac88]
test rcx, rcx
je 0x140001ef7
mov word [rsp + 0x100], r12w
mov qword [rsp + 0x108], r12
lea r8, [rsp + 0x100]
lea rdx, str.1.2.840.113556.1.4.221
call qword [sym.imp.msasn1.dll_ASN1BERDotVal2Eoid]
mov dword [rsp + 0x98], eax
test eax, eax
je 0x140001feb
cmp ebx, 0x80
sbb ax, ax
add ax, 2
movzx esi, word [rsp + 0x100]
sub si, ax
mov word [rsp + 0x100], si
mov ebx, r12d
mov r13d, dword [rsp + 0x220]
mov r12, qword [rsp + 0x108]
mov dword [rsp + 0x9c], ebx
cmp ebx, r13d
jae 0x140001f7f
mov eax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x228]
lea rdi, [rax + rcx*8]
movzx eax, si
cmp dword [rdi + 8], eax
jne 0x140001f7b
movzx r8d, si
mov rdx, r12
mov rcx, qword [rdi + 0x10]
call fcn.14001a500
test eax, eax
jne 0x140001f7b
lea r14d, [rax + 1]
mov eax, dword [rdi]
mov dword [rsp + 0xa0], eax
jmp 0x140001f86
inc ebx
jmp 0x140001f32
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0xa4], r14d
test r14d, r14d
je 0x140001fa5
shl eax, 0x10
mov r13d, dword [rsp + 0x60]
or r13d, eax
mov dword [rsp + 0x60], r13d
jmp 0x140001fbe
lea rcx, str._x__MakeAttid:_Error_in_MakeAttid_addPrefixToTable_n
call fcn.140003220
mov r12, qword [rsp + 0x108]
mov r13d, dword [rsp + 0x60]
mov rax, qword [0x14002ac88]
test rax, rax
je 0x140001fdb
test r12, r12
je 0x140001fdb
mov rdx, r12
mov rcx, rax
call qword [sym.imp.msasn1.dll_ASN1_FreeEncoded]
mov rbx, r15
mov rdi, qword [rsp + 0xe0]
xor r12d, r12d
jmp 0x140001ff5
mov rbx, r12
jmp 0x140001ff5
mov r13d, dword [rsp + 0x60]
test r14d, r14d
je 0x14000202d
mov edx, r12d
mov dword [rsp + 0xa8], edx
cmp edx, dword [rdi]
jae 0x140002040
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r8, [rax + rcx*8]
cmp dword [r8], r13d
jne 0x140002029
lea r15, [r8 + 8]
mov qword [rsp + 0xd8], r15
jmp 0x140002040
inc edx
jmp 0x140001ffd
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.140003220
test r15, r15
je 0x14000205b
cmp dword [r15], 1
jne 0x14000205b
mov rax, qword [r15 + 8]
mov rbx, qword [rax + 8]
mov qword [rsp + 0x80], rbx
test rbx, rbx
je 0x1400022fc
lea r13, [rsp + 0x68]
mov rdi, r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0xc8], r12
mov dword [rsp + 0x68], r12d
mov rbx, r12
mov qword [rsp + 0x70], rbx
mov r14d, r12d
mov dword [rsp + 0xb8], r12d
mov edx, 0x2e
lea rcx, str.1.2.840.113556.1.4.1
call fcn.14000465c
test rax, rax
je 0x140002230
lea rcx, [rax + 1]
cmp byte [rcx], 0
je 0x140002230
xor r8d, r8d
xor edx, edx
call fcn.140007bd0
mov ebx, eax
mov dword [rsp + 0xd4], eax
mov r15d, eax
and r15d, 0x3fff
mov dword [rsp + 0x64], r15d
cmp r15d, 0x4000
jb 0x1400020f2
add r15d, 0x8000
mov dword [rsp + 0x64], r15d
mov eax, r12d
mov dword [rsp + 0xac], eax
mov rcx, qword [0x14002ac88]
test rcx, rcx
je 0x140002135
mov word [rsp + 0x110], r12w
mov qword [rsp + 0x118], r12
lea r8, [rsp + 0x110]
lea rdx, str.1.2.840.113556.1.4.1
call qword [sym.imp.msasn1.dll_ASN1BERDotVal2Eoid]
mov dword [rsp + 0xac], eax
test eax, eax
je 0x14000222b
cmp ebx, 0x80
sbb ax, ax
add ax, 2
movzx esi, word [rsp + 0x110]
sub si, ax
mov word [rsp + 0x110], si
mov ebx, r12d
mov r12, qword [rsp + 0x228]
mov r15d, dword [rsp + 0x220]
mov r13, qword [rsp + 0x118]
mov dword [rsp + 0xb0], ebx
cmp ebx, r15d
jae 0x1400021bd
mov eax, ebx
lea rcx, [rax + rax*2]
lea rdi, [r12 + rcx*8]
movzx eax, si
cmp dword [rdi + 8], eax
jne 0x1400021b9
movzx r8d, si
mov rdx, r13
mov rcx, qword [rdi + 0x10]
call fcn.14001a500
test eax, eax
jne 0x1400021b9
lea r14d, [rax + 1]
mov eax, dword [rdi]
mov dword [rsp + 0xb4], eax
jmp 0x1400021c4
inc ebx
jmp 0x140002178
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0xb8], r14d
test r14d, r14d
je 0x1400021e3
shl eax, 0x10
mov r15d, dword [rsp + 0x64]
or r15d, eax
mov dword [rsp + 0x64], r15d
jmp 0x1400021fc
lea rcx, str._x__MakeAttid:_Error_in_MakeAttid_addPrefixToTable_n
call fcn.140003220
mov r13, qword [rsp + 0x118]
mov r15d, dword [rsp + 0x64]
mov rax, qword [0x14002ac88]
test rax, rax
je 0x140002219
test r13, r13
je 0x140002219
mov rdx, r13
mov rcx, rax
call qword [sym.imp.msasn1.dll_ASN1_FreeEncoded]
mov rbx, qword [rsp + 0x70]
mov rdi, rbx
xor r12d, r12d
lea r13, [rsp + 0x68]
jmp 0x140002235
mov rbx, r12
jmp 0x140002235
mov r15d, dword [rsp + 0x64]
test r14d, r14d
je 0x140002272
mov edx, r12d
mov rsi, qword [rsp + 0xe0]
mov dword [rsp + 0xbc], edx
cmp edx, dword [rsi]
jae 0x14000228d
mov eax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r8, [rax + rcx*8]
cmp dword [r8], r15d
jne 0x14000226e
lea rbx, [r8 + 8]
mov qword [rsp + 0x70], rbx
jmp 0x14000228d
inc edx
jmp 0x140002245
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.140003220
mov rsi, qword [rsp + 0xe0]
test rbx, rbx
je 0x1400022b8
cmp dword [rbx], 1
jne 0x1400022b8
mov rax, qword [rbx + 8]
mov rdi, qword [rax + 8]
mov qword [rsp + 0x88], rdi
lea rcx, [rsp + 0xc8]
mov qword [rcx], rdi
mov eax, dword [rax]
mov dword [r13], eax
test rdi, rdi
je 0x1400022ec
mov r8d, dword [rsp + 0x68]
shr r8, 1
lea rax, [0x140023e60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xc8]
lea rdx, str._n_nObject_RDN___________:
lea rcx, str._s_.s_s
call fcn.140003220
mov rdx, rsi
lea rcx, [rsp + 0x220]
call section..text
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
mov qword [rsp + 0xc0], rcx
mov eax, dword [rsp + 0x78]
inc eax
jmp 0x140001e18
movaps xmm0, xmmword [rsp + 0x1d0]
movaps xmmword [rsp + 0x140], xmm0
movaps xmm1, xmmword [rsp + 0x200]
movups xmmword [rsp + 0x158], xmm1
movsd xmm0, qword [rsp + 0x210]
movsd qword [rsp + 0x168], xmm0
lea rdi, [0x140000000]
jmp 0x140002370
mov r8d, dword [rsp + 0x234]
mov edx, dword [rsp + 0x270]
lea rcx, str._x__dcsync:_DRSGetNCChanges__invalid_dwOutVersion___u__and_or_cNumObjects___u__n
call fcn.140003220
mov edx, dword [rsp + 0x270]
cmp edx, 6
je 0x140002388
mov r8d, edx
lea rcx, str._x__free_DRS_MSG_GETCHGREPLY_data:_dwOutVersion_not_valid__0x_08x____u__n
jmp 0x1400023aa
lea rdx, [0x140002740]
lea rcx, [rsp + 0x1c0]
call fcn.140003480
jmp 0x1400023af
mov r8d, eax
mov edx, eax
lea rcx, str._x__dcsync:_GetNCChanges:_0x_08x___u__n
call fcn.140003220
cmp dword [rsp + 0x248], 0
jne 0x140001c50
lea r8, [rsp + 0xf0]
lea rdx, [0x140024c7e]
lea rcx, [0x140024fa0]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0xe0], rax
jmp 0x1400023f7
mov rdx, qword [rsp + 0x1a8]
test rdx, rdx
je 0x140002456
mov ebx, r12d
mov r8d, dword [rsp + 0x1a0]
test r8d, r8d
je 0x14000244d
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
mov rcx, qword [rdx + rcx*8 + 0x10]
test rcx, rcx
je 0x140002446
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x1a8]
mov r8d, dword [rsp + 0x1a0]
inc ebx
cmp ebx, r8d
jb 0x140002420
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov rcx, qword [rsp + 0xe8]
test eax, eax
cmove rcx, r12
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, 1
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140003770
lea r11, [rsp + 0x330]
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