Function at 0x6608a9bc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [ebp + 0x10]
push ebx
or dword [ebp - 4], 0xffffffff
or dword [ebp - 8], 0xffffffff
movzx ecx, word [eax + 0x5a]
movzx eax, word [eax + 0x58]
push esi
push edi
push ecx
push eax
lea eax, [ebp - 0x30]
push 0x66050400
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x158]
push 0x66057fb0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
jle 0x6608ab90
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov dword [ebp - 0x10], eax
mov edi, 0x66057fb0
push edi
call esi
mov ecx, 0x100
sub ecx, eax
push ecx
push edi
call esi
lea eax, [ebp + eax - 0x158]
push eax
push dword [ebp - 0x10]
call fcn.6601b97f
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x50], 0
je 0x6608aa5e
lea eax, [ebp - 0x158]
push eax
push SysReAllocStringLen
call fcn.6601ba0e
mov edi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608aa7e
mov dword [ebp - 4], edi
test eax, eax
mov edi, eax
jne 0x6608ab90
mov edi, dword [ebp + 0x10]
push dword [edi + 8]
call esi
push eax
push dword [edi + 8]
push 1
push 0
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608ab94
push dword [ebp + 0x18]
call esi
push eax
push dword [ebp + 0x18]
push 1
push 0x6608a710
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608ab94
push dword [ebp + 0x18]
call esi
push eax
push dword [ebp + 0x18]
push 1
push 0x6608a720
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608ab94
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
cmp dword [ebp - 0xc], ecx
jne 0x6608abbb
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x54], edi
je 0x6608ab6a
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push 0x66057f98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608ab18
mov dword [ebp - 8], edi
test eax, eax
mov edi, eax
jne 0x6608ab90
push dword [ebp + 0x14]
call esi
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp - 8]
call ebx
mov edi, eax
test edi, edi
jne 0x6608ab94
lea eax, [ebp - 0x30]
push eax
call esi
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push edi
push 0x660503f8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x6608ab94
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 8], 0xffffffff
mov edi, eax
test edi, edi
jne 0x6608ab94
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test edi, edi
jne 0x6608ab94
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x6608aa21
test edi, edi
je 0x6608abb2
cmp dword [ebp - 4], 0xffffffff
je 0x6608aba3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0xffffffff
je 0x6608abb2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
lea ecx, [ebp - 0x58]
push 0x27
push ecx
mov ecx, dword [ebp + 0xc]
shl eax, 4
lea eax, [eax + ecx - 0x10]
push eax
call fcn.6601b97f
lea eax, [ebp - 0x58]
push eax
call esi
push eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0x6608a738
push dword [ebp - 4]
call ebx
mov edi, eax
jmp 0x6608ab66