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

Disassembly:
push 0xffffffffffffffff
push 0x6389cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4dc
push ebx
push edi
mov edi, dword [esp + 0x4f4]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 8], ebx
jne 0x410870
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004101e0
add esp, 0x10
test eax, eax
jne 0x4108ac
mov dword [esp + 0x4f4], 0x35
mov edi, dword [esp + 0x4f4]
lea ecx, [esp + 0x28]
push ecx
push 0x20019
push ebx
push str.SoftwareMozillaFirefoxExtensions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410988
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
add esp, 0x4e8
ret
cmp dword [esp + 0x18], ebx
je 0x4108dd
push 0x35
call fcn.00410810
add esp, 4
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x4108dd
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
add esp, 0x4e8
ret
cmp dword [esp + 0x2c], ebx
je 0x410905
cmp dword [esp + 0x18], ebx
je 0x410934
cmp dword [esp + 8], ebx
je 0x410946
push 0x1b
call fcn.00410810
add esp, 4
test eax, eax
je 0x410946
mov dword [esp + 8], 1
cmp dword [esp + 0x4c], ebx
jne 0x410915
cmp dword [esp + 0x50], ebx
je 0x410d46
cmp dword [esp + 0x18], ebx
jne 0x41095f
cmp dword [esp + 0x2c], ebx
jne 0x41095f
push 8
call fcn.00410810
add esp, 4
mov dword [esp + 8], eax
jmp 0x410d46
push 0x1b
call fcn.00410810
add esp, 4
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x410905
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
add esp, 0x4e8
ret
cmp dword [esp + 8], ebx
je 0x41097f
push 8
call fcn.00410810
add esp, 4
mov dword [esp + 8], 1
test eax, eax
jne 0x410d46
mov dword [esp + 8], ebx
jmp 0x410d46
push ebp
push esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
cmp edi, 0x34
mov dword [esp + 0x4f4], ebx
jle 0x410af6
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x4109b6
mov esi, 0x6fca24
mov edx, 0x6c900c
test edx, edx
je 0x410c6e
cmp esi, ebx
je 0x410c6e
mov eax, str.idmmzcc3.xpi
test eax, eax
je 0x410c6e
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
push ebx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4fc], 1
call fcn.004027e0
push esi
lea ecx, [esp + 0x3c]
call fcn.00401ee0
push str.idmmzcc3.xpi
lea ecx, [esp + 0x48]
mov byte [esp + 0x4f8], 2
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4f4], 3
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x410ab8
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 + 0x44]
call fcn.00401f10
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x4f4], 2
call fcn.00401070
lea ecx, [esp + 0x38]
mov byte [esp + 0x4f4], 1
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x4f4], bl
call fcn.00401070
mov edi, dword [esp + 0x4fc]
jmp 0x410c6e
cmp edi, 0x1a
jle 0x410c4b
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x410b0e
mov esi, 0x6fca24
mov edx, 0x6c900c
test edx, edx
je 0x410c6e
cmp esi, ebx
je 0x410c6e
mov eax, str.idmmzcc2.xpi
test eax, eax
je 0x410c6e
lea ecx, [esp + 0x24]
call fcn.004027c0
push ebx
push 0x6c900c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4fc], 4
call fcn.004027e0
push esi
lea ecx, [esp + 0x48]
call fcn.00401ee0
push str.idmmzcc2.xpi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4f8], 5
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x4f4], 6
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x44]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x410c10
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 + 0x38]
call fcn.00401f10
push eax
lea ecx, [esp + 0x48]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x4f4], 5
call fcn.00401070
lea ecx, [esp + 0x44]
mov byte [esp + 0x4f4], 4
call fcn.00401070
lea ecx, [esp + 0x24]
mov byte [esp + 0x4f4], bl
call fcn.00401070
mov edi, dword [esp + 0x4fc]
jmp 0x410c6e
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x410c59
mov eax, 0x6fca4c
push ebx
push str.idmmzcc5
push eax
push 0x6c900c
lea ecx, [esp + 0x24]
call fcn.00410d70
pop esi
cmp edi, 0x1a
mov dword [esp + 0x4c], 0x410
pop ebp
mov eax, 0x6c9e90
jg 0x410c87
mov eax, 0x6c9e40
lea edx, [esp + 0x54]
push eax
push edx
call fcn.00609a95
lea eax, [esp + 0x5c]
push eax
call fcn.00609a4e
add esp, 0xc
cmp eax, ebx
jle 0x410cbe
lea ecx, [esp + 0x54]
mov dx, word [ecx]
add ecx, 2
xor dx, 0x4d
sub edx, 0xff
dec eax
mov word [ecx - 2], dx
jne 0x410ca7
cmp edi, 0x34
jle 0x410cdb
lea eax, [esp + 0x54]
push 0x32
push eax
call fcn.0060a17b
add esp, 8
cmp eax, ebx
je 0x410cdb
mov word [eax], 0x33
lea ecx, [esp + 0x48]
lea edx, [esp + 0xd4]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ebx
lea eax, [esp + 0x60]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410d32
mov eax, dword [esp + 0xc]
cmp eax, ebx
jne 0x410d0a
lea eax, [esp + 0x10]
lea edx, [esp + 0xd4]
push eax
push edx
call fcn.0060c3d3
add esp, 8
test eax, eax
jne 0x410d27
mov dword [esp + 8], 1
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4ec], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x4e4]
mov eax, dword [esp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e8
ret