Function at 0x407658
Capabilities:
Get hostname

Disassembly:
push 0x54
mov eax, 0x438804
call fcn.0041a5b5
mov dword [ebp - 0x44], edx
mov ebx, ecx
mov dword [ebp - 0x50], ebx
and dword [ebp - 0x60], 0
call fcn.00413c5e
push eax
lea ecx, [ebp - 0x34]
call fcn.00413a4e
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push 1
push eax
push str.MachineGuid
push str.SOFTWAREMicrosoftCryptography
mov edx, 0x80000002
lea ecx, [ebp - 0x40]
call fcn.0040371e
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0
jge 0x407709
cmp dword [ebp - 0x3c], 0
push 0x15
pop eax
cmovne eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x44], esi
lea ecx, [ecx - 0x10]
call fcn.0041423d
add eax, 0x10
lea ecx, [ebp - 0x5c]
mov dword [esi], eax
call fcn.004142d3
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.0040153c
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004142bb
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
jmp 0x407865
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.004142bb
xor eax, eax
mov dword [ebp - 0x50], 0x10
push 7
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
setne al
test al, al
jne 0x40779e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
mov ecx, edx
cmovle ecx, eax
test ecx, ecx
jns 0x407767
test eax, eax
cmovle edx, eax
jmp 0x40776c
mov edx, 0x80004005
push 0x18
push edx
push ecx
mov esi, esp
call fcn.00413c5e
push eax
mov ecx, esi
call fcn.00413a4e
lea ecx, [ebp - 0x5c]
call fcn.004142d3
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040153c
mov ecx, dword [ebp - 0x54]
jmp 0x407857
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.0040fd4a
mov byte [ebp - 4], 4
mov esi, esp
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], esi
lea ecx, [ecx - 0x10]
call fcn.0041423d
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
add eax, 0x10
mov dword [esi], eax
call fcn.00404e74
pop ecx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x40], 0
jge 0x407830
cmp dword [ebp - 0x3c], 0
push 0x1a
pop eax
cmovne eax, dword [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x4c], esi
lea ecx, [ecx - 0x10]
call fcn.0041423d
add eax, 0x10
lea ecx, [ebp - 0x5c]
mov dword [esi], eax
call fcn.004142d3
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.0040153c
mov ecx, dword [ebp - 0x54]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.004142bb
jmp 0x407854
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.004142bb
and dword [ebx], 0
and dword [ebx + 4], 0
call fcn.00413c5e
push eax
lea ecx, [ebx + 8]
call fcn.00413a4e
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.004142bb
mov eax, ebx
call fcn.0041a55f
ret