Function at 0x10001cc6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f0e2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1128
call fcn.10017410
mov eax, dword [0x1002a058]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x1128], 0
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x1134], eax
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1138], esi
mov dword [ebp - 0x112c], edi
mov dword [ebp - 0x1130], ebx
call fcn.10002554
test eax, eax
js 0x1000215a
lea eax, [ebp - 0x1128]
push eax
lea eax, [ebp - 0x1018]
push eax
call fcn.10001aad
pop ecx
pop ecx
test eax, eax
jne 0x10001d5b
mov eax, 0x80020009
jmp 0x1000215a
call fcn.10002c36
lea eax, [ebp - 0x1018]
mov ecx, esi
call fcn.10002554
test eax, eax
js 0x1000215a
movzx eax, word [ebp - 0x1128]
sub eax, 8
je 0x1000210f
sub eax, 9
je 0x10001fb8
dec eax
dec eax
je 0x10001ec6
sub eax, 0x3ff5
jne 0x10002147
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
add eax, 2
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 4], ecx
mov byte [ebp - 4], 1
cmp ecx, ecx
ja 0x10001dc9
cmp eax, 0xffffffff
jbe 0x10001dd3
push 0x80070216
call fcn.1000217c
cmp eax, 0x100
jbe 0x10001df1
push eax
lea eax, [ebp - 0x1120]
push eax
call fcn.10001b59
jmp 0x10001dfd
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
mov edi, dword [ebp - 0x1120]
test edi, edi
je 0x10001ea1
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x10001e5b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x10001e3a
cmp byte [eax], 0x30
jne 0x10001e3a
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x10001e56
mov byte [edi], cl
movzx eax, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x10001e54
inc edi
inc esi
mov al, byte [esi]
test al, al
je 0x10001e5b
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x10001e20
mov word [edi], 0
mov edi, dword [ebp - 0x1120]
mov ebx, edi
test edi, edi
jne 0x10001e70
push 0xd
jmp 0x10001ea3
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10001e72
mov eax, dword [ebp - 0x112c]
push esi
push ebx
push 7
push 0
push dword [ebp - 0x1130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10001ea4
push 0xe
pop esi
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x10002134
lea eax, [ebp - 0x1120]
call fcn.10001b43
jmp 0x10002134
xor edi, edi
mov dword [ebp - 0x1124], edi
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1128]
inc eax
push ecx
mov dword [ebp - 0x1128], eax
call fcn.10001b91
pop ecx
test eax, eax
js 0x10001f9c
mov ebx, dword [ebp - 0x1128]
cmp ebx, 0x400
jg 0x10001f25
push ebx
call fcn.10001bf4
pop ecx
test al, al
je 0x10001f25
mov eax, ebx
call fcn.1001de70
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10001f38
mov eax, ebx
lea esi, [ebp - 0x1124]
call fcn.10001c60
mov edi, dword [ebp - 0x1124]
push 3
shr ebx, 1
push ebx
lea ecx, [ebp - 0x1018]
push ecx
mov esi, eax
call fcn.10001bc1
test eax, eax
je 0x10001f98
lea ecx, [ebp - 0x1124]
push ecx
push eax
call fcn.1000d8d3
mov eax, dword [ebp - 0x1124]
pop ecx
pop ecx
push 4
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1124]
push eax
mov eax, dword [ebp - 0x112c]
push 4
push 0
push dword [ebp - 0x1130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
jmp 0x10001faf
push edi
mov edi, dword [edi]
call fcn.1001451e
pop ecx
test edi, edi
jne 0x10001f8f
mov eax, 0x8007000e
jmp 0x1000215a
push edi
mov edi, dword [edi]
call fcn.1001451e
pop ecx
test edi, edi
jne 0x10001fa6
jmp 0x10002134
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1124], eax
test al, 1
je 0x10001fd9
mov eax, 0x80004005
jmp 0x1000215a
cdq
sub eax, edx
mov edi, eax
sar edi, 1
xor eax, eax
mov dword [ebp - 0x1128], edi
mov dword [ebp - 0x1120], eax
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
cmp eax, eax
ja 0x10001dc9
cmp edi, 0xffffffff
ja 0x10001dc9
cmp edi, 0x100
jbe 0x1000202f
push edi
lea eax, [ebp - 0x1120]
push eax
call fcn.10001ca3
jmp 0x1000203b
lea eax, [ebp - 0x111c]
mov dword [ebp - 0x1120], eax
xor esi, esi
cmp dword [ebp - 0x1120], esi
jne 0x1000205f
lea eax, [ebp - 0x111c]
test eax, eax
je 0x10001fcf
lea eax, [ebp - 0x1120]
call fcn.10001c8d
jmp 0x10001fcf
push edi
push esi
push dword [ebp - 0x1120]
call fcn.10014410
add esp, 0xc
cmp dword [ebp - 0x1124], esi
jle 0x100020d2
mov cl, byte [ebp + esi - 0x1018]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1120]
cmp cl, 0x30
jl 0x100020b6
cmp cl, 0x39
jle 0x100020b1
cmp cl, 0x40
jle 0x100020b6
cmp cl, 0x46
jle 0x100020ac
lea edx, [ecx - 0x61]
cmp dl, 5
ja 0x100020b6
lea edx, [ecx - 0x57]
jmp 0x100020b8
lea edx, [ecx - 0x37]
jmp 0x100020b8
lea edx, [ecx - 0x30]
jmp 0x100020b8
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x1124]
jl 0x10002077
mov eax, dword [ebp - 0x112c]
mov eax, dword [eax]
push edi
push dword [ebp - 0x1120]
push 3
push 0
push dword [ebp - 0x1130]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x111c]
cmp dword [ebp - 0x1120], eax
je 0x10002134
lea eax, [ebp - 0x1120]
call fcn.10001c8d
jmp 0x10002134
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1018]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x10002141
mov eax, esi
call fcn.10002545
jmp 0x1000215a
mov esi, dword [ebp - 0x1138]
mov eax, dword [ebp - 0x1134]
mov ecx, esi
call fcn.10002554
test eax, eax
js 0x1000215a
xor eax, eax
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.10014027
leave
ret 8