Function at 0x46b6b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d436
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov ebx, 2
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x120], ecx
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x60]
mov edx, dword [eax + 0x73b0]
mov dword [ebp - 0x13c], edx
cmp dword [eax + 0x68c8], ecx
je 0x46b72e
mov dword [ebp - 0x120], 1
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x124]
push eax
mov ecx, edi
call fcn.004a62b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x134], 1
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jne 0x46b762
cmp dword [ebp - 0x13c], 4
mov byte [ebp - 0x115], 1
jne 0x46b769
mov byte [ebp - 0x115], 0
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x134], eax
and eax, 0xfffffffe
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x124]
call fcn.004bfa40
cmp byte [ebp - 0x115], 0
je 0x46b7b1
mov edx, dword [esi]
push str.SendMailMsg:_Null_destination_address.__Reporting_successful_send.
push 1
push esi
mov eax, dword [edx + 8]
call eax
add esp, 0xc
xor eax, eax
jmp 0x46bdb1
mov ecx, dword [esi + 0x28]
push ecx
call fcn.0043e010
add esp, 4
test eax, eax
jne 0x46b7d8
mov edx, dword [esi]
push str.SendMail::SendMailMsg:_Internet_connection_not_available.
push 1
push esi
mov eax, dword [edx + 8]
call eax
add esp, 0xc
jmp 0x46bdaf
mov dword [ebp - 0x138], 0
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x60]
add edx, 0x66a4
push edx
push str.X_SpectorSerial
mov ecx, edi
call fcn.004a61b0
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x60]
add eax, 0x67b9
lea edx, [ebp - 0x114]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x46b810
lea eax, [ebp - 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x46b821
mov ecx, dword [str._on]
mov dword [eax], ecx
mov dl, byte [0x565414]
mov byte [eax + 4], dl
lea eax, [ebp - 0x114]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46b843
sub eax, ecx
mov ecx, 0x100
sub ecx, eax
mov dword [ebp - 0x138], ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp + eax - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x114]
push ecx
push str.X_SpectorMachineID
mov ecx, edi
call fcn.004a61b0
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x60]
add eax, 0x66b5
push eax
push str.X_SpectorComputerID
mov ecx, edi
call fcn.004a61b0
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x16a0]
push eax
push 0x54f274
lea ecx, [ebp - 0x114]
push ecx
call fcn.004ff1e4
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push str.X_SpectorBuild
mov ecx, edi
call fcn.004a61b0
mov eax, 1
cmp dword [ebp - 0x120], 0
jne 0x46bd82
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x46bd82
test eax, eax
je 0x46bd82
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x46b901
jmp dword [eax*4 + 0x46bdd0]
mov eax, dword [0x5bbfe4]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
push ecx
mov ecx, edi
call fcn.004a6430
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x128]
call fcn.004bfb70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.004bfa40
push 0x54f15a
mov ecx, edi
call fcn.004ab360
lea edx, [ebp - 0x148]
push edx
mov ecx, edi
call fcn.004a62b0
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
mov ecx, esi
call fcn.0046b340
mov ebx, eax
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call fcn.004bfa40
test ebx, ebx
jne 0x46ba18
mov dword [ebp - 0x120], 1
lea edx, [ebp - 0x154]
push edx
mov ecx, edi
call fcn.004a6370
mov byte [ebp - 4], 5
mov eax, dword [eax]
cmp dword [eax - 8], ebx
setne byte [ebp - 0x115]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.004bfa40
cmp byte [ebp - 0x115], bl
je 0x46b9ff
lea ecx, [ebp - 0x150]
push ecx
mov ecx, edi
call fcn.004a6370
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
push edx
push edi
push eax
mov ecx, esi
call fcn.0046b340
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.004bfa40
mov eax, dword [ebp - 0x128]
cmp dword [eax - 8], 0
je 0x46ba18
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push eax
mov ecx, esi
call fcn.0046b340
mov edx, dword [ebp - 0x128]
push edx
mov ecx, edi
call fcn.004ab360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.004bfa40
xor eax, eax
jmp 0x46b8d2
lea ecx, [ebp - 0x1f8]
call fcn.004ba640
mov byte [ebp - 4], 7
push edi
lea ecx, [ebp - 0x1f8]
call fcn.004b8db0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x60]
add ecx, 0x74c4
push ecx
lea ecx, [ebp - 0x1f8]
call fcn.004ba7e0
test eax, eax
je 0x46ba7d
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
jmp 0x46ba81
test ebx, ebx
jne 0x46ba8b
mov dword [ebp - 0x120], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f8]
call fcn.004ba0b0
xor eax, eax
jmp 0x46b8d2
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x60]
cmp byte [eax + 0x6b64], 0
je case.default.0x46b901
mov ecx, dword [esi + 0x24]
cmp dword [ecx + 0x80], 0
je case.default.0x46b901
mov edx, dword [esi]
push str.Using_Relay_SMTP
push 3
push esi
mov eax, dword [edx + 8]
call eax
add esp, 0xc
push 0x54f15a
lea ecx, [ebp - 0x124]
call fcn.004c1780
mov byte [ebp - 4], 8
push 0x54f15a
lea ecx, [ebp - 0x130]
call fcn.004c1780
mov byte [ebp - 4], 9
push 0x54f15a
lea ecx, [ebp - 0x12c]
call fcn.004c1780
mov byte [ebp - 4], 0xa
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x60]
add edx, 0x6b64
push edx
lea ecx, [ebp - 0x124]
call fcn.004bfc00
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 0x60]
add ecx, 0x6c68
push ecx
lea ecx, [ebp - 0x130]
call fcn.004bfc00
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x60]
add eax, 0x6d6c
push eax
lea ecx, [ebp - 0x12c]
call fcn.004bfc00
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x60]
mov ebx, dword [eax + 0x158c]
mov edx, dword [eax + 0x74c0]
mov dword [ebp - 0x144], edx
mov eax, dword [eax + 0x74b8]
mov dword [0x5c213c], eax
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x74bc]
mov dword [0x5c2138], eax
mov ecx, dword [edi + 0xdc]
mov dword [ebp - 0x14c], ecx
mov dword [edi + 0xdc], 1
push 0
mov edx, dword [esi + 0x14]
push edx
mov eax, dword [esi + 0x24]
push eax
lea ecx, [ebp - 0x324]
call fcn.004b50b0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
push ebx
mov ecx, dword [ebp - 0x124]
push ecx
push 0
lea ecx, [ebp - 0x324]
call fcn.004b4a70
push edi
lea ecx, [ebp - 0x324]
call fcn.004b4b80
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1378], eax
lea ecx, [ebp - 0x324]
call fcn.004b58f0
mov ebx, eax
mov dword [ebp - 0x11c], ebx
test ebx, ebx
jne 0x46bc30
cmp dword [esi + 0x18], eax
je 0x46bc30
lea ecx, [ebp - 0x324]
call fcn.004b5a60
mov ebx, eax
mov dword [ebp - 0x11c], ebx
lea ecx, [ebp - 0x324]
call fcn.004b4910
mov ecx, dword [ebp - 0x14c]
mov dword [edi + 0xdc], ecx
test ebx, ebx
jne 0x46bc55
mov dword [ebp - 0x120], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x324]
call fcn.004b51f0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x12c]
call fcn.004bfa40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x130]
call fcn.004bfa40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.004bfa40
xor eax, eax
jmp 0x46b8d2
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x60]
cmp dword [eax + 0x68cc], 0
jne 0x46bd57
mov ecx, dword [esi]
push str.Using_Default_method
push 3
push esi
mov edx, dword [ecx + 8]
call edx
add esp, 0xc
push str.X_SpectorSerial
mov ecx, edi
call fcn.004a9b40
push str.X_SpectorMachineID
mov ecx, edi
call fcn.004a9b40
push str.X_SpectorComputerID
mov ecx, edi
call fcn.004a9b40
push 0
lea ecx, [ebp - 0x168]
call fcn.00498380
mov byte [ebp - 4], 0xc
mov eax, dword [esi + 0x24]
push eax
mov ecx, dword [esi + 0x14]
push ecx
mov edx, dword [esi + 0x28]
push edx
lea ecx, [ebp - 0x19c]
call fcn.0043e1b0
mov byte [ebp - 4], 0xd
push edi
lea ecx, [ebp - 0x19c]
call fcn.0043e480
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov dword [ebp - 0x11c], ebx
jne 0x46bd32
mov dword [ebp - 0x120], 1
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x19c]
call fcn.0043dc10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00498f60
xor eax, eax
jmp 0x46b8d2
mov eax, dword [esi]
push str.SendMailMsg:_Internal_email_disabled.
push 1
push esi
mov ecx, dword [eax + 8]
call ecx
add esp, 0xc
mov dword [ebp - 0x120], 1
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
xor eax, eax
jmp 0x46b8d2
mov dword [ebp - 4], 0xffffffff
jmp 0x46bdaf
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 8