Function at 0x41a030
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc231
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x474]
mov dword [ebp - 0x48c], eax
mov ecx, 0x88
mov dword [ebp - 0x47c], 0
xor eax, eax
rep stosd dword es:[edi], eax
push str.secur32.dll
mov byte [ebp - 0x475], 0
mov byte [ebp - 0x485], 0
mov dword [ebp - 0x4c0], 0x110
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x494], eax
test eax, eax
jne 0x41a165
push str.secur32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x494], eax
mov byte [ebp - 0x485], 1
test eax, eax
jne 0x41a165
mov eax, dword [0x4f8ee0]
add eax, dword [0x4f8edc]
je 0x41a148
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x480], 0
call fcn.0040f100
cmp dword [ebp - 0x484], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x47c], 1
jne 0x41a117
lea ecx, [ebp - 0x484]
call fcn.0040f100
mov eax, dword [ebp - 0x484]
lea ecx, [ebp - 0x494]
push str.Fail_1:_secur32.dll
push str.UserNameUtils::GetUserNameForTL
push 0x400000
push ecx
push 0
push eax
mov dword [ebp - 0x494], 0x20
call fcn.0040df80
add esp, 0x18
test byte [ebp - 0x47c], 1
je 0x41a222
lea ecx, [ebp - 0x484]
call fcn.0040b3c0
jmp 0x41a222
push 0x4cad64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x41a243
mov eax, dword [0x4f8ee0]
add eax, dword [0x4f8edc]
je 0x41a1ee
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x480], esi
call fcn.0040f100
mov dword [ebp - 4], 1
mov dword [ebp - 0x47c], 2
cmp dword [ebp - 0x484], esi
jne 0x41a1bd
lea ecx, [ebp - 0x484]
call fcn.0040f100
mov eax, dword [ebp - 0x484]
lea ecx, [ebp - 0x48c]
push str.Fail_2:_pfnGetUserNameExW
push str.UserNameUtils::GetUserNameForTL
push 0x400000
push ecx
push 0
push eax
mov dword [ebp - 0x48c], 0x20
call fcn.0040df80
add esp, 0x18
test byte [ebp - 0x47c], 2
je 0x41a202
lea ecx, [ebp - 0x484]
call fcn.0040b3c0
mov al, byte [ebp - 0x475]
mov ecx, dword [ebp - 0x494]
test ecx, ecx
je 0x41a228
cmp byte [ebp - 0x485], 0
je 0x41a228
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x475]
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.00450df0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4c0]
mov ecx, esi
push eax
lea eax, [ebp - 0x474]
push eax
push 2
call dword [0x4c758c]
call esi
test al, al
mov eax, dword [0x4f8ee0]
jne 0x41a2f0
add eax, dword [0x4f8edc]
je 0x41a2e4
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x480], 0
call fcn.0040f100
cmp dword [ebp - 0x484], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x47c], 4
jne 0x41a2ac
lea ecx, [ebp - 0x484]
call fcn.0040f100
mov esi, dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_2:_pfnGetUserNameExW_call_failed_error__lu
push str.UserNameUtils::GetUserNameForTL
push 0x400000
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x48c], 0x20
push eax
push 0
push esi
call fcn.0040df80
add esp, 0x1c
test byte [ebp - 0x47c], 4
jmp 0x41a1f5
add eax, dword [0x4f8edc]
je 0x41a36a
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x498], 0
call fcn.0040f100
cmp dword [ebp - 0x49c], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x47c], 8
jne 0x41a332
lea ecx, [ebp - 0x49c]
call fcn.0040f100
mov eax, dword [ebp - 0x49c]
lea ecx, [ebp - 0x474]
push ecx
push str.wzDomainNameAndUserName_s
push str.UserNameUtils::GetUserNameForTL
push 0x400000
lea ecx, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], 0x20
push ecx
push 0
push eax
call fcn.0040df80
add esp, 0x1c
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 4], 0xffffffff
test al, 8
je 0x41a38f
and eax, 0xfffffff7
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x47c], eax
call fcn.0040b3c0
lea eax, [ebp - 0x490]
mov dword [ebp - 0x490], 0
push eax
lea eax, [ebp - 0x474]
push 0x4c9bb8
push eax
call fcn.0049d0d1
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41a483
cmp word [esi], 0
je 0x41a483
mov eax, dword [ebp - 0x490]
test eax, eax
je 0x41a47d
cmp word [eax], 0
je 0x41a47d
mov eax, dword [0x4f8ee0]
add eax, dword [0x4f8edc]
je 0x41a456
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x4a0], 0
call fcn.0040f100
or dword [ebp - 0x47c], 0x10
cmp dword [ebp - 0x4a4], 0
mov dword [ebp - 4], 4
jne 0x41a424
lea ecx, [ebp - 0x4a4]
call fcn.0040f100
mov eax, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x4c8]
push esi
push str.domainName___s
push str.UserNameUtils::GetUserNameForTL
push 0x400000
push ecx
push 0
push eax
mov dword [ebp - 0x4c8], 0x10
call fcn.0040df80
add esp, 0x1c
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 4], 0xffffffff
test al, 0x10
je 0x41a483
and eax, 0xffffffef
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x47c], eax
call fcn.0040b3c0
jmp 0x41a483
mov dword [ebp - 0x490], esi
mov eax, dword [ebp - 0x490]
test eax, eax
je 0x41a53b
cmp word [eax], 0
je 0x41a53b
mov eax, dword [0x4f8ee0]
add eax, dword [0x4f8edc]
je 0x41a516
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x4a8], 0
call fcn.0040f100
or dword [ebp - 0x47c], 0x20
cmp dword [ebp - 0x4ac], 0
mov dword [ebp - 4], 5
jne 0x41a4df
lea ecx, [ebp - 0x4ac]
call fcn.0040f100
mov eax, dword [ebp - 0x4ac]
lea ecx, [ebp - 0x4cc]
push dword [ebp - 0x490]
mov dword [ebp - 0x4cc], 0x10
push str.userName___s
push str.UserNameUtils::GetUserNameForTL
push 0x400000
push ecx
push 0
push eax
call fcn.0040df80
add esp, 0x1c
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 4], 0xffffffff
test al, 0x20
je 0x41a53b
and eax, 0xffffffdf
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x47c], eax
call fcn.0040b3c0
xor eax, eax
lea edi, [ebp - 0x254]
mov ecx, 0x80
xorps xmm0, xmm0
rep stosd dword es:[edi], eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
stosw word es:[edi], ax
test esi, esi
je 0x41a56a
push esi
lea eax, [ebp - 0x30]
push 0x10
push eax
call fcn.004989ad
add esp, 0xc
mov eax, dword [ebp - 0x490]
test eax, eax
je 0x41a589
push eax
lea eax, [ebp - 0x254]
push 0x101
push eax
call fcn.004989ad
add esp, 0xc
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4d0], 0x10
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x41a63f
mov eax, dword [0x4f8ee0]
add eax, dword [0x4f8edc]
je 0x41a633
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x480], 0
call fcn.0040f100
or dword [ebp - 0x47c], 0x40
cmp dword [ebp - 0x484], 0
mov dword [ebp - 4], 6
jne 0x41a5fb
lea ecx, [ebp - 0x484]
call fcn.0040f100
mov esi, dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetComputerNameW_failed_with_error__lu
push str.UserNameUtils::GetUserNameForTL
push 0x400000
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x48c], 4
push eax
push 0
push esi
call fcn.0040df80
add esp, 0x1c
test byte [ebp - 0x47c], 0x40
jmp 0x41a1f5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00498d5f
add esp, 8
test eax, eax
jne 0x41a7d8
cmp byte [ebp + 0xc], 0
mov eax, dword [0x4f8ee0]
jne 0x41a707
add eax, dword [0x4f8edc]
je 0x41a6e1
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4b0], 0
call fcn.0040f100
or dword [ebp - 0x47c], 0x80
cmp dword [ebp - 0x4b4], 0
mov dword [ebp - 4], 7
jne 0x41a6a8
lea ecx, [ebp - 0x4b4]
call fcn.0040f100
mov eax, dword [ebp - 0x4b4]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x480], 0x20
push ecx
push str.The_computer_name___s__is_identical_to_the_domain_name___s_._Removing_domain_name...
push str.UserNameUtils::GetUserNameForTL
push 0x400000
lea ecx, [ebp - 0x480]
push ecx
push 0
push eax
call fcn.0040df80
add esp, 0x20
test byte [ebp - 0x47c], 0x80
mov dword [ebp - 4], 0xffffffff
je 0x41a6fc
lea ecx, [ebp - 0x4b4]
call fcn.0040b3c0
xor eax, eax
mov word [ebp - 0x30], ax
jmp 0x41a7d8
add eax, dword [0x4f8edc]
je 0x41a782
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4b8], 0
call fcn.0040f100
or dword [ebp - 0x47c], 0x100
cmp dword [ebp - 0x4bc], 0
mov dword [ebp - 4], 8
jne 0x41a749
lea ecx, [ebp - 0x4bc]
call fcn.0040f100
mov eax, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4d4], 0x20
push ecx
push str.The_computer_name___s__is_identical_to_the_domain_name___s_._Keeping_the_domain_name_as_uppercase_string...
push str.UserNameUtils::GetUserNameForTL
push 0x400000
lea ecx, [ebp - 0x4d4]
push ecx
push 0
push eax
call fcn.0040df80
add esp, 0x20
test dword [ebp - 0x47c], 0x100
mov dword [ebp - 4], 0xffffffff
je 0x41a7a0
lea ecx, [ebp - 0x4bc]
call fcn.0040b3c0
lea esi, [ebp - 0x30]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41a7a6
sub esi, ecx
xor edi, edi
sar esi, 1
je 0x41a7d8
nop dword [eax]
movzx eax, word [ebp + edi*2 - 0x30]
push eax
call fcn.0049ce3b
mov word [ebp + edi*2 - 0x30], ax
add esp, 4
inc edi
cmp edi, esi
jb 0x41a7c0
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a7e1
mov esi, dword [ebp - 0x48c]
lea eax, [ebp - 0x254]
sub ecx, edx
sar ecx, 1
cmp word [ebp - 0x30], 0
push ecx
push eax
mov ecx, esi
je 0x41a84d
call fcn.004038a0
push 1
push 0x4c9bc0
mov ecx, esi
call fcn.004052f0
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a820
sub ecx, edx
lea eax, [ebp - 0x30]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004052f0
cmp dword [esi + 0x10], 0
setne al
mov byte [ebp - 0x475], al
jmp 0x41a208
call fcn.004038a0
cmp dword [esi + 0x10], 0
setne al
mov byte [ebp - 0x475], al
jmp 0x41a208