Function at 0x1006c8e5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9162
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.1009cd28
mov eax, dword [0x100eed78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x112c], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1138], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x111c], ecx
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1124], esi
mov dword [ebp - 0x1120], ebx
call fcn.1006d32a
test eax, eax
js 0x1006cdcc
lea edx, [ebp - 0x1120]
lea ecx, [ebp - 0x1014]
call fcn.1006c73b
test eax, eax
jne 0x1006c97d
mov eax, 0x80020009
jmp 0x1006cdcc
mov ecx, dword [ebp - 0x112c]
call fcn.1006d94a
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1014]
push eax
call fcn.1006d32a
test eax, eax
js 0x1006cdcc
movzx eax, word [ebp - 0x1120]
sub eax, 8
je 0x1006cd7a
sub eax, 9
je 0x1006cbfb
dec eax
sub eax, 1
je 0x1006cb0b
sub eax, 0x3ff5
jne 0x1006cdb2
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006c9d9
sub ecx, edx
mov dword [ebp - 0x1118], ebx
add ecx, 2
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.1006c8c7
cmp eax, 0x100
jbe 0x1006ca0c
push eax
lea ecx, [ebp - 0x1118]
call fcn.1006d32a
jmp 0x1006ca2e
lea esi, [ebp - 0x1114]
mov dword [ebp - 0x1118], esi
jmp 0x1006ca34
mov esi, dword [ebp - 0x1118]
test esi, esi
je 0x1006caea
cmp byte [ebp - 0x1014], 0
lea edi, [ebp - 0x1014]
je 0x1006ca8c
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x1006ca6b
cmp byte [eax], 0x30
jne 0x1006ca6b
push eax
mov byte [esi], bl
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x1006ca86
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.kernel32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1006ca85
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x1006ca8c
mov byte [esi], al
inc edi
inc esi
cmp byte [edi], 0
jne 0x1006ca4b
mov word [esi], 0
mov esi, dword [ebp - 0x1118]
test esi, esi
jne 0x1006ca9f
push 0xd
jmp 0x1006caec
mov edx, ebx
mov edi, esi
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x111c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006caae
sub ecx, dword [ebp - 0x111c]
lea eax, [ecx + 1]
add edi, eax
add edx, eax
cmp eax, 1
jne 0x1006caa3
mov eax, dword [ebp - 0x1128]
push edx
push esi
push 7
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x1118]
mov edi, eax
jmp 0x1006caed
push 0xe
pop edi
lea eax, [ebp - 0x1114]
cmp esi, eax
je 0x1006cda5
lea ecx, [ebp - 0x1118]
call fcn.1006c188
jmp 0x1006cda5
mov dword [ebp - 0x1120], ebx
lea edx, [ebp - 0x1014]
mov dword [ebp - 4], 3
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1006cb21
sub edx, ecx
inc edx
push ecx
lea ecx, [ebp - 0x111c]
mov dword [ebp - 0x111c], edx
call fcn.1006c7b5
test eax, eax
js 0x1006cbe4
mov esi, dword [ebp - 0x111c]
mov edi, esi
shr edi, 1
cmp esi, 0x400
jg 0x1006cb70
mov ecx, esi
call fcn.1006c818
test al, al
je 0x1006cb70
mov eax, esi
call fcn.1009cd15
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1006cb7c
push esi
lea ecx, [ebp - 0x1120]
call fcn.1006d32a
push 3
push edi
lea edx, [ebp - 0x1014]
mov ecx, eax
call fcn.1006d32a
test eax, eax
je 0x1006cbe4
lea ecx, [ebp - 0x111c]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
js 0x1006cbe9
mov eax, dword [ebp - 0x111c]
push 4
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1130]
push eax
mov eax, dword [ebp - 0x1128]
push 4
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1120]
mov edi, eax
call fcn.1006c79b
jmp 0x1006cda5
mov esi, 0x8007000e
lea ecx, [ebp - 0x1120]
call fcn.1006c79b
mov eax, esi
jmp 0x1006cdcc
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006cc04
sub ecx, edx
mov dword [ebp - 0x1130], ecx
mov dword [ebp - 0x1134], ecx
test cl, 1
je 0x1006cc28
mov eax, 0x80004005
jmp 0x1006cdcc
mov eax, ecx
mov dword [ebp - 0x1118], ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x1120], esi
mov dword [ebp - 4], 4
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.1006c8c7
cmp eax, 0x100
jbe 0x1006cc6a
push eax
lea ecx, [ebp - 0x1118]
call fcn.1006d32a
mov eax, dword [ebp - 0x1118]
jmp 0x1006cc76
lea eax, [ebp - 0x1114]
mov dword [ebp - 0x1118], eax
mov edi, dword [ebp - 0x1130]
jmp 0x1006cca4
test eax, eax
jne 0x1006ccb8
lea ecx, [ebp - 0x1118]
call fcn.1006c188
jmp 0x1006cc1e
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x111c], ecx
test edi, edi
jle 0x1006cd3f
mov bl, byte [ebp + ecx - 0x1014]
cmp bl, 0x30
jl 0x1006cd01
cmp bl, 0x39
jle 0x1006ccfc
cmp bl, 0x40
jle 0x1006cd01
cmp bl, 0x46
jle 0x1006ccf7
mov al, bl
sub al, 0x61
cmp al, 5
ja 0x1006cd01
sub bl, 0x57
jmp 0x1006cd03
sub bl, 0x37
jmp 0x1006cd03
sub bl, 0x30
jmp 0x1006cd03
xor bl, bl
mov esi, ecx
test esi, esi
jns 0x1006cd0c
add esi, 1
sar esi, 1
mov edx, dword [ebp - 0x1118]
mov eax, ecx
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
shl bl, cl
mov ecx, dword [ebp - 0x111c]
or byte [esi + edx], bl
inc ecx
mov dword [ebp - 0x111c], ecx
cmp ecx, edi
jl 0x1006cccf
mov esi, dword [ebp - 0x1120]
xor ebx, ebx
mov eax, dword [ebp - 0x1128]
push esi
push dword [ebp - 0x1118]
push 3
push ebx
push dword [ebp - 0x1124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1114]
cmp dword [ebp - 0x1118], eax
je 0x1006cda5
lea ecx, [ebp - 0x1118]
call fcn.1006c188
jmp 0x1006cda5
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006cd83
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x1006cdb2
mov ecx, edi
call fcn.1006d1fc
jmp 0x1006cdcc
push dword [ebp - 0x1138]
mov ecx, dword [ebp - 0x112c]
call fcn.1006d32a
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100012b5
leave
ret 0xc