Function at 0x506f6913
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1114
lea ebp, [esp - 0x6c]
call fcn.506f19f4
mov eax, dword [0x506fb050]
and dword [ebp - 0x10a0], 0
push ebx
push esi
mov dword [ebp + 0x68], eax
push edi
lea eax, [ebp - 0x109c]
mov esi, ecx
push eax
mov dword [ebp - 0x10a4], esi
call fcn.506f9580
test eax, eax
jl 0x506f6c3b
lea eax, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.506f54ff
test eax, eax
jne 0x506f6971
mov eax, 0x80020009
jmp 0x506f6c3b
mov ecx, esi
call fcn.506f56b8
lea eax, [ebp - 0x109c]
push eax
mov ecx, esi
call fcn.506f9580
test eax, eax
jl 0x506f6c3b
movzx eax, word [ebp - 0x10a0]
sub eax, 8
je 0x506f6c05
sub eax, 9
je 0x506f6b1d
dec eax
dec eax
je 0x506f6a6f
sub eax, 0x3ff5
jne 0x506f6c27
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
and dword [ebp - 0x9c], 0
inc eax
push eax
lea ecx, [ebp - 0x9c]
call fcn.506f5be9
mov edi, dword [ebp - 0x9c]
test edi, edi
je 0x506f6a4a
cmp byte [ebp - 0x109c], 0
lea esi, [ebp - 0x109c]
je 0x506f6a32
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x506f6a14
cmp byte [eax], 0x30
jne 0x506f6a14
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x506f6a2d
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x506f6a2b
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x506f69fa
mov ecx, dword [ebp + 0x74]
mov byte [edi], 0
push dword [ebp - 0x9c]
push dword [ebp + 0x78]
call fcn.506f53e2
mov esi, eax
jmp 0x506f6a4d
push 0xe
pop esi
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x506f6c1b
lea ecx, [ebp - 0x9c]
call fcn.506f59b7
jmp 0x506f6c1b
call dword [0x506fb66c]
and dword [ebp - 0x10a0], 0
mov ebx, eax
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, eax
inc esi
lea edi, [esi + esi]
cmp edi, 0x400
ja 0x506f6ab4
push edi
call fcn.506f516a
test al, al
je 0x506f6ab4
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.506f19f4
mov eax, esp
jmp 0x506f6ac0
push edi
lea ecx, [ebp - 0x10a0]
call fcn.506f5b58
push ebx
push esi
lea ecx, [ebp - 0x109c]
push ecx
push eax
call fcn.506f9580
test eax, eax
jne 0x506f6ae8
lea ecx, [ebp - 0x10a0]
call fcn.506f58f5
mov eax, 0x8007000e
jmp 0x506f6c3b
lea ecx, [ebp - 0x10a8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x10a8]
mov ecx, dword [ebp + 0x74]
push dword [ebp + 0x78]
call fcn.506f539f
lea ecx, [ebp - 0x10a0]
mov esi, eax
call fcn.506f58f5
jmp 0x506f6c1b
lea eax, [ebp - 0x109c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10a0], eax
jne 0x506f6b6d
and dword [ebp - 0x9c], 0
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea ecx, [ebp - 0x9c]
call fcn.506f5be9
mov edi, dword [ebp - 0x9c]
test edi, edi
jne 0x506f6b77
lea eax, [ebp - 0x98]
test eax, eax
je 0x506f6b6d
lea ecx, [ebp - 0x9c]
call fcn.506f59b7
mov eax, 0x80004005
jmp 0x506f6c3b
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x10a0], edi
jle 0x506f6bce
mov ecx, dword [ebp - 0x9c]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov al, byte [ebp + edi - 0x109c]
push eax
call fcn.506f55a2
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x10a0]
jl 0x506f6b93
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0x9c]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x9c], eax
je 0x506f6c1b
lea ecx, [ebp - 0x9c]
call fcn.506f59b7
jmp 0x506f6c1b
mov ecx, dword [ebp + 0x74]
push 1
lea eax, [ebp - 0x109c]
push eax
push dword [ebp + 0x78]
call fcn.506f53b9
mov esi, eax
test esi, esi
je 0x506f6c27
push esi
call fcn.506f52c3
jmp 0x506f6c3b
push dword [ebp + 0x7c]
mov ecx, dword [ebp - 0x10a4]
call fcn.506f9580
test eax, eax
jl 0x506f6c3b
xor eax, eax
lea esp, [ebp - 0x10b4]
mov ecx, dword [ebp + 0x68]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc