Function at 0x4138c0
Capabilities:
Get domain information
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6894
mov eax, dword fs:[0]
push eax
sub esp, 0x8bc
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x878], edi
mov dword [ebp - 0x898], edi
mov dword [ebp - 0x87c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x87c], 1
push eax
push 0
mov dword [ebp - 0x82c], 0x800
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
xor eax, eax
mov dword [ebp - 0x84c], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x848], 7
mov word [ebp - 0x85c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413970
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x85c]
call fcn.00436c20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x85c]
cmp dword [ebp - 0x848], 8
mov eax, dword [ebp - 0x84c]
cmovae ecx, dword [ebp - 0x85c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x85c]
cmovae ecx, dword [ebp - 0x85c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x828]
call fcn.0043a4d0
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 2
push eax
push 1
push 0
call dword [sym.imp.NETAPI32.dll_DsRoleGetPrimaryDomainInformation]
test eax, eax
je 0x413a22
push 5
push str.Empty
lea ecx, [ebp - 0x828]
call fcn.00431800
lea eax, [ebp - 0x828]
cmp edi, eax
je 0x413a22
cmp dword [ebp - 0x814], 0x10
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00431800
mov eax, dword [ebp - 0x878]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x413a70
push 5
push str.Empty
lea ecx, [ebp - 0x828]
call fcn.00431800
lea eax, [ebp - 0x828]
cmp edi, eax
je 0x413e3d
cmp dword [ebp - 0x814], 0x10
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00431800
jmp 0x413e3d
mov ecx, edx
mov dword [ebp - 0x834], 0
xor eax, eax
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413a92
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x844]
call fcn.00436c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x844]
cmp dword [ebp - 0x830], 8
mov eax, dword [ebp - 0x834]
cmovae ecx, dword [ebp - 0x844]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x844]
cmovae ecx, dword [ebp - 0x844]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x874]
call fcn.0043a4d0
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 4
push eax
mov edx, 0x4ff994
lea ecx, [ebp - 0x8c8]
call fcn.00438f40
add esp, 4
push 0x4ff990
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00431940
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x894], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x884], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x894]
lea ecx, [ebp - 0x8b0]
call fcn.00439720
mov esi, eax
add esp, 4
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x413c06
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x413bc3
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413bb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413eeb
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x89c]
cmp edx, 0x10
jb 0x413c40
mov ecx, dword [ebp - 0x8b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413c36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413eeb
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x880]
mov dword [ebp - 0x8a0], 0
mov dword [ebp - 0x89c], 0xf
mov byte [ebp - 0x8b0], 0
cmp edx, 0x10
jb 0x413c99
mov ecx, dword [ebp - 0x894]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413c8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413eeb
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x8b4]
mov dword [ebp - 0x884], 0
mov dword [ebp - 0x880], 0xf
mov byte [ebp - 0x894], 0
cmp edx, 0x10
jb 0x413cf2
mov ecx, dword [ebp - 0x8c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413ce8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413eeb
push edx
push ecx
call fcn.00490c3c
add esp, 8
lea edx, [ebp - 0x828]
lea ecx, [ebp - 0x8c8]
call fcn.00407e30
mov esi, eax
cmp edi, esi
je 0x413d6e
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x413d3c
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x413d32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ef0
mov eax, edx
push ecx
push eax
call fcn.00490c3c
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x8b4]
cmp edx, 0x10
jb 0x413da8
mov ecx, dword [ebp - 0x8c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413d9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ef0
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x860]
cmp edx, 0x10
jb 0x413de2
mov ecx, dword [ebp - 0x874]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ef5
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x830]
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0xf
mov byte [ebp - 0x874], 0
cmp edx, 8
jb 0x413e3d
mov ecx, dword [ebp - 0x844]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413e33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ef5
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x413e77
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413e6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413efa
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x848]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0xf
mov byte [ebp - 0x828], 0
cmp edx, 8
jb 0x413ece
mov ecx, dword [ebp - 0x85c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413ec4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413efa
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004905bb
mov esp, ebp
pop ebp
ret
call fcn.004b5132
call fcn.004b5132
call fcn.004b5132
call fcn.004b5132
int3