Function at 0x10006220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.1001f4b0
push ebx
push esi
push edi
lea eax, [ebp - 0x110c]
mov ebx, ecx
xor esi, esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call fcn.10004930
cmp eax, esi
jl 0x10006535
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x110c]
push edx
call fcn.10004790
add esp, 8
test eax, eax
jne 0x10006279
mov eax, 0x80020009
lea esp, [ebp - 0x1118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
call fcn.100048d0
lea eax, [ebp - 0x110c]
push eax
mov ecx, ebx
call fcn.10004930
cmp eax, esi
jl 0x10006535
movzx eax, word [ebp - 4]
cmp eax, 0x13
jg 0x10006456
je 0x100063f9
cmp eax, 8
je 0x100063e0
cmp eax, 0x11
jne 0x10006520
lea ecx, [ebp - 0x110c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test bl, 1
jne 0x1000630e
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10c], 0
call fcn.10005b50
mov edi, dword [ebp - 0x10c]
test edi, edi
jne 0x10006322
lea edx, [ebp - 0x108]
test edx, edx
je 0x1000630e
lea ecx, [ebp - 0x10c]
call fcn.10004200
mov eax, 0x80004005
lea esp, [ebp - 0x1118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
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
test ebx, ebx
jle 0x10006384
lea ebx, [ebx]
mov eax, edi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x10c]
sar esi, 1
add esi, eax
xor eax, eax
mov al, byte [ebp + edi - 0x110c]
push eax
call fcn.10004840
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
mov ecx, 4
sub ecx, edx
mov dl, byte [esi]
shl al, cl
add esp, 4
or dl, al
inc edi
cmp edi, ebx
mov byte [esi], dl
jl 0x10006340
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10c]
mov esi, eax
lea eax, [ebp - 0x108]
cmp ecx, eax
je 0x100063bd
lea ecx, [ebp - 0x10c]
call fcn.10004200
mov ebx, dword [ebp - 8]
test esi, esi
je 0x10006520
push esi
call fcn.100041d0
add esp, 4
lea esp, [ebp - 0x1118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
push 1
lea ecx, [ebp - 0x110c]
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.10004490
mov esi, eax
jmp 0x100063c0
call dword [0x10037130]
mov edi, eax
lea eax, [ebp - 0x110c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.1001f4b0
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0x110c]
push ecx
push eax
call fcn.100024f0
lea edx, [ebp - 4]
push edx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10004450
mov esi, eax
jmp 0x100063c0
cmp eax, 0x4008
jne 0x10006520
lea edx, [ebp - 0x110c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], esi
call fcn.10005b50
mov edi, dword [ebp - 0x10c]
cmp edi, esi
je 0x100064fd
mov al, byte [ebp - 0x110c]
test al, al
lea esi, [ebp - 0x110c]
je 0x100064dd
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x100064bb
cmp byte [eax], 0x30
jne 0x100064bb
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x100064d5
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x100064d3
mov cl, byte [esi + 1]
inc edi
inc esi
mov byte [edi], cl
inc edi
inc esi
cmp byte [esi], 0
jne 0x100064a1
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov byte [edi], 0
mov edx, dword [ebp - 0x10c]
push edx
push eax
call fcn.10004520
mov edi, dword [ebp - 0x10c]
mov esi, eax
jmp 0x10006502
mov esi, 0xe
lea ecx, [ebp - 0x108]
cmp edi, ecx
je 0x100063c0
lea ecx, [ebp - 0x10c]
call fcn.10004200
jmp 0x100063c0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, ebx
call fcn.10004930
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
lea esp, [ebp - 0x1118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc