Function at 0x1008ae50
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x10091040]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov ecx, 1
test ecx, ecx
je 0x1008ae91
jmp 0x1008aea0
push 2
push 0x1008211c
call fcn.1008c4d0
add esp, 8
push 0x1000
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1008aed4
mov dword [ebp - 0x140], 0x8007000e
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x140]
jmp 0x1008b81e
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008af15
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x144]
jmp 0x1008b81e
push 0x1000
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1008af56
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [ebp - 0x148], 0x8007000e
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x148]
jmp 0x1008b81e
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
cmp ecx, 0x7d
je 0x1008b7ed
mov edx, dword [0x10081ffc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [0x10081ff4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1008af9f
cmp dword [ebp - 0x20], 0
je 0x1008b0c1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008afbc
jmp 0x1008b7ed
cmp dword [ebp + 0xc], 0
je 0x1008b0c1
mov dword [ebp - 0x24], 0
push 0x5c
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1008b840
test eax, eax
je 0x1008b027
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0x211
mov ecx, dword [ebp - 0x17c]
call fcn.1008a570
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x24]
call fcn.1008ce30
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x14c]
jmp 0x1008b81e
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ac20
test eax, eax
je 0x1008b05c
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.1008cfc0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x20], 0
je 0x1008b0b9
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b087
lea ecx, [ebp - 0x24]
call fcn.1008ce30
jmp 0x1008b7ed
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ada0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b0ac
lea ecx, [ebp - 0x24]
call fcn.1008ce30
jmp 0x1008b7ed
lea ecx, [ebp - 0x24]
call fcn.1008ce30
jmp 0x1008b79d
lea ecx, [ebp - 0x24]
call fcn.1008ce30
mov ecx, dword [0x10081ff8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1008b0fa
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b0fa
jmp 0x1008b7ed
mov ecx, dword [0x10081ff0]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1008b2a2
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b133
jmp 0x1008b7ed
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b150
jmp 0x1008b7ed
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
cmp eax, 0x3d
je 0x1008b19e
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0x206
mov ecx, dword [ebp - 0x17c]
call fcn.1008a570
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x150]
jmp 0x1008b81e
cmp dword [ebp + 0xc], 0
je 0x1008b24a
mov dword [ebp - 0x134], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a8b0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x134], 0
cmp dword [ebp - 0x14], 0
jge 0x1008b238
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x134]
call fcn.1008ce30
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x154]
jmp 0x1008b81e
lea ecx, [ebp - 0x134]
call fcn.1008ce30
jmp 0x1008b79d
cmp dword [ebp + 0x10], 0
jne 0x1008b280
mov edx, 1
test edx, edx
je 0x1008b25b
jmp 0x1008b26f
lea eax, [ebp - 0x130]
push eax
push 0x1008210c
call fcn.1008c4d0
add esp, 8
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ada0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b29d
jmp 0x1008b7ed
jmp 0x1008af56
push 0x5c
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1008b840
test eax, eax
je 0x1008b2f4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0x211
mov ecx, dword [ebp - 0x17c]
call fcn.1008a570
mov dword [ebp - 0x158], eax
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x158]
jmp 0x1008b81e
cmp dword [ebp + 0xc], 0
je 0x1008b417
push 0xf003f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 8]
call fcn.1008cef0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008b3c7
push 0x20019
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 8]
call fcn.1008cef0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008b3c7
mov edx, 1
test edx, edx
je 0x1008b34d
jmp 0x1008b35e
mov eax, dword [ebp - 0x18]
push eax
push 0x100820f8
call fcn.1008c4d0
add esp, 8
push 0
push 0
push 0xf003f
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 8]
call fcn.1008ce70
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008b3c7
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0x207
mov ecx, dword [ebp - 0x17c]
call fcn.1008a570
mov dword [ebp - 0x15c], eax
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x15c]
jmp 0x1008b81e
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b3e4
jmp 0x1008b7ed
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x1008b412
mov edx, dword [ebp - 0x18]
push edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a8b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b412
jmp 0x1008b7ed
jmp 0x1008b79d
cmp dword [ebp + 0x10], 0
jne 0x1008b43d
push 0xf003f
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 8]
call fcn.1008cef0
test eax, eax
je 0x1008b43d
mov dword [ebp + 0x10], 1
push 0x104
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x10], 0
jne 0x1008b498
mov edx, dword [ebp - 8]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ac80
test eax, eax
jne 0x1008b498
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008acf0
test eax, eax
je 0x1008b5fb
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b4b5
jmp 0x1008b7ed
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ada0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b4d2
jmp 0x1008b7ed
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
cmp eax, 0x7b
jne 0x1008b569
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ae50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b506
jmp 0x1008b7ed
cmp dword [ebp + 0x10], 0
je 0x1008b569
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0x10], ecx
mov edx, 1
test edx, edx
je 0x1008b51d
jmp 0x1008b52a
push 0x100820e0
call fcn.1008c4d0
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b547
jmp 0x1008b7ed
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ada0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b564
jmp 0x1008b7ed
jmp 0x1008af56
cmp dword [ebp + 0x10], 0
jne 0x1008b5eb
mov edx, dword [ebp - 8]
mov dword [ebp - 0x178], edx
mov eax, dword [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ac80
test eax, eax
je 0x1008b5eb
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ac20
test eax, eax
je 0x1008b5c9
mov edx, 1
test edx, edx
je 0x1008b5ac
jmp 0x1008b5bd
mov eax, dword [ebp - 0x1c]
push eax
push 0x100820b8
call fcn.1008c4d0
add esp, 8
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 8]
call fcn.1008cfc0
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b5e6
jmp 0x1008b7ed
jmp 0x1008af56
cmp dword [ebp + 0x10], 0
je 0x1008b5f6
jmp 0x1008af56
jmp 0x1008b6de
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x138]
mov al, byte [edx]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008a5d0
test eax, eax
je 0x1008b641
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
jmp 0x1008b613
mov edx, dword [ebp - 0x138]
movsx eax, byte [edx]
cmp eax, 0x7b
jne 0x1008b67c
cmp dword [ebp - 0x13c], 0
je 0x1008b65f
jmp 0x1008b6de
mov dword [ebp - 0x13c], 1
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
jmp 0x1008b613
mov edx, dword [ebp - 0x138]
movsx eax, byte [edx]
cmp eax, 0x7d
jne 0x1008b6d7
cmp dword [ebp - 0x13c], 1
jne 0x1008b6d3
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b6ad
jmp 0x1008b6de
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ae50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b6cf
jmp 0x1008b6de
jmp 0x1008b6de
jmp 0x1008b6de
jmp 0x1008b6de
cmp dword [ebp + 0x10], 0
jne 0x1008b733
lea ecx, [ebp - 8]
call fcn.1008ce30
test eax, eax
je 0x1008b733
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0x20a
mov ecx, dword [ebp - 0x17c]
call fcn.1008a570
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x160]
jmp 0x1008b81e
cmp dword [ebp + 0x10], 0
jne 0x1008b769
cmp dword [ebp - 4], 0
je 0x1008b769
mov ecx, 1
test ecx, ecx
je 0x1008b74a
jmp 0x1008b75b
mov edx, dword [ebp - 0x1c]
push edx
push 0x100820a4
call fcn.1008c4d0
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b783
jmp 0x1008b7ed
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x17c]
call fcn.1008ada0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b79d
jmp 0x1008b7ed
cmp dword [ebp + 0xc], 0
je 0x1008b7e8
mov ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
cmp edx, 0x7b
jne 0x1008b7e8
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x17c]
call fcn.1008ae50
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b7ce
jmp 0x1008b7ed
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x17c]
call fcn.1008a6b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1008b7e8
jmp 0x1008b7ed
jmp 0x1008af56
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x164], edx
lea ecx, [ebp - 8]
call fcn.1008ce30
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.1008f0a6
mov esp, ebp
pop ebp
ret 0xc