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

Disassembly:
push 0x28
mov eax, 0x4a2f0a
call fcn.00483f50
xor eax, eax
inc eax
xor ebx, ebx
cmp byte [0x4f3350], bl
mov edi, 0x4f19f8
sete bl
mov esi, SysReAllocStringLen
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
add ebx, esi
call fcn.004016bd
mov byte [ebp - 4], 2
call fcn.004079af
test al, al
jne 0x4074d5
mov eax, dword [0x4f3280]
push 0x64
cdq
pop ecx
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x7b]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00482751
push eax
call fcn.0048453a
pop ecx
pop ecx
cmp byte [ebp + 0x14], 0
je 0x407526
cmp byte [0x4ed02c], 0
jne 0x407526
mov eax, dword [0x4f3408]
cmp dword [eax - 0xc], 0
jne 0x4074f3
mov ebx, esi
jmp 0x407526
push 0x4af858
lea eax, [ebp + 0x14]
push 0x4f3408
push eax
mov ebx, VariantInit
call fcn.00401e52
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00401cd5
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404d08
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 4
pop eax
push edi
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], al
call fcn.004016bd
mov edi, 0x4af8c0
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.0040181c
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.00401dfd
mov esi, 0x4f340c
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 7
call fcn.00401dfd
push 0x4af858
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 8
call fcn.00401e52
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.00401dfd
add esp, 0x30
push 0xa
pop ecx
mov byte [ebp - 4], cl
push eax
lea ecx, [ebp + 0x14]
call fcn.00401cd5
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00404d08
push edi
lea ecx, [ebp - 0x18]
call fcn.0040181c
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1c]
push eax
call fcn.00401dfd
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xc
call fcn.00401dfd
push 0x4af858
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xd
call fcn.00401e52
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xe
call fcn.00401dfd
add esp, 0x30
xor ecx, ecx
push ecx
push ecx
push 0x20006
push ecx
push ecx
push dword [eax]
lea ecx, [ebp - 0x34]
push ebx
call fcn.00406969
mov ecx, dword [ebp - 0x28]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.00404d08
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00404d08
test bl, bl
jne 0x407704
mov eax, dword [ebp + 0x10]
push 4
pop ecx
push ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push ecx
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x34]
test eax, eax
je 0x4076be
call fcn.0040694f
jmp 0x407706
call fcn.0040694f
mov esi, dword [0x4f3280]
push 0xa
lea eax, [esi + 1]
imul eax, esi
cdq
pop ecx
idiv ecx
xor edi, edi
inc edi
cmp edx, edi
jne 0x407709
push 8
mov ecx, ebx
pop edx
mov eax, ecx
and eax, edi
dec eax
not eax
and eax, esi
sar ecx, 1
xor ecx, eax
dec edx
jne 0x4076e1
add esi, ecx
inc ebx
cmp ebx, 0x100
jl 0x4076dc
mov dword [0x4f3280], esi
jmp 0x407709
xor ebx, ebx
mov byte [ebp - 0x14], bl
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00404d08
lea ecx, [ebp - 0x34]
call fcn.0040694f
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00404d08
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404d08
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00404d08
mov al, byte [ebp - 0x14]
call fcn.00483f1e
ret