Function at 0x10006610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c631
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1134
call fcn.100131f0
mov eax, dword [0x10027008]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1130], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1140], eax
lea eax, [ebp - 0x101c]
push eax
mov dword [ebp - 0x1134], esi
mov dword [ebp - 0x1138], edi
mov dword [ebp - 0x1128], ebx
mov dword [ebp - 0x112c], 0
call fcn.100064b0
test eax, eax
js 0x10006a45
lea edx, [ebp - 0x112c]
lea ecx, [ebp - 0x101c]
call fcn.100062f0
test eax, eax
jne 0x100066ac
mov eax, 0x80020009
jmp 0x10006a45
mov ecx, esi
call fcn.10006460
lea eax, [ebp - 0x101c]
mov ecx, esi
push eax
call fcn.100064b0
test eax, eax
js 0x10006a45
movzx eax, word [ebp - 0x112c]
cmp eax, 0x13
jg 0x1000692b
je 0x1000682e
cmp eax, 8
je 0x10006817
cmp eax, 0x11
jne 0x10006a2f
lea ebx, [ebp - 0x101c]
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10006700
sub ebx, ecx
mov dword [ebp - 0x113c], ebx
test bl, 1
jne 0x10006783
mov eax, ebx
mov dword [ebp - 0x1124], 0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x112c], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x1124]
push esi
mov byte [ebp - 4], 5
call fcn.100095a0
jmp 0x10006764
mov eax, dword [ebp - 0x1124]
test eax, eax
jne 0x1000678d
lea eax, [ebp - 0x1120]
test eax, eax
je 0x10006783
lea ecx, [ebp - 0x1124]
call fcn.10009770
mov eax, 0x80004005
jmp 0x10006a45
push esi
push 0
push eax
call fcn.1000e7e0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x100067d4
nop
mov cl, byte [ebp + edi - 0x101c]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1124]
call fcn.100063b0
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x100067a0
mov esi, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0x1138]
push esi
push dword [ebp - 0x1124]
push 3
push 0
push dword [ebp - 0x1128]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1120]
cmp dword [ebp - 0x1124], eax
je 0x10006a1c
lea ecx, [ebp - 0x1124]
call fcn.10009770
jmp 0x10006a1c
push ecx
lea eax, [ebp - 0x101c]
mov ecx, edi
push eax
push ebx
call fcn.100052f0
mov edi, eax
jmp 0x10006a22
mov dword [ebp - 0x1128], 0
lea edx, [ebp - 0x101c]
mov dword [ebp - 4], 3
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10006848
sub edx, ecx
inc edx
push ecx
lea ecx, [ebp - 0x112c]
mov dword [ebp - 0x112c], edx
call fcn.10004a70
add esp, 4
test eax, eax
js 0x10006916
mov esi, dword [ebp - 0x112c]
cmp esi, 0x400
jg 0x10006896
mov ecx, esi
call fcn.10004aa0
test al, al
je 0x10006896
mov eax, esi
call fcn.10019b00
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100068a2
push esi
lea ecx, [ebp - 0x1128]
call fcn.100093d0
push 3
shr esi, 1
lea edx, [ebp - 0x101c]
push esi
mov ecx, eax
call fcn.10004b50
test eax, eax
je 0x10006916
lea ecx, [ebp - 0x113c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x100068e2
lea ecx, [ebp - 0x1128]
call fcn.10009420
mov eax, esi
jmp 0x10006a45
mov eax, dword [ebp - 0x113c]
push 4
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1134]
push eax
push 4
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1128]
mov edi, eax
call fcn.10009420
jmp 0x10006a1c
lea ecx, [ebp - 0x1128]
call fcn.10009420
mov eax, 0x8007000e
jmp 0x10006a45
cmp eax, 0x4008
jne 0x10006a2f
lea ecx, [ebp - 0x101c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006940
sub ecx, edx
mov dword [ebp - 0x1124], 0
add ecx, 2
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1124]
mov byte [ebp - 4], 1
call fcn.100095a0
jmp 0x10006981
mov esi, dword [ebp - 0x1124]
test esi, esi
je 0x10006a02
cmp byte [ebp - 0x101c], 0
lea edi, [ebp - 0x101c]
je 0x100069dc
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x100069ba
cmp byte [eax], 0x30
jne 0x100069ba
mov byte [esi], 0
inc esi
push eax
call ebx
mov edi, eax
jmp 0x100069d7
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x100069d5
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
je 0x100069dc
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x100069a0
mov ecx, dword [ebp - 0x1138]
mov word [esi], 0
push dword [ebp - 0x1124]
push dword [ebp - 0x1128]
call fcn.10005340
mov esi, dword [ebp - 0x1124]
mov edi, eax
jmp 0x10006a07
mov edi, 0xe
lea eax, [ebp - 0x1120]
cmp esi, eax
je 0x10006a1c
lea ecx, [ebp - 0x1124]
call fcn.10009770
mov esi, dword [ebp - 0x1130]
test edi, edi
je 0x10006a2f
mov ecx, edi
call fcn.10004d10
jmp 0x10006a45
push dword [ebp - 0x1140]
mov ecx, esi
call fcn.100064b0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000d362
mov esp, ebp
pop ebp
ret 0xc