Function at 0x1002d412
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100600a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002d56e
lea eax, [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0x190c
mov dword [ebp - 0x34], 0x10009b10
cmp dword [ebp - 0x2c], 0x19e2
jle 0x1002d4b1
and dword [ebp - 0x1c], 0
jmp 0x1002d470
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x189e
jge 0x1002d4b1
and dword [ebp - 0x20], 0
jmp 0x1002d486
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x68fd
jge 0x1002d4af
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
mov ecx, 0x106081f8
call fcn.1000f7b3
jmp 0x1002d47f
jmp 0x1002d469
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x16b8
jge 0x1002d4d1
mov edx, dword [ebp - 0x34]
mov ecx, 0x106081f8
call fcn.1001125d
jmp 0x1002d4ed
or dword [ebp - 4], 0xffffffff
jmp 0x1002d4f7
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1002d51e
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1002d51c
push 0
push 0xef
push 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x1002d569
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1002d54c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 4
jge 0x1002d569
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.1000f966
mov dword [eax], 0xde64f6cb
jmp 0x1002d541
jmp 0x1002d666
lea eax, [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], 0x442c
mov dword [ebp - 0x58], 0x10009b58
cmp dword [ebp - 0x30], 0x477f
jle 0x1002d5f2
and dword [ebp - 0x24], 0
jmp 0x1002d598
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x557c
jge 0x1002d5f2
and dword [ebp - 0x28], 0
jmp 0x1002d5ae
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x367a
jge 0x1002d5f0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.1000cfb0
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
call fcn.1000f793
push eax
call fcn.1004a046
pop ecx
lea ecx, [ebp - 0x80]
call fcn.1000f789
jmp 0x1002d5a7
jmp 0x1002d591
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x1002d617
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1603
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002d627
push 0x13c7
push 0x1729
call dword [sym.imp.GDI32.dll_SetROP2]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30], 0x4228
jge 0x1002d640
push dword [ebp - 0x58]
call fcn.1004a046
pop ecx
jmp 0x1002d65c
or dword [ebp - 4], 0xffffffff
jmp 0x1002d666
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret