Function at 0x10002de0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f645
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x101a221c], 0xf
mov ecx, 0x101a2208
mov eax, dword [0x101a2218]
jbe 0x10002e2a
mov ecx, dword [0x101a2208]
add eax, ecx
jmp 0x10002e31
add eax, ecx
mov ecx, 0x101a2208
push ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.10005790
push 0x2d
mov edx, 0x101a1044
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10001e00
add esp, 4
push 0xc
mov edx, 0x101a1034
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.10001e00
add esp, 4
push 0x1a
mov edx, 0x101a1074
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.10001e00
add esp, 4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x90]
call fcn.100059a0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.100049d0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x10002ee0
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002ed6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003141
push ecx
push edx
call fcn.100076d2
add esp, 8
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
push 0
push eax
push 0x80000002
mov dword [ebp - 0x74], 0
call esi
test eax, eax
jne 0x10002f79
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp ecx, 7
cmova esi, edi
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10002f30
sub esi, edx
lea edx, [ebp - 0x28]
sar esi, 1
cmp ecx, 7
lea ecx, [ebp - 0x40]
cmova edx, edi
cmp dword [ebp - 0x2c], 7
cmova ecx, dword [ebp - 0x40]
lea eax, [esi + esi]
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x10003008
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x78]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], 0
cmova eax, dword [ebp - 0x58]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x10003006
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp ecx, 7
cmova esi, edi
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10002fc0
sub esi, edx
lea edx, [ebp - 0x28]
sar esi, 1
cmp ecx, 7
lea ecx, [ebp - 0x40]
cmova edx, edi
cmp dword [ebp - 0x2c], 7
cmova ecx, dword [ebp - 0x40]
lea eax, [esi + esi]
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x10003008
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10003042
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003038
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003146
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x10003090
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10003086
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003146
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x100030da
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100030d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003146
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x10003124
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000311a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003146
push ecx
push edx
call fcn.100076d2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100076c4
mov esp, ebp
pop ebp
ret
call fcn.1000c24a
call fcn.1000c24a
int3