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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f55dc
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x4c8
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40e312
call fcn.0040dc70
mov dword [esp + 0x4dc], eax
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SoftwareMozillaFirefoxExtensions
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e349
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c8]
mov dword fs:[0], ecx
add esp, 0x4d4
ret
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov word [esp + 0x10], bx
mov eax, dword [esp + 0x4e4]
mov dword [esp + 0x4dc], ebx
cmp eax, 0x1a
mov edi, str.idmmzcc7
jg 0x40e375
mov edi, str.idmmzcc5
mov esi, dword [0x6d1130]
cmp esi, ebx
jne 0x40e384
mov esi, 0x6d1134
mov ecx, 0x6a2074
test ecx, ecx
je 0x40e4be
cmp esi, ebx
je 0x40e4be
cmp edi, ebx
je 0x40e4be
push ebp
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.00402980
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.00402060
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4e4], 2
call fcn.0040d7a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e0], 3
call fcn.00401070
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00402050
push eax
call fcn.005c7292
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40e48b
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.00402050
push eax
lea ecx, [esp + 0x24]
call fcn.00402050
push eax
lea ecx, [esp + 0x34]
call fcn.00402050
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c7292
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 ebp
mov eax, dword [esp + 0x4e4]
pop edi
cmp eax, 0x1a
mov dword [esp + 0x30], 0x410
pop esi
mov eax, 0x6a2d34
jg 0x40e4de
mov eax, 0x6a2ce4
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.005c742a
lea eax, [esp + 0x44]
push eax
call fcn.005c7292
add esp, 0xc
cmp eax, ebx
jle 0x40e515
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x40e4fe
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xbc]
push eax
mov eax, dword [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x48]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e569
mov eax, dword [esp + 4]
cmp eax, ebx
jne 0x40e544
lea eax, [esp + 8]
lea ecx, [esp + 0xbc]
push eax
push ecx
call fcn.005c996c
add esp, 8
test eax, eax
jne 0x40e55e
mov ebx, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x4d4], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x4cc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x4d4
ret