Function at 0x6608b94f
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 0x6608b97a
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 0x6601be00
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x94]
lea eax, [ebx + 0x10]
push 0x27
push ecx
push eax
call fcn.6601bc33
lea eax, [ebp - 0x6c]
push 0x27
push eax
lea eax, [ebx + 0x30]
push eax
call fcn.6601bc33
movzx eax, word [ebx + 0x5a]
push eax
movzx eax, word [ebx + 0x58]
push eax
lea eax, [ebp - 0xb4]
push 0x660502d4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x350]
push 0x6604fd5c
push eax
call esi
add esp, 0xc
cmp dword [ebx + 0x48], edi
mov dword [ebp - 0x10], 0x660583d0
jne 0x6608b9fb
mov dword [ebp - 0x10], 0x6601bde0
cmp dword [ebx + 0x50], edi
mov esi, SysReAllocStringLen
je 0x6608ba12
lea eax, [ebp - 0x350]
push eax
push esi
call fcn.6601bcc2
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 0x6608ba2e
mov dword [ebp - 4], edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
mov eax, dword [ebx + 0xc]
mov edx, eax
mov cl, byte [eax]
test cl, cl
jne 0x6608ba47
lea edx, [ebp - 0x44]
test cl, cl
mov edi, eax
jne 0x6608ba50
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 0x6608c067
test byte [ebx + 0x5d], 0xb2
je 0x6608ba9d
lea eax, [ebp - 0x44]
push eax
call esi
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0x660583e8
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
cmp dword [ebx + 0x44], 0
je 0x6608bff9
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 0x6608bac7
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
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 0x6608c067
cmp dword [ebx + 0x48], eax
je 0x6608bfdd
cmp dword [ebx + 0x4c], eax
jne 0x6608bfdd
push 0x66058450
call esi
inc eax
push eax
push 0x66058450
push 1
push 0
push 0x66058470
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
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 0x6608c067
mov ax, word [ebx + 0x5c]
test ah, 0x20
je 0x6608c009
push 0x66005020
call esi
push eax
push 0x66005020
push 1
push 0x66058380
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
test byte [ebx + 0x5d], 0x20
je 0x6608bbbd
movzx eax, word [ebx + 0x5e]
push eax
lea eax, [ebp - 0x250]
push dword [ebx]
push 0x660502b8
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 0x66058438
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
test byte [ebx + 0x5d], 0x80
je 0x6608bc07
movzx eax, word [ebx + 0x60]
push eax
lea eax, [ebp - 0x250]
push dword [ebx]
push 0x660502b8
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 0x66058388
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
cmp dword [ebx + 0x48], 0
jne 0x6608bc37
test byte [ebx + 0x5d], 0x80
je 0x6608bc37
push 0x660502ac
call esi
push eax
push 0x660502ac
push 1
push 0x6605029c
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
test byte [ebx + 0x5d], 0xa0
je 0x6608bc94
push 0x66058448
call esi
push eax
push 0x66058448
push 1
push 0x66058428
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
lea eax, [ebp - 0x1c]
push 0xa
push eax
push dword [ebx + 0x40]
call fcn.660ef278
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x6605028c
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
test byte [ebx + 0x5d], 0xb2
je 0x6608bce4
lea eax, [ebp - 0x6c]
push eax
call esi
push eax
lea eax, [ebp - 0x6c]
push eax
push 1
push 0x660583a8
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
lea eax, [ebp - 0xb4]
push eax
call esi
push eax
lea eax, [ebp - 0xb4]
push eax
push 1
push 0x660583b0
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
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 0x6608c067
test byte [ebx + 0x5d], 0xb2
je 0x6608be87
lea eax, [ebp - 0x44]
push eax
push SysReAllocStringLen
call fcn.6601bcc2
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 0x6608bd37
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
mov eax, dword [ebx + 0xc]
mov edx, eax
mov cl, byte [eax]
test cl, cl
jne 0x6608bd50
lea edx, [ebp - 0x44]
test cl, cl
jne 0x6608bd57
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 0x6608c067
lea eax, [ebp - 0x94]
push eax
call esi
push eax
lea eax, [ebp - 0x94]
push eax
push 1
push 0x6601bdb0
push dword [ebp - 4]
call edi
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
test byte [ebx + 0x5d], 0x80
je 0x6608bdef
lea eax, [ebp + 8]
push 4
push eax
push 3
push 0
push 0x66050280
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 0x6608c067
test byte [ebx + 0x5d], 0x80
je 0x6608bdef
push 0x6605027e
call esi
push eax
push 0x6605027e
push 1
push 0x66058398
push dword [ebp - 4]
call edi
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x6608c06d
test byte [ebx + 0x5d], 0x80
je 0x6608be29
lea eax, [ebp + 8]
push 4
push eax
push 3
push 0
push 0x66050270
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 0x6608c067
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 0x6608c067
test byte [ebx + 0x5d], 0xb2
je 0x6608be87
lea eax, [ebp - 0x6c]
push 0x66050248
push eax
push ebx
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.6608b71c
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
lea eax, [ebp - 0x6c]
push 0x66050220
push eax
push ebx
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.6608b71c
test eax, eax
mov dword [ebp + 8], eax
jne 0x6608c067
mov ax, word [ebx + 0x5c]
mov edx, eax
and edx, 0x8000
test dx, dx
je 0x6608beae
mov esi, 0x6604f648
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 0x6608bef2
mov esi, dword [ebp - 8]
shl esi, 4
inc dword [ebp - 8]
lea edi, [ebp + esi - 0x144]
mov esi, 0x6604f658
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 0x6608bef2
mov ecx, dword [ebp - 8]
mov esi, 0x6604f638
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 0x6608bf10
mov ecx, dword [ebp - 8]
mov esi, 0x6604f628
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 0x6608c02b
mov ecx, dword [ebp - 8]
mov esi, 0x6604f5f8
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 0x6608bf4f
mov ecx, dword [ebp - 8]
mov esi, 0x6604f378
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 0x6608bf6c
mov eax, dword [ebp - 8]
mov esi, 0x6604f368
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 0x6608bfb8
lea eax, [ebp - 0x10]
push eax
push 0x6604f5c8
call fcn.6608b04e
test eax, eax
jl 0x6608bfb8
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 0x6608bfb8
test byte [ebx + 0x42], 1
je 0x6608bfb8
mov eax, dword [ebp - 0x10]
push 0x6604f668
push 1
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 8], 0
jne 0x6608c06d
test byte [ebx + 0x62], 1
je 0x6608c067
lea eax, [ebp - 0x44]
push 1
push eax
push ebx
call fcn.6601be2c
jmp 0x6608b973
cmp dword [ebx + 0x50], eax
jne 0x6608bb2a
push 0x660502c4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x6608bb2a
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.6601bcc2
jmp 0x6608bb42
test ah, 0x80
je 0x6608bb73
push 0x660502c0
call esi
push eax
push 0x660502c0
push 1
push 0x66058398
jmp 0x6608bb63
test ah, 0x12
je 0x6608c047
mov ecx, dword [ebp - 8]
mov esi, 0x6604f608
shl ecx, 4
lea edi, [ebp + ecx - 0x144]
jmp 0x6608bf2b
test dx, dx
je 0x6608bf32
mov ecx, dword [ebp - 8]
mov esi, 0x6604f618
shl ecx, 4
lea edi, [ebp + ecx - 0x144]
jmp 0x6608bf2b
cmp dword [ebp + 8], 0
je 0x6608c08b
cmp dword [ebp - 4], 0xffffffff
je 0x6608c07c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0xffffffff
je 0x6608c08b
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
call fcn.6601bd76
jmp 0x6608b973