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

Disassembly:
push 0xffffffffffffffff
push 0x615ced
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 0x40ffa4
mov esi, dword [0x6d22e8]
cmp esi, ebx
jne 0x40fe64
mov esi, 0x6d22ec
mov eax, 0x6a112c
test eax, eax
je 0x41010d
cmp esi, ebx
je 0x41010d
mov ecx, str.idmmzcc3.xpi
test ecx, ecx
je 0x41010d
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], bx
call fcn.00402e00
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 1
call fcn.0040e580
push str.idmmzcc3.xpi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 2
call fcn.0040e580
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e71bf
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005ffe3f
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40ff66
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.00402400
push eax
lea ecx, [esp + 0x38]
call fcn.00402400
push eax
lea ecx, [esp + 0x24]
call fcn.00402400
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e71bf
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 0x41010d
cmp edi, 0x1a
jle 0x4100eb
mov esi, dword [0x6d22e8]
cmp esi, ebx
jne 0x40ffbc
mov esi, 0x6d22ec
mov edx, 0x6a112c
test edx, edx
je 0x41010d
cmp esi, ebx
je 0x41010d
mov eax, str.idmmzcc2.xpi
test eax, eax
je 0x41010d
push edx
lea ecx, [esp + 0x20]
call fcn.00402380
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 4
call fcn.0040e580
push str.idmmzcc2.xpi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.0040e580
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 6
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.00402400
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e71bf
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005ffe3f
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4100b0
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.00402400
push eax
lea ecx, [esp + 0x2c]
call fcn.00402400
push eax
lea ecx, [esp + 0x24]
call fcn.00402400
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e71bf
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 0x41010d
mov eax, dword [0x6d2310]
cmp eax, ebx
jne 0x4100f9
mov eax, 0x6d2314
push str.idmmzcc5
push eax
push 0x6a112c
lea ecx, [esp + 0x1c]
call fcn.0040fbb0
cmp edi, 0x1a
mov eax, 0x6a1e14
jg 0x41011c
mov eax, 0x6a1dc4
lea edx, [esp + 0x40]
push eax
push edx
call fcn.005e7389
lea eax, [esp + 0x48]
push eax
call fcn.005e71bf
add esp, 0xc
cmp eax, ebx
jle 0x410153
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 0x41013c
cmp edi, 0x34
jle 0x410170
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.005e77bb
add esp, 8
cmp eax, ebx
je 0x410170
mov word [eax], 0x33
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x41017c
mov eax, esi
jmp 0x410184
lea eax, [esp + 0x14]
lea esi, [esp + 0x14]
push eax
call fcn.005e71bf
add esp, 4
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xd0]
lea edx, [esp + 0x40]
push ecx
push esi
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4101b2
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