Function at 0x4088e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616420
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x69cffc]
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
lea eax, [ebp - 0x444]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor edi, edi
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x440], 0x100
push ecx
lea ecx, [ebp - 0x214]
mov eax, edi
push ecx
push eax
push dword [ebp - 0x444]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x408ba9
lea eax, [ebp - 0x214]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_s
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.004083f0
add esp, 0x10
lea eax, [ebp - 0x43c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x41c]
push eax
push reloc.WS2_32.dll_bind
call esi
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0
push eax
push 0
push 0
push 0x20
push str.IPAddress
push 0
push dword [ebp - 0x43c]
call ebx
test eax, eax
jne 0x408940
mov eax, dword [ebp - 0x438]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447f05
add esp, 4
mov esi, eax
lea eax, [ebp - 0x438]
push eax
push esi
push 0
push 0x20
push str.IPAddress
push 0
push dword [ebp - 0x43c]
call ebx
test eax, eax
jne 0x408b98
mov ecx, esi
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], 7
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a43
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x434]
call fcn.00408260
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x448]
push eax
push str._d._d._d._d
push esi
call fcn.00408180
add esp, 0x18
cmp dword [ebp - 0x448], 0xc0
jne 0x408b53
cmp dword [ebp - 0x44c], 0xa8
jne 0x408b53
mov eax, dword [ebp - 0x450]
cmp eax, 1
je 0x408b0c
cmp eax, 3
je 0x408b0c
cmp eax, 2
jne 0x408b53
mov edx, dword [ebp - 0x420]
cmp edx, 8
jb 0x408b02
mov ecx, dword [ebp - 0x434]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408af8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bca
push edx
push ecx
call fcn.0058f106
add esp, 8
mov eax, 0x66f43c
jmp 0x408bae
mov edx, dword [ebp - 0x420]
cmp edx, 8
jb 0x408b4c
mov ecx, dword [ebp - 0x434]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bca
push edx
push ecx
call fcn.0058f106
add esp, 8
mov eax, str.192.168.1.250
jmp 0x408bae
push esi
call fcn.00447f00
mov edx, dword [ebp - 0x420]
add esp, 4
cmp edx, 8
jb 0x408b98
mov ecx, dword [ebp - 0x434]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408bca
push edx
push ecx
call fcn.0058f106
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x408940
mov eax, 0x66eae8
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.0058f0d5
mov esp, ebp
pop ebp
ret
call fcn.005ef2cd
int3