Function at 0x411020
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x638a5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov edi, dword [esp + 0xd4]
mov dword [esp + 0xc8], ebx
cmp edi, 0x34
jle 0x4111b4
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x411074
mov esi, 0x6fca24
mov eax, 0x6c900c
test eax, eax
je 0x41132c
cmp esi, ebx
je 0x41132c
mov ecx, str.idmmzcc3.xpi
test ecx, ecx
je 0x41132c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0], 1
call fcn.004027e0
push esi
lea ecx, [esp + 0x38]
call fcn.00401ee0
push str.idmmzcc3.xpi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 2
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x34]
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 + 0x10], edi
je 0x411176
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 + 0x28]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xc8], 2
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 1
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], bl
call fcn.00401070
mov edi, dword [esp + 0xd4]
jmp 0x41132c
cmp edi, 0x1a
jle 0x411309
mov esi, dword [0x6fca20]
cmp esi, ebx
jne 0x4111cc
mov esi, 0x6fca24
mov edx, 0x6c900c
test edx, edx
je 0x41132c
cmp esi, ebx
je 0x41132c
mov eax, str.idmmzcc2.xpi
test eax, eax
je 0x41132c
lea ecx, [esp + 0x1c]
call fcn.004027c0
push ebx
push 0x6c900c
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0], 4
call fcn.004027e0
push esi
lea ecx, [esp + 0x2c]
call fcn.00401ee0
push str.idmmzcc2.xpi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 6
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [esp + 0x28]
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 + 0x10], edi
je 0x4112ce
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 + 0x34]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x24]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xc8], 5
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0xc8], 4
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], bl
call fcn.00401070
mov edi, dword [esp + 0xd4]
jmp 0x41132c
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x411317
mov eax, 0x6fca4c
push ebx
push str.idmmzcc5
push eax
push 0x6c900c
lea ecx, [esp + 0x20]
call fcn.00410d70
cmp edi, 0x1a
mov eax, 0x6c9e90
jg 0x41133b
mov eax, 0x6c9e40
lea edx, [esp + 0x40]
push eax
push edx
call fcn.00609a95
lea eax, [esp + 0x48]
push eax
call fcn.00609a4e
add esp, 0xc
cmp eax, ebx
jle 0x411372
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 0x41135b
cmp edi, 0x34
jle 0x41138f
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.0060a17b
add esp, 8
cmp eax, ebx
je 0x41138f
mov word [eax], 0x33
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x41139b
lea eax, [esp + 0x14]
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401f10
push eax
mov eax, dword [esp + 0xd8]
push 1
lea edx, [esp + 0x4c]
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4113d2
mov ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret