Function at 0x5524ce
Capabilities:
Query or enumerate registry value
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0xfe8]
mov eax, 0x1068
call fcn.0040b570
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0xfe4], eax
mov eax, dword [ebp + 0xff4]
and dword [ebp - 0x70], 0
push ebx
push esi
push edi
push str.IPHLPAPI.DLL
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], 0x1000
lea ebx, [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x74], eax
je 0x552534
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, ebx
push ecx
call eax
mov edi, eax
jmp 0x552539
mov edi, 0x482
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x552546
xor ebx, ebx
cmp dword [ebp - 0x7c], 0x288
jae 0x552551
xor ebx, ebx
test ebx, ebx
mov edi, dword [sym.imp.WS2_32.dll_sendto]
je 0x5525ce
mov eax, dword [ebx + 0x1a0]
cmp eax, 0x17
jb 0x552570
cmp eax, 0x18
jbe 0x5525ab
cmp eax, 0x1c
je 0x5525ab
cmp dword [ebx + 0x224], 0
jne 0x5525be
mov eax, dword [ebx + 0x1a8]
test eax, eax
je 0x5525ab
lea esi, [ebp - 0x6c]
call fcn.0055233c
test al, al
je 0x5525ab
push 0x10
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp + 0xff8]
push dword [ebp - 0x78]
push dword [ebp + 0xff0]
call edi
inc dword [ebp - 0x70]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x55255b
xor esi, esi
cmp dword [ebp - 0x70], esi
jne 0x552709
jmp 0x5525d0
lea eax, [ebx + 0x228]
lea esi, [ebp - 0x6c]
call fcn.005522f8
jmp 0x55258b
xor esi, esi
cmp dword [ebp - 0x74], esi
jne 0x55265b
lea eax, [ebp - 0x70]
push eax
push 1
push esi
push str.SYSTEMCurrentControlSetServicesTCPIPParameters
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x74], 0x40
jne 0x55261d
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xfa4]
push eax
push esi
push esi
push str.DhcpNameServer
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x55265b
lea eax, [ebp + 0xfa4]
push eax
lea esi, [ebp - 0x6c]
call fcn.005523a0
test al, al
pop ecx
je 0x55265b
push 0x10
mov eax, esi
push eax
push 0
push dword [ebp + 0xff8]
push dword [ebp - 0x78]
push dword [ebp + 0xff0]
call edi
jmp 0x552709
mov ecx, dword [ebp + 0xffc]
mov eax, dword [ebp - 0x78]
or ecx, 0x10
call fcn.00552259
mov ebx, dword [ebp + 0xff0]
push 4
lea eax, [ebp - 0x80]
push eax
push 0x20
push 0xffff
push ebx
mov dword [ebp - 0x80], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x70]
push eax
push ebx
call fcn.00552485
cmp dword [ebp - 0x70], 0
pop ecx
pop ecx
mov esi, eax
jne 0x5526c3
push 0x67381c
lea eax, [ebp - 0x6c]
call fcn.005522bd
pop ecx
push 0x10
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp + 0xff8]
push dword [ebp - 0x78]
push ebx
jmp 0x552654
jbe 0x552709
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 8]
and ecx, eax
not eax
or ecx, eax
mov eax, dword [esi]
and al, 6
cmp al, 2
mov dword [ebp - 0x74], ecx
jne 0x5526fd
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
call fcn.005522bd
pop ecx
push 0x10
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp + 0xff8]
push dword [ebp - 0x78]
push ebx
call edi
dec dword [ebp - 0x70]
add esi, 0x4c
cmp dword [ebp - 0x70], 0
ja 0x5526c5
mov ecx, dword [ebp + 0xfe4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040916a
add ebp, 0xfe8
leave
ret