Function at 0x107fabd
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 7
pop ecx
xor eax, eax
xor ebx, ebx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.010abb3f
mov esi, eax
cmp esi, ebx
je 0x107fb04
push esi
push 0x11500c9
jmp 0x107fcf4
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x107fb2f
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
call fcn.0107fa27
mov esi, eax
cmp esi, ebx
je 0x107fb2c
push esi
push 0x11f00c9
jmp 0x107fcf4
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x48]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp + 0x14]
call fcn.0107f940
mov esi, eax
cmp esi, ebx
je 0x107fb58
push esi
push 0x12e00c9
jmp 0x107fcf4
lea eax, [ebp - 0xc]
push eax
mov edi, 0x100219c
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ab678
mov esi, eax
cmp esi, ebx
je 0x107fb7a
push esi
push 0x13700c9
jmp 0x107fbde
lea eax, [ebp - 0x24]
push eax
mov edi, 0x100bf68
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ab6eb
mov esi, eax
cmp esi, ebx
je 0x107fb9c
push esi
push 0x14100c9
jmp 0x107fbde
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x1019f98
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ab6eb
mov esi, eax
cmp esi, ebx
je 0x107fbbe
push esi
push 0x14b00c9
jmp 0x107fbde
lea eax, [ebp - 4]
push eax
mov edi, 0x1019f7c
push edi
push ebx
push ebx
push dword [ebp + 0x14]
call fcn.010ab678
mov esi, eax
cmp esi, ebx
je 0x107fbe9
push esi
push 0x15500c9
push edi
call fcn.01089421
jmp 0x107fcf9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp - 4]
push 0x1019f5c
call fcn.010abf5b
mov esi, eax
cmp esi, 0x80070002
je 0x107fc1c
cmp esi, ebx
je 0x107fc1c
push esi
push 0x16000c9
jmp 0x107fcf4
cmp dword [ebp + 0x20], ebx
jne 0x107fcb2
cmp dword [ebp - 0x1c], ebx
je 0x107fcb2
lea eax, [ebp - 0x14]
push eax
push 0x40001000
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x107fc5e
jle 0x107fc51
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push 0x17300c9
jmp 0x107fcf4
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x107fca5
cmp dword [eax], ebx
je 0x107fca5
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x107fc70
sub eax, esi
sar eax, 1
cmp eax, 2
jbe 0x107fca5
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 0xc8
add edx, 4
push edx
call fcn.010a4d59
mov esi, eax
cmp esi, ebx
je 0x107fcb2
push esi
push 0x18300c9
jmp 0x107fcf4
mov esi, 0x8000ffff
push esi
push 0x17a00c9
jmp 0x107fcf4
push dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push dword [ebp - 0x10]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 0x1c]
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010866c0
mov esi, eax
cmp esi, ebx
je 0x107fcf9
push esi
push 0x19700c9
call fcn.010893e6
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x107fd09
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], ebx
je 0x107fd13
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], ebx
je 0x107fd1d
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 4], ebx
je 0x107fd27
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x14], ebx
je 0x107fd34
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push ebx
push dword [ebp - 0x18]
call fcn.010a4207
lea eax, [ebp - 0x48]
push eax
call fcn.0107f90b
push ebx
push ebx
push ebx
push 1
push 0xe8
push esi
push 0x1b0
push 0xc9
call fcn.010a687f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24