Function at 0x10008df0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x5a0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push 1
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push bind
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008f0f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1b0]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Compatible
push eax
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10008ef8
lea ecx, [esp + 0x1b0]
push str.Compatible_win32
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10008ef8
mov edi, str.Compatible_win32
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1b0]
mov ebx, ecx
lea edi, [esp + 0x1b0]
mov edx, ebx
or ecx, 0xffffffff
sub edx, eax
xor eax, eax
add edx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + 6]
cmp ecx, eax
jbe 0x10008ef8
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x20]
test edx, edx
rep stosd dword es:[edi], eax
jle 0x10008ef8
lea edi, [esp + 0x1b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ebx
sub ecx, edx
lea edi, [esp + 0x20]
mov edx, ecx
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
mov ebp, ecx
jmp 0x10008efc
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x10009020
call fcn.10009700
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x10008f4c
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, 0xff
add esi, 0x23456700
jmp 0x10008f7f
cmp esi, 0xffff
jae 0x10008f83
push esi
lea eax, [esp + 0x24]
push str.macSum:_0x_u
push eax
call ebx
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
call fcn.10009780
add esp, 0x14
mov esi, eax
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x17]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x15]
and edx, 0xff
push edx
and eax, 0xff
mov edx, esi
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
lea eax, [esp + 0xf8]
push str.Compatible_win32__d._d._d._d
push eax
call ebx
add esp, 0x18
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_Agent
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10009020
lea edi, [esp + 0xe8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.Compatible
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5a0
ret