Function at 0x100f3e0
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push esi
xor eax, eax
push edi
push 0x1003358
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0x100332c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
call ebx
mov esi, dword [ebp + 0x10]
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x40010220
mov edi, eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
add edi, 8
push eax
mov dword [esi], eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x100f470
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x100f470
push eax
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.010034c4
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x100f457
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x100f4be
mov ecx, dword [ebp - 4]
push dword [ecx + 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x100f499
cmp dword [ebp + 8], 0
je 0x100f499
push dword [ebp + 8]
call ebx
lea eax, [eax + eax + 2]
push eax
call fcn.010034c4
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
je 0x100f4be
push dword [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [esi]
test eax, eax
je 0x100f4ad
cmp word [eax], 0
je 0x100f4ad
push eax
call ebx
pop ecx
lea edi, [edi + eax + 1]
lea eax, [edi + edi]
push eax
call fcn.010034c4
test eax, eax
pop ecx
mov dword [ebp + 8], eax
jne 0x100f4c8
mov eax, 0x8007000e
jmp 0x100f5ca
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x1002d64
push 0x1003324
push eax
call edi
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x100f500
cmp word [eax], 0
je 0x100f500
push esi
mov esi, dword [ebp + 8]
push 0x100331c
push esi
call ebx
pop ecx
lea eax, [esi + eax*2]
push eax
call edi
add esp, 0xc
push 0x1003358
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0
push dword [ebp + 8]
call sub.adsldpc.dll_ADSIOpenDSObject
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x100f5a1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call sub.adsldpc.dll_ADSIGetObjectAttributes
test eax, eax
mov dword [ebp + 0x10], eax
jl 0x100f5a1
mov esi, dword [ebp - 0xc]
sub esp, 0x14
push 5
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0100cfea
mov edi, eax
push edi
call ebx
mov esi, 0x10032e8
push esi
mov dword [ebp - 0x18], eax
call ebx
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call fcn.010034c4
mov ecx, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
mov dword [ecx], eax
jne 0x100f58a
mov dword [ebp + 0x10], 0x8007000e
cmp dword [ebp + 0x10], 0
jl 0x100f5a1
push edi
push esi
push 0x10032dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x100f5af
push dword [ebp - 8]
call sub.adsldpc.dll_ADSICloseDSObject
cmp dword [ebp - 0xc], 0
je 0x100f5bd
push dword [ebp - 0xc]
call sub.ACTIVEDS.dll_FreeADsMem
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x10]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc