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

Disassembly:
push 0xffffffffffffffff
push 0x614d8d
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 0x40ffc4
mov esi, dword [0x6d1288]
cmp esi, ebx
jne 0x40fe84
mov esi, 0x6d128c
mov eax, 0x6a012c
test eax, eax
je 0x41012d
cmp esi, ebx
je 0x41012d
mov ecx, str.idmmzcc3.xpi
test ecx, ecx
je 0x41012d
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.0040e5a0
push str.idmmzcc3.xpi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 2
call fcn.0040e5a0
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.005e639f
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e639f
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005feedc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40ff86
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.005e632f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e639f
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 0x41012d
cmp edi, 0x1a
jle 0x41010b
mov esi, dword [0x6d1288]
cmp esi, ebx
jne 0x40ffdc
mov esi, 0x6d128c
mov edx, 0x6a012c
test edx, edx
je 0x41012d
cmp esi, ebx
je 0x41012d
mov eax, str.idmmzcc2.xpi
test eax, eax
je 0x41012d
push edx
lea ecx, [esp + 0x20]
call fcn.00402380
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 4
call fcn.0040e5a0
push str.idmmzcc2.xpi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.0040e5a0
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.005e639f
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00402400
push eax
call fcn.005e639f
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005feedc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x4100d0
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.005e632f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005e639f
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 0x41012d
mov eax, dword [0x6d12b0]
cmp eax, ebx
jne 0x410119
mov eax, 0x6d12b4
push str.idmmzcc5
push eax
push 0x6a012c
lea ecx, [esp + 0x1c]
call fcn.0040fbd0
cmp edi, 0x1a
mov eax, 0x6a0e14
jg 0x41013c
mov eax, 0x6a0dc4
lea edx, [esp + 0x40]
push eax
push edx
call fcn.005e6569
lea eax, [esp + 0x48]
push eax
call fcn.005e639f
add esp, 0xc
cmp eax, ebx
jle 0x410173
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 0x41015c
cmp edi, 0x34
jle 0x410190
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.005e699b
add esp, 8
cmp eax, ebx
je 0x410190
mov word [eax], 0x33
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x41019c
mov eax, esi
jmp 0x4101a4
lea eax, [esp + 0x14]
lea esi, [esp + 0x14]
push eax
call fcn.005e639f
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 0x4101d2
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