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

Disassembly:
mov eax, 0x1027b36
call fcn.01022df8
sub esp, 0x160
mov eax, dword [0x102e77c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x144], eax
xor eax, eax
mov esi, ecx
push 0x46
pop ecx
lea edi, [ebp - 0x128]
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x12c], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x168]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [esi + 0x2bc], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ebx
jne 0x100f36e
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x11c
call dword [0x10011bc]
test eax, eax
jne 0x100f1be
push 0x473
push 0x1002318
call fcn.0100c9d4
call dword [fcn.010010e4]
push eax
push 0x1002538
jmp 0x100f305
test byte [ebp - 0x13], 2
je 0x100f1dd
push 0x479
push 0x1002318
call fcn.0100c9d4
push 0x1002524
jmp 0x100f281
lea eax, [ebp - 0x134]
push eax
push 0x2000000
lea eax, [ebp - 0x16c]
push eax
push ebx
call sub.ADVAPI32.dll_LsaOpenPolicy
cmp eax, ebx
mov dword [ebp - 0x130], eax
je 0x100f21f
push 0x48a
push 0x1002318
call fcn.0100c9d4
push dword [ebp - 0x130]
push 0x1002508
jmp 0x100f305
lea eax, [ebp - 0x138]
push eax
push 0xc
push dword [ebp - 0x134]
call sub.ADVAPI32.dll_LsaQueryInformationPolicy
cmp eax, ebx
mov dword [ebp - 0x130], eax
je 0x100f25c
push 0x496
push 0x1002318
call fcn.0100c9d4
push dword [ebp - 0x130]
push 0x10024e0
jmp 0x100f305
mov eax, dword [ebp - 0x138]
cmp dword [eax + 0x28], ebx
jne 0x100f2b1
cmp word [eax + 8], bx
jne 0x100f292
push 0x49f
push 0x1002318
call fcn.0100c9d4
push 0x10024c8
call fcn.0100cb2d
pop ecx
mov dword [esi + 0x2bc], edi
jmp 0x100f36e
push 0x4a5
push 0x1002318
call fcn.0100c9d4
push 0x1002494
call fcn.0100cb2d
pop ecx
jmp 0x100f35c
push 0x4ad
push 0x1002318
call fcn.0100c9d4
push 0x1002470
call fcn.0100cb2d
pop ecx
lea eax, [ebp - 0x13c]
push eax
push 0x40000000
push ebx
push ebx
push ebx
push ebx
call dword [0x10014ac]
cmp eax, ebx
mov dword [ebp - 0x130], eax
je 0x100f30e
push 0x4bf
push 0x1002318
call fcn.0100c9d4
push dword [ebp - 0x130]
push 0x1002454
call fcn.0100cb4a
pop ecx
pop ecx
jmp 0x100f36e
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x13c]
push 0x64
push dword [eax]
call fcn.010231fc
push 0x4c9
push 0x1002318
mov dword [ebp - 0x130], eax
call fcn.0100c9d4
push dword [ebp - 0x130]
push 0x1002434
call fcn.0100cb2d
cmp dword [ebp - 0x130], ebx
pop ecx
pop ecx
je 0x100f364
cmp dword [ebp - 0x130], 5
je 0x100f364
mov dword [esi + 0x2bc], ebx
jmp 0x100f36e
mov dword [esi + 0x2bc], 2
mov eax, dword [esi + 0x2bc]
dec eax
mov ecx, dword [esi + 0x2b8]
je 0x100f459
dec eax
je 0x100f3ea
push 0x5058
lea eax, [ebp - 0x154]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push ebx
push dword [esi + 0x2b8]
call fcn.0100d4b2
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x154]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x140]
mov dword [eax], edi
mov eax, dword [ebp - 0x144]
mov dword [eax], 0x29
jmp 0x100f4cf
push 0x505a
lea eax, [ebp - 0x150]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push ebx
push dword [esi + 0x2b8]
call fcn.0100d4b2
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x150]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x140]
mov dword [eax], edi
mov ecx, dword [esi + 0x2b8]
call fcn.0100d94e
mov ecx, dword [ebp - 0x144]
neg eax
sbb eax, eax
neg eax
add eax, 0x18
mov dword [ecx], eax
jmp 0x100f4cf
push 0x5059
lea eax, [ebp - 0x14c]
push eax
call fcn.0100cd2b
push ebx
mov ecx, eax
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::GetBuffer
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
push ebx
push dword [esi + 0x2b8]
call fcn.0100d4b2
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x14c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esi + 0x2b8]
call fcn.0100d94e
test eax, eax
je 0x100f4c7
mov eax, dword [ebp - 0x144]
mov dword [eax], 0x1a
mov eax, dword [ebp - 0x140]
mov dword [eax], edi
jmp 0x100f4cf
mov eax, dword [ebp - 0x140]
mov dword [eax], ebx
cmp dword [ebp - 0x138], ebx
je 0x100f4e2
push dword [ebp - 0x138]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x134], ebx
je 0x100f4f5
push dword [ebp - 0x134]
call sub.ADVAPI32.dll_LsaClose
cmp dword [ebp - 0x148], ebx
je 0x100f508
push dword [ebp - 0x148]
call fcn.010231f0
cmp dword [ebp - 0x13c], ebx
je 0x100f51b
push dword [ebp - 0x13c]
call fcn.010231f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
call fcn.0102222e
pop edi
pop esi
pop ebx
leave
ret 8