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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f127c
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
lea eax, [esp + 0xc]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareMozillaFirefoxExtensions
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40dba5
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
add esp, 0x4d4
ret
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov word [esp + 0xc], bx
mov esi, dword [0x6cce30]
mov dword [esp + 0x4d8], ebx
cmp esi, ebx
jne 0x40dbc9
mov esi, 0x6cce34
mov ecx, 0x69e048
test ecx, ecx
je 0x40dd0e
cmp esi, ebx
je 0x40dd0e
mov edx, str.idmmzcc5
test edx, edx
je 0x40dd0e
push ebp
push edi
push ebx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
call fcn.00402880
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x4e4], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.00401f50
push str.idmmzcc5
lea ecx, [esp + 0x40]
mov byte [esp + 0x4e4], 2
call fcn.0040d680
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e0], 3
call fcn.00401070
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40dcda
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x3c]
call fcn.00401f40
push eax
lea ecx, [esp + 0x24]
call fcn.00401f40
push eax
lea ecx, [esp + 0x34]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c2f1a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e0], 2
call fcn.00401070
lea ecx, [esp + 0x20]
mov byte [esp + 0x4e0], 1
call fcn.00401070
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4e0], bl
call fcn.00401070
pop edi
pop ebp
lea edx, [esp + 0x40]
push 0x69ecd4
push edx
mov dword [esp + 0x38], 0x410
xor esi, esi
call fcn.005c30ba
lea eax, [esp + 0x48]
push eax
call fcn.005c2f1a
add esp, 0xc
cmp eax, ebx
jle 0x40dd53
lea ecx, [esp + 0x40]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x40dd3c
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc0]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x4c]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40dda7
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x40dd82
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.005c55fc
add esp, 8
test eax, eax
jne 0x40dd9c
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x4d0]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4d4
ret