Function at 0x10128680
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021effd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.10129e00
mov ecx, esi
call fcn.10128660
mov edi, dword [ebp - 0x28]
mov esi, edi
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
cmp esi, dword [ebp - 0x24]
je 0x1012884c
cmp dword [ecx + 0x14], 0xf
xorps xmm0, xmm0
mov edi, dword [ecx + 0x10]
mov edx, 0x16
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0
mov eax, ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], ecx
jbe 0x10128715
mov eax, dword [ecx]
mov dword [ebp - 0x14], eax
cmp edi, 0x7fffffff
ja 0x10128ae0
cmp edi, 0xf
ja 0x10128739
movups xmm0, xmmword [eax]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0xf
movups xmmword [ebp - 0x58], xmm0
jmp 0x101287a9
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1012875d
mov eax, SysReAllocString
mov esi, SysReAllocString
push eax
call fcn.1004d170
add esp, 4
mov ecx, eax
jmp 0x1012878d
cmp esi, 0x16
cmovb esi, edx
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x1012877a
push eax
call fcn.1004d170
add esp, 4
mov ecx, eax
jmp 0x1012878d
test eax, eax
je 0x1012878b
push eax
call fcn.101064e0
add esp, 4
mov ecx, eax
jmp 0x1012878d
xor ecx, ecx
lea eax, [edi + 1]
mov dword [ebp - 0x58], ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x48], edi
push ecx
mov dword [ebp - 0x44], esi
call fcn.1012d8a0
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 1
push 0x102aed08
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.10054b60
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x101287c6
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.10054b60
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0x24]
movzx eax, byte [ecx + 0x20]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ecx]
lea ecx, [ebp - 0x80]
call fcn.101285b0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.10128680
lea ecx, [ebp - 0x80]
call fcn.10128600
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10128837
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1012882d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128aac
push ecx
push edx
call fcn.1010693f
add esp, 8
mov ecx, dword [ebp - 0x1c]
add esi, 0x18
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x24]
jne 0x101286e8
mov edi, dword [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push ecx
call fcn.1010e9b0
mov esi, dword [ebp - 0x10]
add esp, 8
cmp dword [esi + 0x24], 0
je 0x101289f0
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x101289e2
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x101289e2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
push 0
cmova ecx, dword [ebp - 0x40]
push dword [eax + 0x24]
push ecx
push dword [eax]
call edx
test eax, eax
jne 0x10128ab1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10128918
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1012890e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128aac
push ecx
push edx
call fcn.1010693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test edi, edi
je 0x101289d2
mov eax, dword [ebp - 0x24]
mov esi, edi
cmp esi, eax
je 0x1012898e
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10128976
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10128969
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128aac
mov eax, edx
push ecx
push eax
call fcn.1010693f
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, eax
jne 0x10128940
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x101289c8
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128aac
push ecx
push edi
call fcn.1010693f
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10128ae5
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x10128a42
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10128a38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10128aac
push ecx
push edx
call fcn.1010693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test edi, edi
je 0x101289d2
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push edi
call fcn.10062740
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x101289c8
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101289c8
call fcn.1013823f
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.101298a0
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.1010a8a0
push 0x102bfd24
lea eax, [ebp - 0x84]
push eax
call fcn.1012d826
call fcn.1004cdb0
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.101298a0
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.1010a8a0
push 0x102bfd24
lea eax, [ebp - 0x84]
push eax
call fcn.1012d826
int3