Function at 0x100027cb
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
pop edi
push edi
push dword [esi]
lea eax, [ebp - 0x28]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x10002b6e
push edi
push dword [esi]
lea eax, [ebp - 0xc]
push eax
call dword [0x1005c6f0]
mov eax, dword [ebp - 0xc]
add dword [esi], edi
inc eax
push eax
lea ecx, [ebp - 0x4c]
call fcn.100013e9
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x4c]
call dword [0x1005c6f4]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push dword [esi]
push dword [ebp - 0x4c]
call dword [0x1005c6f0]
mov eax, dword [ebp - 0xc]
add eax, eax
add dword [esi], eax
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x30]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
je 0x10002964
cmp dword [ebp + 0x10], ebx
push dword [ebp - 0x4c]
je 0x1000289a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
call ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call ebx
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 2]
push eax
lea ecx, [ebp - 0x44]
call fcn.10002dc1
xor ebx, ebx
jmp 0x100028aa
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push eax
lea ecx, [ebp - 0x44]
call fcn.10002dc1
cmp dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x44]
mov word [eax], bx
je 0x100028cd
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1002c0d8
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp - 0x2c], ebx
je 0x100028ff
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push dword [ebp - 0x44]
push dword [ebp + 0xc]
call dword [0x1005c708]
test eax, eax
jmp 0x10002935
push 1
push 1
call dword [0x1005c704]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push dword [ebp - 0x44]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
push 1
mov dword [ebp - 0x20], eax
call dword [0x1005c704]
cmp dword [ebp - 0x20], ebx
je 0x1000293a
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x30], ebx
je 0x100029d4
push 1
push 1
call dword [0x1005c704]
push dword [ebp - 0x44]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
push 1
call dword [0x1005c704]
jmp 0x100029d4
push 0x1002c0dc
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000297d
mov dword [ebp + 8], SysReAllocString
push str.HKEY_CURRENT_USER
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002996
mov dword [ebp + 8], SysReAllocString
push str.HKEY_LOCAL_MACHINE
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100029af
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
push str.HKEY_CURRENT_CONFIG
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100029c8
mov dword [ebp + 8], VariantClear
cmp dword [ebp + 8], ebx
jne 0x100029d4
mov dword [ebp + 8], SysReAllocString
push edi
push dword [esi]
lea eax, [ebp - 0x24]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
jbe 0x10002b27
push edi
push dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [0x1005c6f0]
mov eax, dword [ebp - 0x10]
add dword [esi], edi
inc eax
push eax
lea ecx, [ebp - 0x64]
call fcn.100013e9
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x64]
call dword [0x1005c6f4]
mov eax, dword [ebp - 0x10]
add eax, eax
push eax
push dword [esi]
push dword [ebp - 0x64]
call dword [0x1005c6f0]
mov eax, dword [ebp - 0x10]
add eax, eax
add dword [esi], eax
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x34]
push eax
call dword [0x1005c6f0]
add dword [esi], edi
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 8]
push eax
call dword [0x1005c6f0]
push dword [ebp - 8]
add dword [esi], edi
lea ecx, [ebp - 0x5c]
call fcn.10002def
cmp dword [ebp - 8], ebx
jbe 0x10002b08
push dword [ebp - 8]
push dword [ebp - 0x5c]
call dword [0x1005c6f4]
push dword [ebp - 8]
push dword [esi]
push dword [ebp - 0x5c]
call dword [0x1005c6f0]
mov eax, dword [ebp - 8]
add dword [esi], eax
cmp dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
je 0x10002ad2
cmp dword [ebp - 0x14], 1
je 0x10002aba
cmp dword [ebp - 0x14], 6
je 0x10002aba
cmp dword [ebp - 0x14], 2
jne 0x10002ad2
lea ecx, [ebp - 0x54]
push ecx
call fcn.1000120c
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x50]
add eax, eax
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 8], ebx
je 0x10002b00
push 1
push 1
call dword [0x1005c704]
push dword [ebp - 8]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x64]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 1
call dword [0x1005c704]
lea ecx, [ebp - 0x54]
call fcn.100014bb
lea ecx, [ebp - 0x5c]
call fcn.100014bb
lea ecx, [ebp - 0x64]
call fcn.100014bb
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jb 0x100029ef
cmp dword [ebp + 0xc], ebx
jne 0x10002b32
push ebx
push dword [ebp + 8]
jmp 0x10002b46
cmp dword [ebp + 8], ebx
je 0x10002b40
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x44]
push dword [ebp + 0xc]
push esi
call fcn.100027cb
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.100014bb
lea ecx, [ebp - 0x4c]
call fcn.100014bb
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jb 0x100027f7
pop edi
pop esi
pop ebx
leave
ret