Function at 0x1008c760
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e9488
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], edx
mov edi, ecx
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0xff
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xff
push eax
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x3fff
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jle 0x1008c7d6
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1008c7f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
inc eax
mov esi, 2
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x10]
lea eax, [eax + 1]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov esi, eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
call fcn.101875f8
add esp, 0xc
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
je 0x1008c902
test esi, esi
jle 0x1008c893
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008ca14
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1008c8c1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008ca14
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x20], eax
inc ecx
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, 0x103
jne 0x1008c884
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0
inc eax
mov dword [ebp - 0x30], 0
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x1008c9e5
test esi, esi
jle 0x1008c943
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008ca14
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x1008c96d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008ca14
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jle 0x1008c9a1
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1008ca14
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
call fcn.1008c760
mov esi, eax
test esi, esi
js 0x1008ca14
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
inc eax
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20], eax
inc ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], ecx
push eax
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x1008c934
xor esi, esi
push dword [ebp - 0x24]
call fcn.101a1ad1
push dword [ebp - 0x28]
call fcn.101a1ad1
push ebx
call fcn.101a1ad1
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1008c9e7