Function at 0x7cdb9077
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor edi, edi
push eax
push edi
push 0x20006
mov ebx, 0x7cd71a80
push edi
push ebx
push edi
push 0x7cd7271c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
mov esi, 0x7cd722b4
jl 0x7cdb91d2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7cdb91c9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x20006
push edi
push ebx
push edi
push 0x7cd7262c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7cdb9162
push 5
mov esi, 0x7cd72708
pop ecx
lea edi, [ebp - 0x2c]
lea eax, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
mov dword [ebp - 4], eax
jl 0x7cdb9152
push 0xa
push 0x7cd726fc
push 1
push 0
push 0x7cd726dc
push dword [ebp - 0x10]
call esi
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x7cd722b4
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x7cdb91c9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x20006
push edi
push ebx
push edi
push 0x7cd726cc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7cdb91c9
lea edi, [ebp - 0x28]
lea eax, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x7cd722b4
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
jge 0x7cdb91e1
mov eax, 0x8000ffff
jmp 0x7cdb9299
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x20006
push edi
push ebx
push edi
push esi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7cdb9296
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push edi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x7cdb924c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x20006
push edi
push ebx
push edi
push 0x7cd72584
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jl 0x7cdb928d
push 0x13
mov esi, 0x7cd7267c
pop ecx
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x7c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret