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

Disassembly:
push 0xffffffffffffffff
push 0x613a6d
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 0x40ffd4
mov esi, dword [0x6f62f8]
cmp esi, ebx
jne 0x40fe94
mov esi, 0x6f62fc
mov eax, 0x6c5124
test eax, eax
je 0x41013d
cmp esi, ebx
je 0x41013d
mov ecx, str.idmmzcc3.xpi
test ecx, ecx
je 0x41013d
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.00402ce0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 1
call fcn.0040e5b0
push str.idmmzcc3.xpi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 2
call fcn.0040e5b0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40ff96
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.004023b0
push eax
lea ecx, [esp + 0x38]
call fcn.004023b0
push eax
lea ecx, [esp + 0x24]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e519b
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 0x41013d
cmp edi, 0x1a
jle 0x41011b
mov esi, dword [0x6f62f8]
cmp esi, ebx
jne 0x40ffec
mov esi, 0x6f62fc
mov edx, 0x6c5124
test edx, edx
je 0x41013d
cmp esi, ebx
je 0x41013d
mov eax, str.idmmzcc2.xpi
test eax, eax
je 0x41013d
push edx
lea ecx, [esp + 0x20]
call fcn.00402330
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 4
call fcn.0040e5b0
push str.idmmzcc2.xpi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.0040e5b0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 6
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.004023b0
push eax
call fcn.005e519b
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004023b0
push eax
call fcn.005e519b
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005fdccd
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4100e0
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.004023b0
push eax
lea ecx, [esp + 0x2c]
call fcn.004023b0
push eax
lea ecx, [esp + 0x24]
call fcn.004023b0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e519b
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 0x41013d
mov eax, dword [0x6f6320]
cmp eax, ebx
jne 0x410129
mov eax, 0x6f6324
push str.idmmzcc5
push eax
push 0x6c5124
lea ecx, [esp + 0x1c]
call fcn.0040fbe0
cmp edi, 0x1a
mov eax, 0x6c5e0c
jg 0x41014c
mov eax, 0x6c5dbc
lea edx, [esp + 0x40]
push eax
push edx
call fcn.005e5369
lea eax, [esp + 0x48]
push eax
call fcn.005e519b
add esp, 0xc
cmp eax, ebx
jle 0x410183
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 0x41016c
cmp edi, 0x34
jle 0x4101a0
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.005e569b
add esp, 8
cmp eax, ebx
je 0x4101a0
mov word [eax], 0x33
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x4101ac
mov eax, esi
jmp 0x4101b4
lea eax, [esp + 0x14]
lea esi, [esp + 0x14]
push eax
call fcn.005e519b
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 0x4101e2
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