Function at 0x421960
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562aac
mov eax, dword fs:[0]
push eax
sub esp, 0xb8c
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xb44]
xor ebx, ebx
push ecx
push ebx
mov dword [ebp - 0xb48], eax
mov dword [ebp - 0xb44], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4219ff
mov edx, dword [ebp - 0xb44]
push edx
call fcn.004cf255
mov esi, eax
add esp, 4
lea eax, [ebp - 0xb44]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4219f6
mov eax, esi
cmp esi, ebx
je 0x4219f6
mov ecx, 6
mov edi, edi
cmp dword [eax + 0x1a0], ecx
jne 0x4219f0
cmp dword [eax + 0x190], ecx
jae 0x4219f6
mov eax, dword [eax]
cmp eax, ebx
jne 0x4219e0
push esi
call fcn.004ce2e1
add esp, 4
lea ecx, [ebp - 0xb98]
call fcn.0041e840
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xb34]
call fcn.0040bbe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb98]
push ecx
lea ecx, [ebp - 0xb34]
call fcn.0040d2d0
mov esi, dword [ebp - 0xb88]
sub esi, dword [ebp - 0xb8c]
lea ecx, [ebp - 0xb80]
call fcn.0041e840
mov byte [ebp - 4], 2
lea edx, [ebp - 0xb40]
push edx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xb40], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, dword [ebp - 0xb40]
push ebx
push ecx
lea ecx, [ebp - 0xb80]
call fcn.0040cb10
cmp dword [ebp - 0xb40], ebx
jbe 0x421ac7
mov eax, dword [ebp - 0xb74]
mov edi, eax
cmp eax, dword [ebp - 0xb70]
jbe 0x421a94
call fcn.004cde77
mov eax, dword [ebp - 0xb80]
cmp eax, ebx
jne 0x421cc3
call fcn.004cde77
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x421ab3
call fcn.004cde77
mov edx, dword [ebp - 0xb40]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.004cf6a0
add esp, 0xc
lea ecx, [ebp - 0xb60]
call fcn.0041e840
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xb40]
mov edx, dword [ebp - 0xb48]
lea eax, [ecx + esi + 2]
push eax
lea ecx, [ebp - 0xb60]
mov dword [edx], eax
call fcn.004214d0
mov eax, dword [ebp - 0xb50]
mov dword [ebp - 0xb3c], eax
cmp dword [ebp - 0xb54], eax
jbe 0x421b0d
call fcn.004cde77
mov ecx, dword [ebp - 0xb70]
mov eax, dword [ebp - 0xb74]
mov ebx, dword [ebp - 0xb60]
mov dword [ebp - 0xb64], ecx
cmp eax, ecx
jbe 0x421b3a
call fcn.004cde77
mov ecx, dword [ebp - 0xb70]
mov eax, dword [ebp - 0xb74]
mov esi, dword [ebp - 0xb80]
mov edi, eax
cmp eax, ecx
jbe 0x421b4b
call fcn.004cde77
mov eax, dword [ebp - 0xb3c]
mov ecx, dword [ebp - 0xb64]
mov edx, dword [ebp - 0xb80]
push eax
mov eax, dword [ebp - 0xb3c]
push ecx
push esi
push edi
push edx
push eax
push ebx
lea ecx, [ebp - 0xb60]
call fcn.00421080
lea ecx, [ebp - 0xb35]
push ecx
lea ecx, [ebp - 0xb60]
mov byte [ebp - 0xb35], 0x2a
call fcn.004216a0
mov eax, dword [ebp - 0xb50]
mov ebx, eax
cmp dword [ebp - 0xb54], eax
jbe 0x421ba3
call fcn.004cde77
mov eax, dword [ebp - 0xb88]
mov edi, dword [ebp - 0xb8c]
mov edx, dword [ebp - 0xb60]
mov dword [ebp - 0xb68], edx
mov dword [ebp - 0xb3c], eax
cmp edi, eax
jbe 0x421bd6
call fcn.004cde77
mov eax, dword [ebp - 0xb88]
mov edi, dword [ebp - 0xb8c]
mov esi, dword [ebp - 0xb98]
cmp edi, eax
jbe 0x421be5
call fcn.004cde77
mov eax, dword [ebp - 0xb3c]
mov ecx, dword [ebp - 0xb3c]
mov edx, dword [ebp - 0xb98]
push eax
mov eax, dword [ebp - 0xb68]
push ecx
push esi
push edi
push edx
push ebx
push eax
lea ecx, [ebp - 0xb60]
call fcn.00421080
lea ecx, [ebp - 0xb35]
push ecx
lea ecx, [ebp - 0xb60]
mov byte [ebp - 0xb35], 0x2a
call fcn.004216a0
mov edi, dword [ebp - 0xb48]
mov edx, dword [edi]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp dword [edi], 0
mov esi, eax
je 0x421c64
mov eax, dword [ebp - 0xb50]
sub eax, dword [ebp - 0xb54]
jne 0x421c51
call fcn.004cde77
mov ecx, dword [edi]
mov edx, dword [ebp - 0xb54]
push ecx
push edx
push esi
call fcn.004cf6a0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb60]
call fcn.0040c3d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb80]
call fcn.0040c3d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb34]
call fcn.00465820
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb98]
call fcn.0040c3d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdc91
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax]
jmp 0x421aa9