Function at 0x1008f7a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8858
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1025f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x1008f92e
push 0xc
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x5c]
push str.Advapi32.dll
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.10008490
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.10091a30
mov ecx, eax
call fcn.10091af0
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x1008f878
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1008f86e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fa1f
push edx
push ecx
call fcn.101b37a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
test ebx, ebx
je 0x1008f92e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1021ca28
push ebx
call esi
push str.RegSetKeySecurity
push ebx
mov dword [ebp - 0x30], eax
call esi
push 0x1021ca4c
push ebx
mov dword [ebp - 0x18], eax
call esi
push 0x1021d9a8
push dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x44], ebx
call esi
push str.RegEnumKeyW
push dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
call esi
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x1008f92e
cmp dword [ebp - 0x18], 0
je 0x1008f92e
test ebx, ebx
je 0x1008f92e
cmp dword [ebp - 0x34], 0
je 0x1008f92e
test eax, eax
je 0x1008f92e
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x20]
or eax, 0x40000
mov dword [ebp - 0x28], 0
push eax
push 0
push esi
push dword [ebp - 0x2c]
call ecx
test eax, eax
jne 0x1008f92e
push dword [ebp - 0x38]
push 4
push dword [ebp - 0x28]
call dword [ebp - 0x18]
test eax, eax
je 0x1008f94e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1008f92e
push eax
call ebx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b3122
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x1008fa0e
push dword [ebp - 0x28]
call ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
mov eax, dword [edi + 0x20]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x2c]
call dword [ebp - 0x30]
test eax, eax
jne 0x1008f924
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebp - 0x28]
call dword [ebp - 0x34]
test eax, eax
jne 0x1008f924
push 0x20a
call fcn.101b380c
xor esi, esi
add esp, 4
mov edi, eax
cmp dword [ebp - 0x14], esi
jbe 0x1008fa05
mov ebx, dword [ebp - 0x3c]
push 0x105
push edi
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x40]
test eax, eax
jne 0x1008f9f5
push 1
push dword [ebp - 0x38]
mov ecx, ebx
push edi
push dword [ebp - 0x28]
call fcn.1008f7a0
jmp 0x1008f9fc
cmp eax, 0x103
je 0x1008fa02
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x1008f9d2
mov ebx, dword [ebp - 0x44]
push edi
call fcn.101b3133
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1008fa18
push eax
call ebx
mov al, 1
jmp 0x1008f930
call fcn.101b7ad8
int3