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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bf75c
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.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c7a5
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 [0x691b58]
mov dword [esp + 0x4d8], ebx
cmp esi, ebx
jne 0x40c7c9
mov esi, 0x691b5c
mov ecx, 0x665ff4
test ecx, ecx
je 0x40c90e
cmp esi, ebx
je 0x40c90e
mov edx, str.idmmzcc5
test edx, edx
je 0x40c90e
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.00402800
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.00401ee0
push str.idmmzcc5
lea ecx, [esp + 0x40]
mov byte [esp + 0x4e4], 2
call fcn.00403af0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e0], 3
call fcn.00401070
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
call fcn.00401ed0
push eax
call fcn.00591712
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00401ed0
push eax
call fcn.00591712
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005a9fe9
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40c8da
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.00401ed0
push eax
lea ecx, [esp + 0x24]
call fcn.00401ed0
push eax
lea ecx, [esp + 0x34]
call fcn.00401ed0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005916a2
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00591712
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 0x666c94
push edx
mov dword [esp + 0x38], 0x410
xor esi, esi
call fcn.005918aa
lea eax, [esp + 0x48]
push eax
call fcn.00591712
add esp, 0xc
cmp eax, ebx
jle 0x40c953
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 0x40c93c
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 0x40c9a7
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x40c982
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc0]
push eax
push ecx
call fcn.00593cdc
add esp, 8
test eax, eax
jne 0x40c99c
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