Function at 0x1806157
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x8438
call fcn.018088f0
mov eax, dword [0x18122c8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edx, 0xfff
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x8414], ebx
lea edi, [ebp - 0x8410]
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0x4414], ebx
lea edi, [ebp - 0x4410]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x8428], ebx
mov dword [ebp - 0x8434], ebx
mov dword [ebp - 0x8438], ebx
mov dword [ebp - 0x8430], ebx
mov dword [ebp - 0x8424], ebx
mov dword [ebp - 0x842c], ebx
mov dword [ebp - 0x8420], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
mov dword [0x1813978], eax
jne 0x18061ee
push 0x1801614
push 0x180160c
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x1806613
push 0x1801370
push 0x1801604
push 0x1813980
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
call fcn.01801e68
cmp eax, ebx
je 0x1806216
xor eax, eax
jmp 0x1806759
push 0x18015f0
push 0x18015ec
call fcn.01804583
call fcn.01804866
xor edi, edi
inc edi
push edi
push 0x1806e52
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.01806121
cmp dword [ebp + 8], edi
mov dword [ebp - 0x8418], edi
jbe 0x180661e
mov dword [ebp - 0x841c], 2
mov ebx, dword [ebp - 0x8418]
shl ebx, 2
lea edi, [ebx + esi]
push 0x180150c
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18065dc
push 0x18015e4
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18065dc
push 0x180124c
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18065dc
push 0x1801514
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18065dc
push 0x18015dc
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x18062e1
mov dword [0x18122fc], 1
jmp 0x1806450
push 0x18015d4
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1806312
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
mov eax, dword [ebx + esi + 4]
mov dword [ebp - 0x8438], eax
jmp 0x1806444
push 0x18015cc
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x180634c
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
push dword [ebx + esi + 4]
lea eax, [ebp - 0x4414]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1806444
push 0x18015c4
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1806387
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
mov eax, dword [ebx + esi + 4]
mov dword [ebp - 0x8430], eax
mov dword [ebp - 0x8428], 1
jmp 0x1806444
push 0x18015bc
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x18063c8
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
lea ebx, [ebx + esi + 4]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1806444
mov eax, dword [ebx]
mov dword [ebp - 0x8424], eax
jmp 0x1806444
push 0x18015b4
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1806405
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
lea ebx, [ebx + esi + 4]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1806444
mov eax, dword [ebx]
mov dword [ebp - 0x842c], eax
jmp 0x1806444
push 0x18015ac
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1806517
mov eax, dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jae 0x18065c0
lea ebx, [ebx + esi + 4]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1806444
mov eax, dword [ebx]
mov dword [ebp - 0x8420], eax
inc dword [ebp - 0x8418]
inc dword [ebp - 0x841c]
inc dword [ebp - 0x8418]
mov eax, dword [ebp - 0x8418]
inc dword [ebp - 0x841c]
cmp eax, dword [ebp + 8]
jb 0x1806257
cmp dword [ebp - 0x8424], 0
je 0x180661b
cmp dword [ebp - 0x8420], 0
je 0x18064e3
push 0x1801248
push dword [ebp - 0x8420]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x18064e3
push dword [ebp - 0x8424]
and dword [ebp - 0x8428], eax
push 0xa9
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
lea eax, [ebp - 0x8428]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.01806a58
test eax, eax
jne 0x18065d2
lea eax, [ebp - 0x414]
mov dword [ebp - 0x8420], eax
push dword [ebp - 0x8420]
push dword [ebp - 0x842c]
push dword [ebp - 0x8424]
call fcn.01805f4a
mov esi, eax
test esi, esi
je 0x180661b
push esi
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
pop ecx
pop ecx
jmp 0x180671e
cmp dword [ebp - 0x8428], 0
jne 0x18065c0
mov ebx, dword [ebp - 0x8418]
cmp ebx, dword [ebp + 8]
jae 0x180646b
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
jmp 0x1806541
mov ebx, dword [ebp - 0x8418]
cmp word [ebp - 0x8414], 0
je 0x180655b
lea eax, [ebp - 0x8414]
push 0x18012e0
push eax
call edi
pop ecx
pop ecx
mov ebx, dword [esi + ebx*4]
cmp word [ebx], 0
je 0x1806581
push 0x20
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
jne 0x1806581
lea eax, [ebp - 0x8414]
push ebx
push eax
call edi
pop ecx
pop ecx
jmp 0x18065aa
lea eax, [ebp - 0x8414]
push 0x180151c
push eax
call edi
lea eax, [ebp - 0x8414]
push ebx
push eax
call edi
lea eax, [ebp - 0x8414]
push 0x180151c
push eax
call edi
add esp, 0x18
inc dword [ebp - 0x8418]
mov eax, dword [ebp - 0x8418]
cmp eax, dword [ebp + 8]
jb 0x180653b
jmp 0x180646b
push dword [esi]
push 0x6e
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
mov esi, 0x3a99
jmp 0x180671e
xor eax, eax
push eax
push eax
push eax
call fcn.018085c9
push dword [esi]
push 0x6e
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
lea eax, [ebp - 0x8434]
push eax
push 0x180124c
call sym.NETSH.EXE_ProcessCommand
call fcn.01803149
call fcn.01803195
xor eax, eax
inc eax
jmp 0x1806759
xor edi, edi
inc edi
xor ebx, ebx
cmp dword [0x18122f4], ebx
jne 0x1806680
push ebx
push ebx
push ebx
call fcn.018085c9
mov esi, eax
cmp esi, ebx
jge 0x1806680
mov eax, dword [0x18122f4]
cmp eax, ebx
jne 0x1806663
lea eax, [ebp - 0x842c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x842c], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x20c]
push eax
push 0xb4
push dword [0x1813978]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
push esi
push ebx
call sym.NETSH.EXE_PrintError
pop ecx
pop ecx
cmp dword [ebp - 0x8438], ebx
je 0x180669d
push dword [ebp - 0x8438]
call fcn.01805e73
mov esi, eax
cmp esi, ebx
jne 0x180671e
cmp word [ebp - 0x4414], bx
je 0x18066cb
lea eax, [ebp - 0x8434]
push eax
lea eax, [ebp - 0x4414]
push eax
mov dword [0x1812300], edi
call sym.NETSH.EXE_ProcessCommand
mov esi, eax
cmp esi, ebx
mov dword [0x1812300], ebx
jne 0x180671e
cmp word [ebp - 0x8414], bx
je 0x18066ef
lea eax, [ebp - 0x8434]
push eax
lea eax, [ebp - 0x8414]
push eax
mov dword [0x1812008], ebx
call sym.NETSH.EXE_ProcessCommand
jmp 0x180671c
cmp dword [ebp - 0x8430], ebx
mov dword [0x1812300], edi
je 0x180670a
push dword [ebp - 0x8430]
call fcn.01805e73
jmp 0x180671c
push edi
push dword [sym.imp.msvcrt.dll__iob]
mov dword [0x1812008], ebx
call fcn.01805d24
mov esi, eax
call fcn.01805f00
call fcn.01803149
call fcn.01803195
call fcn.01801e07
mov eax, dword [0x18122f4]
test eax, eax
je 0x1806752
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [0x18122f4], 0
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0180865b
leave
ret 8