Function at 0x40db0d
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
push 0x254
push 0x4d51d0
call fcn.004a6cc0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x260], eax
and dword [ebp - 0x254], 0
test eax, eax
je 0x40ddbf
xor eax, eax
mov word [ebp - 0x24c], ax
mov esi, 0x206
push esi
push eax
lea eax, [ebp - 0x24a]
push eax
call fcn.0048e0e0
add esp, 0xc
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x25c], esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x258]
push eax
push str.biduid
push str.SoftwareJHotNews
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40dc66
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40db9e
sub eax, edx
sar eax, 1
cmp eax, 8
jbe 0x40dc66
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40dbbe
sub eax, edx
sar eax, 1
mov ebx, eax
lea eax, [ebx + ebx - 0x10]
push eax
lea esi, [ebp - 0x24c]
call fcn.00407608
pop ecx
mov dword [ebp - 0x250], eax
xor eax, eax
xor byte [ebp + eax - 0x250], 0x7c
inc eax
cmp eax, 4
jb 0x40dbe7
xor eax, eax
mov word [ebp - 0x40], ax
push 7
pop ecx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [ebp - 0x250]
push str._08X
push 0xf
lea eax, [ebp - 0x40]
push eax
call fcn.00488ec0
add esp, 0x10
lea esi, [ebp + ebx*2 - 0x25c]
mov ecx, esi
lea eax, [ebp - 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40dc50
test dx, dx
je 0x40dc4c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40dc50
add eax, 4
add ecx, 4
test dx, dx
jne 0x40dc2a
xor eax, eax
jmp 0x40dc55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40dc66
mov word [esi], ax
mov dword [ebp - 0x254], 1
xor eax, eax
cmp dword [ebp - 0x254], eax
jne 0x40dd8f
mov dword [ebp - 4], eax
push 0x208
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0048e0e0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
call fcn.0040d9ee
pop ecx
test eax, eax
je 0x40dcb0
mov dword [ebp - 0x254], 1
jmp 0x40dcb0
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x254], 0
je 0x40ddb7
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40dccd
sub eax, edx
sar eax, 1
mov dword [ebp - 0x264], eax
lea ebx, [eax + eax]
push ebx
lea esi, [ebp - 0x24c]
call fcn.00407608
pop ecx
mov dword [ebp - 0x250], eax
xor eax, eax
xor byte [ebp + eax - 0x250], 0x7c
inc eax
cmp eax, 4
jb 0x40dcf9
xor eax, eax
mov word [ebp - 0x40], ax
push 7
pop ecx
lea edi, [ebp - 0x3e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [ebp - 0x250]
push str._08X
push 0xf
lea eax, [ebp - 0x40]
push eax
call fcn.00488ec0
lea esi, [ebp + ebx - 0x24c]
lea eax, [ebp - 0x40]
push eax
push 0x4c2d64
mov eax, 0x103
sub eax, dword [ebp - 0x264]
push eax
push esi
call fcn.00488ec0
add esp, 0x20
lea eax, [ebp - 0x24c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40dd5b
sub eax, ecx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x24c]
push eax
push 1
push str.biduid
push str.SoftwareJHotNews
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor eax, eax
mov word [esi], ax
cmp dword [ebp - 0x254], 0
je 0x40ddb7
lea eax, [ebp - 0x24c]
push eax
push 0x4c2d64
push 0x103
push dword [ebp - 0x260]
call fcn.00488ec0
add esp, 0x10
mov eax, dword [ebp - 0x254]
jmp 0x40ddc1
xor eax, eax
call fcn.004a6d08
ret