Function at 0x46e300
Capabilities:
Check http status code
Contain obfuscated stackstrings
Create raw socket
Receive data
Receive data on socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a9b74
push eax
mov eax, 0x29d0
mov dword fs:[0], esp
call fcn.0049d320
mov eax, dword [esp + 0x29e0]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x14], ecx
jg 0x46e340
mov eax, 1
mov dword [esp + 0x29f0], eax
mov dword [ecx + 0x70], eax
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call dword [0x4ab28c]
mov edi, str.WANPPPConnection
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WANPPPConnection
lea ecx, [esp + 0x6c]
call dword [0x4ab25c]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x78]
mov dword [esp + 0x29ec], esi
call dword [0x4ab28c]
mov edi, str.service
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.service
lea ecx, [esp + 0x7c]
call dword [0x4ab25c]
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
mov byte [esp + 0x88], dl
call dword [0x4ab28c]
mov edi, str.WANIPConnection
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WANIPConnection
lea ecx, [esp + 0x8c]
call dword [0x4ab25c]
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
mov byte [esp + 0x98], al
call dword [0x4ab28c]
mov edi, str.service
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.service
lea ecx, [esp + 0x9c]
call dword [0x4ab25c]
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0xa8], cl
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [0x4ab28c]
mov edi, str.InternetGatewayDevice
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.InternetGatewayDevice
lea ecx, [esp + 0xac]
call dword [0x4ab25c]
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
mov byte [esp + 0xb8], dl
call dword [0x4ab28c]
mov edi, str.device
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.device
lea ecx, [esp + 0xbc]
call dword [0x4ab25c]
push esi
push 2
push 2
mov byte [esp + 0x29f4], 5
call dword [0x4ab7b4]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], eax
push ecx
push 0x8004667e
push eax
mov dword [esp + 0xd4], 1
call dword [0x4ab7ac]
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
jge 0x46ec15
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x46e747
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x64]
mov ebx, 2
lea edi, [edx + 0x10]
mov eax, dword [esp + 0x29f0]
lea ecx, [esp + 0x190]
push eax
push ecx
call fcn.0046cf80
mov ebp, eax
lea edx, [esi + 0x10]
lea eax, [esp + 0x138]
push edx
push 0x50ec68
push eax
mov byte [esp + 0x29fc], 6
call fcn.004986e4
push 0x4c5c5c
lea ecx, [esp + 0x1c8]
push eax
push ecx
mov byte [esp + 0x2a08], 7
call fcn.00498714
push esi
lea edx, [esp + 0x1e4]
push eax
push edx
mov byte [esp + 0x2a14], 8
call fcn.004986e4
push 0x4c5c5c
push eax
lea eax, [esp + 0x1d4]
mov byte [esp + 0x2a1c], 9
push eax
call fcn.00498714
push ebp
lea ecx, [esp + 0x13c]
push eax
push ecx
mov byte [esp + 0x2a2c], 0xa
call fcn.004986e4
add esp, 0x44
mov edx, dword [0x4ab348]
mov byte [esp + 0x29e8], 0xb
mov ecx, dword [edx]
push ecx
push 0
push eax
mov ecx, edi
call dword [0x4ab254]
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x29ec], 0xa
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x29ec], 9
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x1c4]
mov byte [esp + 0x29ec], 8
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x1b4]
mov byte [esp + 0x29ec], 7
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x134]
mov byte [esp + 0x29ec], 6
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x194]
mov byte [esp + 0x29ec], 5
call dword [0x4ab28c]
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xe4]
mov byte [esp + 0xe4], dl
call dword [0x4ab28c]
push edi
lea eax, [esp + 0x1d4]
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
mov byte [esp + 0x29f4], 0xc
call fcn.00498720
push str._r_n_r_n
lea ecx, [esp + 0x160]
push eax
push ecx
mov byte [esp + 0x2a00], 0xd
call fcn.00498714
add esp, 0x18
mov edx, dword [0x4ab348]
mov byte [esp + 0x29e8], 0xe
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0xec]
call dword [0x4ab254]
push 1
lea ecx, [esp + 0x154]
mov byte [esp + 0x29ec], 0xd
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x1d4]
mov byte [esp + 0x29ec], 0xc
call dword [0x4ab28c]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xe0]
push edx
push 0x76c
push 0xfaffffef
push eax
call fcn.0046d7f0
add esp, 0x10
lea ecx, [esp + 0xe0]
mov byte [esp + 0x29e8], 5
push 1
call dword [0x4ab28c]
add esi, 0x20
dec ebx
jne 0x46e523
mov ecx, dword [esp + 0x14]
push 0xa
mov edx, dword [ecx + 0xa8]
push edx
call dword [0x4ab154]
test eax, eax
je 0x46ec15
mov ecx, 0xa00
xor eax, eax
lea edi, [esp + 0x1e0]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x1e4]
push 0x2800
push eax
push ecx
call dword [0x4ab754]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0xc4], esi
jle 0x46ec04
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], dl
call dword [0x4ab28c]
lea eax, [esp + 0x1e0]
push esi
push eax
lea ecx, [esp + 0x5c]
call dword [0x4ab25c]
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [0x4ab28c]
lea edx, [esp + 0x30]
lea eax, [esp + 0x54]
push edx
push eax
mov byte [esp + 0x29f0], 0x10
call fcn.0046d900
add esp, 8
test al, al
je 0x46ec4e
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x64]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
lea ebx, [ecx + 0x10]
mov edx, dword [esp + 0x29f0]
lea eax, [esp + 0x180]
push edx
push eax
call fcn.0046cf80
mov esi, eax
lea ecx, [edi + 0x10]
lea edx, [esp + 0x168]
push ecx
push 0x50ec68
push edx
mov byte [esp + 0x29fc], 0x11
call fcn.004986e4
push 0x4c5c5c
push eax
lea eax, [esp + 0x15c]
mov byte [esp + 0x2a04], 0x12
push eax
call fcn.00498714
push edi
lea ecx, [esp + 0x144]
push eax
push ecx
mov byte [esp + 0x2a14], 0x13
call fcn.004986e4
push 0x4c5c5c
lea edx, [esp + 0x140]
push eax
push edx
mov byte [esp + 0x2a20], 0x14
call fcn.00498714
push esi
push eax
lea eax, [esp + 0x1b0]
mov byte [esp + 0x2a28], 0x15
push eax
call fcn.004986e4
add esp, 0x44
mov ecx, dword [0x4ab348]
mov byte [esp + 0x29e8], 0x16
mov edx, dword [ecx]
mov ecx, ebx
push edx
push ebp
push eax
call dword [0x4ab254]
push 1
lea ecx, [esp + 0x174]
mov byte [esp + 0x29ec], 0x15
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x29ec], 0x14
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x29ec], 0x13
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x29ec], 0x12
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x164]
mov byte [esp + 0x29ec], 0x11
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x184]
mov byte [esp + 0x29ec], 0x10
call dword [0x4ab28c]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ebp
jne 0x46e964
mov eax, dword [0x4ab258]
push ecx
push ebp
push eax
lea ecx, [esp + 0x3c]
call dword [0x4ab2c4]
cmp eax, 0xffffffff
je 0x46eb7b
xor ebp, ebp
mov edi, 0x4c34a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x4c34a0
lea ecx, [esp + 0x3c]
call dword [0x4ab2c4]
mov esi, eax
cmp esi, 0xffffffff
je 0x46ec4e
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call dword [0x4ab28c]
push esi
lea ecx, [esp + 0xf4]
push ebp
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x29f4], 0x17
call dword [0x4ab2d0]
mov edx, dword [0x4ab348]
mov byte [esp + 0x29e8], 0x18
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x2c]
call dword [0x4ab254]
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x29ec], 0x17
call dword [0x4ab28c]
mov eax, dword [esp + 0x28]
add esi, 2
test eax, eax
mov dword [esp + 0xcc], esi
je 0x46eb61
push 9
lea edx, [esp + 0xd4]
push 0
push edx
lea ecx, [esp + 0x2c]
call dword [0x4ab2d0]
mov ebp, dword [esp + 0xd4]
mov edi, dword [0x4ab258]
xor eax, eax
mov byte [esp + 0x29e8], 0x19
mov dword [esp + 0x41], eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x45], eax
test ebp, ebp
mov byte [esp + 0x49], al
je 0x46ea66
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xd8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
mov ecx, eax
je 0x46eaa9
mov al, byte [esp + ecx + 0x40]
cmp al, 0x61
jl 0x46eaa6
cmp al, 0x7a
jg 0x46eaa6
sub al, 0x20
mov byte [esp + ecx + 0x40], al
dec ecx
jne 0x46ea94
mov esi, 0x4c5bf4
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46ead8
test cl, cl
je 0x46ead2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46ead8
add eax, 2
add esi, 2
test cl, cl
jne 0x46eab2
xor edi, edi
xor eax, eax
jmp 0x46eadf
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
je 0x46ed04
cmp ebp, edi
je 0x46eb08
mov al, byte [ebp - 1]
lea ecx, [ebp - 1]
test al, al
je 0x46eaff
cmp al, 0xff
je 0x46eaff
dec al
mov byte [ecx], al
jmp 0x46eb08
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xd4], edi
cmp ecx, edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], edi
mov byte [esp + 0x29e8], 0x10
je 0x46eb49
mov al, byte [ecx - 1]
test al, al
je 0x46eb3f
cmp al, 0xff
je 0x46eb3f
dec al
mov byte [ecx - 1], al
jmp 0x46eb49
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
jmp 0x46e97c
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x29ec], 0x10
call dword [0x4ab28c]
mov edi, dword [esp + 0x4c]
xor ebp, ebp
mov eax, dword [esp + 0x50]
add edi, 0x20
inc eax
mov dword [esp + 0x4c], edi
cmp eax, 2
mov dword [esp + 0x50], eax
jl 0x46e814
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x46ebb9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46ebb0
cmp al, 0xff
je 0x46ebb0
dec al
mov byte [ecx], al
jmp 0x46ebb9
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], ebp
cmp ecx, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x29e8], 5
je 0x46ebf1
mov al, byte [ecx - 1]
test al, al
je 0x46ebe7
cmp al, 0xff
je 0x46ebe7
dec al
mov byte [ecx - 1], al
jmp 0x46ebf1
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov ecx, dword [esp + 0x1c]
inc ecx
cmp esi, ebp
mov dword [esp + 0x1c], ecx
jle 0x46e4f4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x4ab760]
mov ecx, dword [esp + 0xb8]
xor esi, esi
cmp ecx, esi
je 0x46eeb2
mov al, byte [ecx - 1]
test al, al
je 0x46eea8
cmp al, 0xff
je 0x46eea8
dec al
mov byte [ecx - 1], al
jmp 0x46eeb2
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x29ec], 5
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x78]
mov byte [esp + 0x29ec], 0
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x68]
mov dword [esp + 0x29ec], 0xffffffff
call dword [0x4ab28c]
xor al, al
jmp 0x46efd4
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xf0]
push eax
push 9
push ecx
lea ecx, [esp + 0x2c]
call dword [0x4ab2d0]
mov edx, dword [0x4ab348]
mov byte [esp + 0x29e8], 0x1a
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x2c]
call dword [0x4ab254]
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x29ec], 0x19
call dword [0x4ab28c]
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 1
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call fcn.00472320
mov eax, dword [esp + 0x18]
push eax
call dword [0x4ab760]
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x46ed80
xor esi, esi
jmp 0x46ed88
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 4
dec esi
mov ecx, ebx
push esi
call fcn.0046f040
push 1
lea ecx, [esp + 0xd4]
mov bl, al
mov byte [esp + 0x29ec], 0x17
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x29ec], 0x10
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x29ec], 0xf
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x29ec], 5
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0xb8]
mov byte [esp + 0x29ec], 4
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x29ec], 3
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x29ec], 2
call dword [0x4ab28c]
push 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x29ec], 1
call dword [0x4ab28c]
mov eax, dword [esp + 0x78]
xor esi, esi
cmp eax, esi
je 0x46ee69
mov cl, byte [eax - 1]
test cl, cl
je 0x46ee5f
cmp cl, 0xff
je 0x46ee5f
dec cl
mov byte [eax - 1], cl
jmp 0x46ee69
dec eax
push eax
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], esi
cmp ecx, esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
je 0x46eea1
mov al, byte [ecx - 1]
test al, al
je 0x46ee97
cmp al, 0xff
je 0x46ee97
dec al
mov byte [ecx - 1], al
mov al, bl
jmp 0x46efd4
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov al, bl
jmp 0x46efd4
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xb8], esi
cmp ecx, esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
je 0x46eeee
mov al, byte [ecx - 1]
test al, al
je 0x46eee4
cmp al, 0xff
je 0x46eee4
dec al
mov byte [ecx - 1], al
jmp 0x46eeee
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xa8], esi
cmp ecx, esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
je 0x46ef2a
mov al, byte [ecx - 1]
test al, al
je 0x46ef20
cmp al, 0xff
je 0x46ef20
dec al
mov byte [ecx - 1], al
jmp 0x46ef2a
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x98], esi
cmp ecx, esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
je 0x46ef66
mov al, byte [ecx - 1]
test al, al
je 0x46ef5c
cmp al, 0xff
je 0x46ef5c
dec al
mov byte [ecx - 1], al
jmp 0x46ef66
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x88], esi
cmp ecx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
je 0x46ef9f
mov al, byte [ecx - 1]
test al, al
je 0x46ef95
cmp al, 0xff
je 0x46ef95
dec al
mov byte [ecx - 1], al
jmp 0x46ef9f
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], esi
cmp ecx, esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
je 0x46efd2
mov al, byte [ecx - 1]
test al, al
je 0x46efc8
cmp al, 0xff
je 0x46efc8
dec al
mov byte [ecx - 1], al
jmp 0x46efd2
dec ecx
push ecx
call fcn.004985d0
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x29e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29dc
ret 4