Function at 0x46e268
Capabilities:
Check http status code
Contain obfuscated stackstrings
Create raw socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov eax, 0x47a955
call fcn.0044db9c
mov eax, 0x29d0
call fcn.0044c0a0
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
push 1
mov dword [ebp - 0x1c], ecx
pop ebx
jg 0x46e28f
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
push edi
mov dword [ecx + 0x70], eax
mov al, byte [ebp + 0xb]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 0xcc], al
call fcn.00433aa0
mov esi, str.WANPPPConnection
push esi
call fcn.0044db20
pop ecx
push eax
push esi
lea ecx, [ebp - 0xcc]
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], edi
mov byte [ebp - 0xbc], al
call fcn.00433aa0
mov esi, str.service
push esi
call fcn.0044db20
pop ecx
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
mov byte [ebp - 0xac], al
call fcn.00433aa0
push str.WANIPConnection
call fcn.0044db20
pop ecx
push eax
push str.WANIPConnection
lea ecx, [ebp - 0xac]
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x9c], al
call fcn.00433aa0
push esi
call fcn.0044db20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x8c], al
call fcn.00433aa0
mov esi, str.InternetGatewayDevice
push esi
call fcn.0044db20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x8c]
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
mov byte [ebp - 0x7c], al
call fcn.00433aa0
mov esi, str.device
push esi
call fcn.0044db20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00442ce0
push edi
push 2
push 2
mov byte [ebp - 4], 5
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x24], eax
push ecx
push 0x8004667e
push eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 0x2c], edi
mov esi, 0x48fe48
mov eax, dword [ebp - 0x2c]
cmp eax, 0xc8
jge 0x46e918
push 0x64
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x46e5b7
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x19c]
push eax
call fcn.0046d89a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
add eax, 0x10
push eax
lea eax, [ebp - 0x13c]
push 0x493710
push eax
call fcn.00470f08
push esi
push eax
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 7
push eax
call fcn.00470e7f
push dword [ebp - 0x10]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00470f08
push esi
push eax
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 9
push eax
call fcn.00470e7f
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00470f08
add esp, 0x44
push dword [0x47cb30]
mov byte [ebp - 4], 0xb
push edi
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x10]
call fcn.00446f80
push ebx
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0xa
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 9
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 8
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x1bc]
mov byte [ebp - 4], 7
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 6
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.00433aa0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0xdc], al
call fcn.00433aa0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xc
add eax, 0x10
push eax
lea eax, [ebp - 0x1dc]
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nMAN:__ssdp:discover__r_nMX:_6_r_nST:
push eax
call fcn.00470df6
push str._r_n_r_n
push eax
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00470e7f
add esp, 0x18
push dword [0x47cb30]
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xe
push edi
push eax
call fcn.00446f80
push ebx
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 0xc
call fcn.00433aa0
lea eax, [ebp - 0xdc]
push eax
push 0x76c
push 0xfaffffef
push dword [ebp - 0x24]
call fcn.0046dc9c
add esp, 0x10
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 5
push ebx
call fcn.00433aa0
add dword [ebp - 0x10], 0x20
dec dword [ebp - 0x18]
jne 0x46e409
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2800
lea eax, [ebp - 0x29dc]
push edi
push eax
call fcn.0044e2f0
add esp, 0xc
lea eax, [ebp - 0x29dc]
push edi
push 0x2800
push eax
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_recv]
push eax
push str.recv_Len:_d
mov dword [ebp - 0x18], eax
call fcn.0044ca2f
cmp dword [ebp - 0x18], edi
pop ecx
pop ecx
jle 0x46e90c
lea eax, [ebp - 0x29dc]
push eax
push str.recv_buffer:_s
call fcn.0044ca2f
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
mov byte [ebp - 0x6c], al
push edi
lea ecx, [ebp - 0x6c]
call fcn.00433aa0
push dword [ebp - 0x18]
lea eax, [ebp - 0x29dc]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00442ce0
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
mov byte [ebp - 0x4c], al
call fcn.00433aa0
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0046dd51
pop ecx
test al, al
pop ecx
je 0x46e990
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18c]
push eax
call fcn.0046d89a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0x11
add eax, 0x10
push eax
lea eax, [ebp - 0x16c]
push 0x493710
push eax
call fcn.00470f08
push esi
push eax
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 0x12
push eax
call fcn.00470e7f
push dword [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00470f08
push esi
push eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 0x14
push eax
call fcn.00470e7f
push dword [ebp - 0x14]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00470f08
add esp, 0x44
push dword [0x47cb30]
mov byte [ebp - 4], 0x16
push edi
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x10]
call fcn.00446f80
push ebx
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 0x15
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x14
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 0x13
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x12
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 0x11
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0x10
call fcn.00433aa0
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x46e777
mov eax, 0x47cb2c
push eax
push dword [ebp - 0x20]
push str.name__d____s
call fcn.0044ca2f
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, 0x10
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x46e79d
mov eax, 0x47cb2c
push ecx
push edi
push eax
lea ecx, [ebp - 0x4c]
call fcn.0045b1f4
cmp eax, 0xffffffff
je 0x46e8e1
mov dword [ebp - 0x28], edi
push 0x47d2c8
call fcn.0044db20
pop ecx
push eax
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x28]
push 0x47d2c8
call fcn.0045b1f4
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x46ea0d
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00433aa0
push dword [ebp - 0x14]
lea eax, [ebp - 0xfc]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x17
push dword [ebp - 0x28]
push eax
call fcn.0045b1c1
push dword [0x47cb30]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x18
push edi
push eax
call fcn.00446f80
push ebx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x17
call fcn.00433aa0
mov eax, dword [ebp - 0x14]
add eax, 2
cmp dword [ebp - 0x34], edi
mov dword [ebp - 0x28], eax
je 0x46e8d4
push 9
lea eax, [ebp - 0xec]
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045b1c1
and byte [ebp - 0x5c], 0
xor eax, eax
lea edi, [ebp - 0x5b]
mov byte [ebp - 4], 0x19
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0xe8]
test eax, eax
jne 0x46e86b
mov eax, 0x47cb2c
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004535a0
mov edx, dword [ebp - 0xe4]
pop ecx
test edx, edx
pop ecx
je 0x46e898
mov al, byte [ebp + edx - 0x5c]
lea ecx, [ebp + edx - 0x5c]
cmp al, 0x61
jl 0x46e895
cmp al, 0x7a
jg 0x46e895
sub al, 0x20
mov byte [ecx], al
dec edx
jne 0x46e881
lea eax, [ebp - 0x5c]
push str.LOCATION:
push eax
call fcn.004503d0
pop ecx
test eax, eax
pop ecx
je 0x46ea16
push ebx
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x17
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.00433aa0
xor edi, edi
jmp 0x46e7b4
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.00433aa0
inc dword [ebp - 0x20]
add dword [ebp - 0x10], 0x20
cmp dword [ebp - 0x20], 2
jl 0x46e671
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.00433aa0
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jle 0x46e3dd
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.00433aa0
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00433aa0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xcc]
call fcn.00433aa0
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.00433aa0
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00433aa0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xcc]
call fcn.00433aa0
xor al, al
jmp 0x46e97f
and byte [ebp + 0xb], 0
jmp 0x46eaba
push dword [ebp - 0x34]
lea eax, [ebp - 0xfc]
lea ecx, [ebp - 0x3c]
push 9
push eax
call fcn.0045b1c1
push dword [0x47cb30]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x1a
push 0
push eax
call fcn.00446f80
push ebx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x19
call fcn.00433aa0
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x20]
push eax
mov ecx, esi
call fcn.004708db
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
push str.GetDescription
call fcn.0044ca2f
mov eax, dword [esi + 4]
pop ecx
test eax, eax
jne 0x46ea83
xor esi, esi
jmp 0x46ea8b
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 4
dec esi
mov ecx, edi
push esi
call fcn.0046eb79
push ebx
lea ecx, [ebp - 0xec]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0x17
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.00433aa0
mov al, byte [ebp + 0xb]
mov byte [ebp + 0xb], al
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00433aa0
push ebx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.00433aa0
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp - 0xbc]
call fcn.00433aa0
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0xcc]
call fcn.00433aa0
mov al, byte [ebp + 0xb]
jmp 0x46e97f