Function at 0x488710
Capabilities:
Create udp socket
Print debug messages
Resolve function by parsing pe exports
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration
Write file on windows

Disassembly:
sub esp, 0x6e0
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x6dc], eax
mov eax, dword [esp + 0x6e4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
xor eax, eax
push 0x64
xor edi, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x84]
push edi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], 1
call fcn.004f9810
add esp, 0xc
push 0x11
mov esi, 2
push esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
xor eax, eax
cmp ebx, edi
jl 0x488af1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], eax
push 0x76c
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x40], si
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x30], si
call dword [sym.imp.WS2_32.dll_htons]
push str.239.255.255.250
mov word [esp + 0x32], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0xffff
push ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jl 0x488815
push 0x10
lea edx, [esp + 0x40]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x48881c
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x488af1
cmp dword [str.urn:schemas_upnp_org:device:InternetGatewayDevice:1], edi
mov dword [esp + 0x10], edi
je 0x488815
mov edi, 0x62c2f8
mov eax, dword [edi]
push eax
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:__s_r_nMAN:__ssdp:discover__r_nMX:_3_r_n_r_n
lea eax, [esp + 0xf0]
push 0x600
push eax
call fcn.004f5aa0
add esp, 0x10
push 0x10
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
lea edx, [esp + 0xf8]
push edx
add edi, 4
push ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
jl 0x48880e
push 0x600
lea ecx, [esp + 0xec]
push 0
push ecx
call fcn.004f9810
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0xe8]
push 0x600
push edx
mov eax, ebx
xor ebp, ebp
call fcn.004885f0
add esp, 8
test eax, eax
jle 0x4889ea
mov edi, edi
add ebp, eax
lea eax, [esp + ebp + 0xe8]
push 0x600
push eax
mov eax, ebx
call fcn.004885f0
add esp, 8
test eax, eax
jg 0x4888c0
test ebp, ebp
je 0x4889ea
lea ecx, [esp + 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetRouteIP.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48893d
push 0
lea edx, [esp + 0x24]
push edx
push ebp
lea eax, [esp + 0xf4]
push eax
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xe8]
xor edi, edi
mov cl, byte [esi]
add esi, 1
add edi, 1
cmp cl, 0xd
jne 0x4889d3
mov dl, byte [esi]
add esi, 1
add edi, 1
cmp dl, 0xa
jne 0x4889d3
mov ecx, dword [0x60e660]
mov eax, dword [str.LOCATION:]
mov dx, word [0x60e664]
push 0xa
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
mov al, byte [0x60e666]
lea ecx, [esp + 0x5c]
push esi
push ecx
mov word [esp + 0x6c], dx
mov byte [esp + 0x6e], al
call fcn.005c48ea
add esp, 0xc
test eax, eax
jne 0x4889d3
mov edx, dword [str.http:__]
mov eax, dword [0x60e66c]
push 7
add esi, 0xa
lea ecx, [esp + 0x7c]
push esi
push ecx
add edi, 0xa
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call fcn.005c48ea
add esp, 0xc
test eax, eax
je 0x488a02
cmp edi, ebp
jne 0x488946
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x28]
cmp dword [edi], 0
mov dword [esp + 0x10], 0
jne 0x48882d
xor eax, eax
jmp 0x488af1
mov al, byte [esi + 7]
add esi, 7
jmp 0x488a10
mov ecx, dword [esp + 0x10]
add esi, 1
mov byte [esp + ecx + 0x64], al
mov al, byte [esi]
add ecx, 1
cmp al, 0x3a
mov dword [esp + 0x10], ecx
je 0x488a2c
cmp al, 0x2f
jne 0x488a10
add ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
push ecx
call fcn.004ff920
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
cmp byte [esi], 0x2f
jne 0x488a84
push 0x76c
push 0x6050c4
lea edx, [esp + 0x54]
call fcn.004894e0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov ecx, eax
add esp, 8
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x488a76
jmp 0x488ab6
mov al, byte [esi + 1]
add esi, 1
cmp al, 0x2f
je 0x488aa0
mov edi, edi
add esi, 1
mov byte [esp + ecx + 0x4c], al
mov al, byte [esi]
add ecx, 1
cmp al, 0x2f
jne 0x488a90
mov eax, dword [esp + 0x14]
add ecx, 1
push ecx
lea edx, [esp + 0x50]
push edx
push eax
call fcn.004ff920
add esp, 0xc
mov al, byte [esi]
xor ecx, ecx
lea ebx, [ebx]
add esi, 1
mov byte [esp + ecx + 0x80], al
mov al, byte [esi]
add ecx, 1
cmp al, 0xd
jne 0x488ac0
mov edx, dword [esp + 0x24]
add ecx, 1
push ecx
lea ecx, [esp + 0x84]
push ecx
push edx
call fcn.004ff920
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x6ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f2719
add esp, 0x6e0
ret