Function at 0x6608abef
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
or dword [ebp - 4], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test byte [ebx + 0x5c], 1
mov dword [ebp - 8], edi
je 0x6608ac1a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebx + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x44]
push dword [ebx + 4]
push 0x6601bb40
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x94]
lea eax, [ebx + 0x10]
push 0x27
push ecx
push eax
call fcn.6601b97f
lea eax, [ebp - 0x6c]
push 0x27
push eax
lea eax, [ebx + 0x30]
push eax
call fcn.6601b97f
movzx eax, word [ebx + 0x5a]
push eax
movzx eax, word [ebx + 0x58]
push eax
lea eax, [ebp - 0xb4]
push 0x660504bc
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x350]
push 0x6604ff44
push eax
call esi
add esp, 0xc
cmp dword [ebx + 0x48], edi
mov dword [ebp - 0x10], 0x66057fc0
jne 0x6608ac9b
mov dword [ebp - 0x10], 0x6601bb20
cmp dword [ebx + 0x50], edi
mov esi, SysReAllocStringLen
je 0x6608acb2
lea eax, [ebp - 0x350]
push eax
push esi
call fcn.6601ba0e
mov edi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x350]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608acce
mov dword [ebp - 4], edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
mov eax, dword [ebx + 0xc]
mov edx, eax
mov cl, byte [eax]
test cl, cl
jne 0x6608ace7
lea edx, [ebp - 0x44]
test cl, cl
mov edi, eax
jne 0x6608acf0
lea edi, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call esi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push 1
push 0
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0xb2
je 0x6608ad3d
lea eax, [ebp - 0x44]
push eax
call esi
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0x66057fd8
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
cmp dword [ebx + 0x44], 0
je 0x6608b299
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608ad67
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
push dword [ebx]
call esi
push eax
push dword [ebx]
push 1
push 0
push dword [ebp - 0xc]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
cmp dword [ebx + 0x48], eax
je 0x6608b27d
cmp dword [ebx + 0x4c], eax
jne 0x6608b27d
push 0x66058040
call esi
inc eax
push eax
push 0x66058040
push 1
push 0
push 0x66058060
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 0xc], 0xffffffff
mov dword [ebp + 8], eax
test eax, eax
jne 0x6608b307
mov ax, word [ebx + 0x5c]
test ah, 0x20
je 0x6608b2a9
push 0x66004fa0
call esi
push eax
push 0x66004fa0
push 1
push 0x66057f70
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0x20
je 0x6608ae5d
movzx eax, word [ebx + 0x5e]
push eax
lea eax, [ebp - 0x250]
push dword [ebx]
push 0x660504a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
call esi
push eax
lea eax, [ebp - 0x250]
push eax
push 1
push 0x66058028
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0x80
je 0x6608aea7
movzx eax, word [ebx + 0x60]
push eax
lea eax, [ebp - 0x250]
push dword [ebx]
push 0x660504a0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
call esi
push eax
lea eax, [ebp - 0x250]
push eax
push 1
push 0x66057f78
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
cmp dword [ebx + 0x48], 0
jne 0x6608aed7
test byte [ebx + 0x5d], 0x80
je 0x6608aed7
push 0x66050494
call esi
push eax
push 0x66050494
push 1
push 0x66050484
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0xa0
je 0x6608af34
push 0x66058038
call esi
push eax
push 0x66058038
push 1
push 0x66058018
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
lea eax, [ebp - 0x1c]
push 0xa
push eax
push dword [ebx + 0x40]
call fcn.660edcd8
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x66050474
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0xb2
je 0x6608af84
lea eax, [ebp - 0x6c]
push eax
call esi
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0x66057f98
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
lea eax, [ebp - 0xb4]
push eax
call esi
push eax
lea eax, [ebp - 0xb4]
push eax
push 1
push 0x66057fa0
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
test eax, eax
jne 0x6608b307
test byte [ebx + 0x5d], 0xb2
je 0x6608b127
lea eax, [ebp - 0x44]
push eax
push SysReAllocStringLen
call fcn.6601ba0e
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x44]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608afd7
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
mov eax, dword [ebx + 0xc]
mov edx, eax
mov cl, byte [eax]
test cl, cl
jne 0x6608aff0
lea edx, [ebp - 0x44]
test cl, cl
jne 0x6608aff7
lea eax, [ebp - 0x44]
push edx
mov dword [ebp + 8], eax
call esi
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
lea eax, [ebp - 0x94]
push eax
call esi
push eax
lea eax, [ebp - 0x94]
push eax
push 1
push 0x6601baf8
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0x80
je 0x6608b08f
lea eax, [ebp + 8]
push 4
push eax
push 3
push 0
push 0x66050468
push dword [ebp - 4]
mov dword [ebp + 8], 0x10000
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
test byte [ebx + 0x5d], 0x80
je 0x6608b08f
push 0x66050466
call esi
push eax
push 0x66050466
push 1
push 0x66057f88
push dword [ebp - 4]
call edi
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x6608b30d
test byte [ebx + 0x5d], 0x80
je 0x6608b0c9
lea eax, [ebp + 8]
push 4
push eax
push 3
push 0
push 0x66050458
push dword [ebp - 4]
mov dword [ebp + 8], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
test eax, eax
jne 0x6608b307
test byte [ebx + 0x5d], 0xb2
je 0x6608b127
lea eax, [ebp - 0x6c]
push 0x66050430
push eax
push ebx
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.6608a9bc
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
lea eax, [ebp - 0x6c]
push 0x66050408
push eax
push ebx
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.6608a9bc
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608b307
mov ax, word [ebx + 0x5c]
mov edx, eax
and edx, 0x8000
test dx, dx
je 0x6608b14e
mov esi, 0x6604f830
lea edi, [ebp - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], 1
mov ecx, eax
and ecx, 0xa010
test cx, cx
je 0x6608b192
mov esi, dword [ebp - 8]
shl esi, 4
inc dword [ebp - 8]
lea edi, [ebp + esi - 0x144]
mov esi, 0x6604f840
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test cx, cx
movsd dword es:[edi], dword [esi]
je 0x6608b192
mov ecx, dword [ebp - 8]
mov esi, 0x6604f820
shl ecx, 4
inc dword [ebp - 8]
lea edi, [ebp + ecx - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ah, 0xa0
je 0x6608b1b0
mov ecx, dword [ebp - 8]
mov esi, 0x6604f810
shl ecx, 4
inc dword [ebp - 8]
lea edi, [ebp + ecx - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ah, 0x20
je 0x6608b2cb
mov ecx, dword [ebp - 8]
mov esi, 0x6604f7e0
shl ecx, 4
lea edi, [ebp + ecx - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
inc dword [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 2
je 0x6608b1ef
mov ecx, dword [ebp - 8]
mov esi, 0x6604f560
shl ecx, 4
inc dword [ebp - 8]
lea edi, [ebp + ecx - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 4
je 0x6608b20c
mov eax, dword [ebp - 8]
mov esi, 0x6604f550
shl eax, 4
inc dword [ebp - 8]
lea edi, [ebp + eax - 0x144]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 8], 0
je 0x6608b258
lea eax, [ebp - 0x10]
push eax
push 0x6604f7b0
call fcn.6608a2df
test eax, eax
jl 0x6608b258
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x144]
push edx
lea esi, [ebx + 0x10]
push dword [ebp - 8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
test byte [ebx + 0x5d], 0x20
je 0x6608b258
test byte [ebx + 0x42], 1
je 0x6608b258
mov eax, dword [ebp - 0x10]
push 0x6604f850
push 1
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 8], 0
jne 0x6608b30d
test byte [ebx + 0x62], 1
je 0x6608b307
lea eax, [ebp - 0x44]
push 1
push eax
push ebx
call fcn.6601bb6c
jmp 0x6608ac13
cmp dword [ebx + 0x50], eax
jne 0x6608adca
push 0x660504ac
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x6608adca
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.6601ba0e
jmp 0x6608ade2
test ah, 0x80
je 0x6608ae13
push 0x660504a8
call esi
push eax
push 0x660504a8
push 1
push 0x66057f88
jmp 0x6608ae03
test ah, 0x12
je 0x6608b2e7
mov ecx, dword [ebp - 8]
mov esi, 0x6604f7f0
shl ecx, 4
lea edi, [ebp + ecx - 0x144]
jmp 0x6608b1cb
test dx, dx
je 0x6608b1d2
mov ecx, dword [ebp - 8]
mov esi, 0x6604f800
shl ecx, 4
lea edi, [ebp + ecx - 0x144]
jmp 0x6608b1cb
cmp dword [ebp + 8], 0
je 0x6608b32b
cmp dword [ebp - 4], 0xffffffff
je 0x6608b31c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0xffffffff
je 0x6608b32b
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.6601bac2
jmp 0x6608ac13