Function at 0x414080
Capabilities:
Get domain information
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d72f4
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 0x414130
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x85c]
call fcn.004373b0
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.0043ac60
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 0x4141e2
push 5
push str.Empty
lea ecx, [ebp - 0x828]
call fcn.00431f60
lea eax, [ebp - 0x828]
cmp edi, eax
je 0x4141e2
cmp dword [ebp - 0x814], 0x10
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00431f60
mov eax, dword [ebp - 0x878]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x414230
push 5
push str.Empty
lea ecx, [ebp - 0x828]
call fcn.00431f60
lea eax, [ebp - 0x828]
cmp edi, eax
je 0x4145fd
cmp dword [ebp - 0x814], 0x10
mov ecx, edi
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00431f60
jmp 0x4145fd
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 0x414252
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x844]
call fcn.004373b0
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.0043ac60
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 4
push eax
mov edx, 0x4ff9d0
lea ecx, [ebp - 0x8c8]
call fcn.004396d0
add esp, 4
push 0x4ff9cc
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004320a0
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.00439eb0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x4143c6
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x414383
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414379
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ab
push edx
push ecx
call fcn.004913bc
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 0x414400
mov ecx, dword [ebp - 0x8b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4143f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ab
push edx
push ecx
call fcn.004913bc
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 0x414459
mov ecx, dword [ebp - 0x894]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41444f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ab
push edx
push ecx
call fcn.004913bc
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 0x4144b2
mov ecx, dword [ebp - 0x8c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4144a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ab
push edx
push ecx
call fcn.004913bc
add esp, 8
lea edx, [ebp - 0x828]
lea ecx, [ebp - 0x8c8]
call fcn.00407e30
mov esi, eax
cmp edi, esi
je 0x41452e
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x4144fc
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x4144f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146b0
mov eax, edx
push ecx
push eax
call fcn.004913bc
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 0x414568
mov ecx, dword [ebp - 0x8c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41455e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146b0
push edx
push ecx
call fcn.004913bc
add esp, 8
mov edx, dword [ebp - 0x860]
cmp edx, 0x10
jb 0x4145a2
mov ecx, dword [ebp - 0x874]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414598
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146b5
push edx
push ecx
call fcn.004913bc
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 0x4145fd
mov ecx, dword [ebp - 0x844]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4145f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146b5
push edx
push ecx
call fcn.004913bc
add esp, 8
mov edx, dword [ebp - 0x814]
cmp edx, 0x10
jb 0x414637
mov ecx, dword [ebp - 0x828]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41462d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ba
push edx
push ecx
call fcn.004913bc
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 0x41468e
mov ecx, dword [ebp - 0x85c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414684
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4146ba
push edx
push ecx
call fcn.004913bc
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.00490d3b
mov esp, ebp
pop ebp
ret
call fcn.004b58b2
call fcn.004b58b2
call fcn.004b58b2
call fcn.004b58b2
int3