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

Disassembly:
push 0xffffffffffffffff
push 0x60c84d
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 0x40fa44
mov esi, dword [0x6ec738]
cmp esi, ebx
jne 0x40f904
mov esi, 0x6ec73c
mov eax, 0x6bc11c
test eax, eax
je 0x40fbad
cmp esi, ebx
je 0x40fbad
mov ecx, 0x6bd130
test ecx, ecx
je 0x40fbad
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.00402d00
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 1
call fcn.0040e020
push 0x6bd130
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 2
call fcn.0040e020
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 3
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40fa06
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.004023d0
push eax
lea ecx, [esp + 0x38]
call fcn.004023d0
push eax
lea ecx, [esp + 0x24]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005de123
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 0x40fbad
cmp edi, 0x1a
jle 0x40fb8b
mov esi, dword [0x6ec738]
cmp esi, ebx
jne 0x40fa5c
mov esi, 0x6ec73c
mov edx, 0x6bc11c
test edx, edx
je 0x40fbad
cmp esi, ebx
je 0x40fbad
mov eax, 0x6bd114
test eax, eax
je 0x40fbad
push edx
lea ecx, [esp + 0x20]
call fcn.00402350
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcc], 4
call fcn.0040e020
push 0x6bd114
lea ecx, [esp + 0x38]
mov byte [esp + 0xcc], 5
call fcn.0040e020
lea ecx, [esp + 0x10]
mov byte [esp + 0xc8], 6
call fcn.00401070
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x40fb50
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.004023d0
push eax
lea ecx, [esp + 0x2c]
call fcn.004023d0
push eax
lea ecx, [esp + 0x24]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005de123
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 0x40fbad
mov eax, dword [0x6ec760]
cmp eax, ebx
jne 0x40fb99
mov eax, 0x6ec764
push 0x6bd100
push eax
push 0x6bc11c
lea ecx, [esp + 0x1c]
call fcn.0040f650
cmp edi, 0x1a
mov eax, 0x6bce14
jg 0x40fbbc
mov eax, 0x6bcdc4
lea edx, [esp + 0x40]
push eax
push edx
call fcn.005de2e9
lea eax, [esp + 0x48]
push eax
call fcn.005de123
add esp, 0xc
cmp eax, ebx
jle 0x40fbf3
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 0x40fbdc
cmp edi, 0x34
jle 0x40fc10
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.005de61b
add esp, 8
cmp eax, ebx
je 0x40fc10
mov word [eax], 0x33
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40fc1c
mov eax, esi
jmp 0x40fc24
lea eax, [esp + 0x14]
lea esi, [esp + 0x14]
push eax
call fcn.005de123
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 0x40fc52
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