Function at 0x4386a8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c682d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x18cc
call fcn.0048af50
push edi
xor eax, eax
mov al, byte [0x521db2]
test eax, eax
je 0x4387bd
xor ecx, ecx
mov cl, byte [0x505fc1]
test ecx, ecx
jne 0x4387bd
push str._Read_VWiFi_Profile_
call fcn.0040e045
add esp, 4
push 0x440
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048a490
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
or ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
or ecx, 6
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ch, 0xf3
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
push 0x521cac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0x1770
push 0
lea ecx, [ebp - 0x1790]
push ecx
call fcn.0048a490
add esp, 0xc
lea edx, [ebp - 0x1790]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0xbb8
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.RtlLib.dll_RT_ACM_SoftAP_GetProfile]
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4387a9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.RtlLib.dll_RT_ACM_XMLtoProfile]
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
and edx, 0xffffffef
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
jmp 0x438ada
push str._Read_SoftAP_Profile_
call fcn.0040e045
add esp, 4
cmp dword [0x521a54], 0
je 0x4387e4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438467
add esp, 4
jmp 0x438ada
mov dword [ebp - 0x14], 0
cmp dword [0x521a40], 1
jne 0x4387fd
mov dword [ebp - 0x14], 0x4f5044
jmp 0x438804
mov dword [ebp - 0x14], 0x4f5050
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00438ffa
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x4389d1
push 0x440
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048a490
add esp, 0xc
push 0x521bac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 0x1794]
call fcn.00406f30
mov dword [ebp - 4], 0
cmp dword [0x521a40], 1
jne 0x4388db
mov byte [ebp - 0x18b4], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x18b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x20
push 0
lea ecx, [ebp - 0x18b4]
push ecx
call fcn.0048a490
add esp, 0xc
lea edx, [ebp - 0x18b4]
push edx
call dword [sym.imp.RtlLib.dll_RT_GetMacAddressString]
add esp, 4
lea eax, [ebp - 0x18b4]
push eax
call fcn.0048a4f0
add esp, 4
cmp eax, 6
jbe 0x4388d0
lea ecx, [ebp - 0x18b4]
push ecx
push 0x4f505c
lea edx, [ebp - 0x1794]
push edx
call fcn.0049faa5
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [eax + 0x60], 0x63
jmp 0x438926
cmp dword [0x521a00], 0x67
jl 0x4388f7
push 0x100
lea ecx, [ebp - 0x1894]
push ecx
call sub.WSOCK32.dll_gethostname
jmp 0x43890b
push 0x100
lea edx, [ebp - 0x1894]
push edx
call fcn.00437b63
add esp, 8
lea eax, [ebp - 0x1894]
push eax
push str._s_AP
lea ecx, [ebp - 0x1794]
push ecx
call fcn.0049faa5
add esp, 0xc
lea ecx, [ebp - 0x1794]
call fcn.0040de10
push eax
lea ecx, [ebp - 0x1794]
call fcn.00406f50
push eax
mov edx, dword [ebp + 8]
add edx, 0x32
push edx
call fcn.0048a150
add esp, 0xc
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x60]
test ecx, ecx
jne 0x438963
mov edx, dword [ebp + 8]
mov word [edx + 0x60], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
or ecx, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ecx, 0xfffffff9
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ecx, 0xfffffffe
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ch, 0xf3
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ecx, 0xffffffef
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00438d9a
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1794]
call fcn.004a32a4
jmp 0x438acb
cmp dword [0x521a40], 1
je 0x438a07
cmp dword [0x521a40], 1
je 0x4389f0
cmp dword [0x521a40], 2
jne 0x438acb
mov ecx, dword [ebp + 8]
add ecx, 0x32
push ecx
call fcn.004405c8
add esp, 4
test eax, eax
je 0x438acb
mov byte [ebp - 0x18d8], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x18d7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x18b8]
call fcn.00406f30
mov dword [ebp - 4], 1
push 0x20
push 0
lea edx, [ebp - 0x18d8]
push edx
call fcn.0048a490
add esp, 0xc
lea eax, [ebp - 0x18d8]
push eax
call dword [sym.imp.RtlLib.dll_RT_GetMacAddressString]
add esp, 4
lea ecx, [ebp - 0x18d8]
push ecx
call fcn.0048a4f0
add esp, 4
cmp eax, 6
jbe 0x438a84
lea edx, [ebp - 0x18d8]
push edx
push str.AiGuru__s_SP
lea eax, [ebp - 0x18b8]
push eax
call fcn.0049faa5
add esp, 0xc
lea ecx, [ebp - 0x18b8]
call fcn.00406f50
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x32
push ecx
call fcn.0048a750
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and al, 0xef
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00438d9a
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18b8]
call fcn.004a32a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
and ecx, 0xffffffef
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret