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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bf77b
push eax
mov dword fs:[0], esp
sub esp, 0xfc
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
push edi
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WSOCK32.dll_bind
mov ebp, 1
call ebx
test eax, eax
jne 0x40cb6d
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cb5a
lea ecx, [esp + 0x28]
push 0x2e
push ecx
mov esi, ebp
call fcn.00591740
add esp, 8
test eax, eax
je 0x40cb5a
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.00591a83
add esp, 4
test eax, eax
je 0x40cb5a
cmp eax, 8
jge 0x40cb5a
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40cd4c
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMozillaAurora
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x40cc05
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push esi
push esi
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cbf2
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.00591740
add esp, 8
test eax, eax
je 0x40cbf2
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call fcn.00591a83
add esp, 4
test eax, eax
je 0x40cbf2
cmp eax, 8
jge 0x40cbf2
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40cd4c
call fcn.00438150
test eax, eax
je 0x40cd40
lea edx, [esp + 0x10]
xor esi, esi
push edx
push 0x20119
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x40ccaa
mov ecx, 0x19
lea edi, [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cc97
lea eax, [esp + 0x28]
mov esi, 1
push 0x2e
push eax
mov ebp, esi
call fcn.00591740
add esp, 8
test eax, eax
je 0x40cc97
lea ecx, [esp + 0x28]
mov byte [eax], 0
push ecx
call fcn.00591a83
add esp, 4
test eax, eax
je 0x40cc97
cmp eax, 8
jge 0x40cc97
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40cd4c
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push esi
push str.SoftwareMozillaAurora
push reloc.WSOCK32.dll_bind
call ebx
test eax, eax
jne 0x40cd40
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
xor edi, edi
push edx
push edi
push edi
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cd31
lea ecx, [esp + 0x28]
mov esi, 1
push 0x2e
push ecx
mov ebp, esi
call fcn.00591740
add esp, 8
cmp eax, edi
je 0x40cd31
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.00591a83
add esp, 4
cmp eax, edi
je 0x40cd31
cmp eax, 8
jge 0x40cd31
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x40cd4e
call fcn.0040c9e0
xor eax, eax
jmp 0x40cea0
xor edi, edi
call fcn.0040c750
test eax, eax
je 0x40cd5e
xor eax, eax
jmp 0x40cea0
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push edi
push str.SoftwareMozillaFirefoxExtensions
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
je 0x40cd80
xor eax, eax
jmp 0x40cea0
cmp dword [esp + 0x11c], edi
je 0x40cdc3
cmp ebp, edi
je 0x40cdc3
xor esi, esi
push 0x666d30
call fcn.00414c60
add esp, 4
test eax, eax
jne 0x40cdb6
push 0x3e8
call fcn.0041f050
add esp, 4
inc esi
cmp esi, 0x12c
jl 0x40cd8f
push 0x2bf20
call fcn.0041f050
add esp, 4
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x20], di
mov eax, dword [0x691b58]
mov dword [esp + 0x114], edi
cmp eax, edi
jne 0x40cde5
mov eax, 0x691b5c
push str.idmmzcc5
push eax
push 0x665ff4
lea ecx, [esp + 0x28]
call fcn.0040cec0
lea edx, [esp + 0x8c]
push 0x666c94
push edx
call fcn.005918aa
lea eax, [esp + 0x94]
push eax
call fcn.00591712
add esp, 0xc
cmp eax, edi
jle 0x40ce3d
lea ecx, [esp + 0x8c]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x40ce26
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x40ce49
mov eax, esi
jmp 0x40ce51
lea eax, [esp + 0x20]
lea esi, [esp + 0x20]
push eax
call fcn.00591712
mov edx, dword [esp + 0x1c]
add esp, 4
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x8c]
push eax
push esi
push 1
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40ce7f
mov edi, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401070
mov eax, edi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret