Function at 0xd8ca10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdb77b0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0xdc451c]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
xor edx, edx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x88], ebx
mov edx, 0xdbd220
mov ecx, edi
jmp 0xd8ca70
mov si, word [ecx]
cmp si, word [edx]
jne 0xd8ca96
cmp si, bx
je 0xd8ca92
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0xd8ca96
add ecx, 4
add edx, 4
cmp si, bx
jne 0xd8ca70
xor ecx, ecx
jmp 0xd8ca9b
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
je 0xd8cb73
xor ecx, ecx
mov word [ebp - 0x48], cx
mov ecx, eax
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0xd8cac2
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x48]
call fcn.00d95690
lea edx, [ebp - 0x48]
push edx
mov eax, 0xdbe080
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00d98cf0
push eax
mov eax, edi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00d98cf0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00d92cd0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0xd8cb25
mov eax, dword [ebp - 0x80]
push eax
call fcn.00d9c65d
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x50], esi
jb 0xd8cb47
mov edx, dword [ebp - 0x64]
push edx
call fcn.00d9c65d
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], esi
jb 0xd8cb64
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00d9c65d
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0xd8cb6e
mov edi, dword [ebp - 0x2c]
jmp 0xd8cb75
lea edi, [ebp - 0x2c]
jmp 0xd8cb75
mov edi, eax
lea edx, [ebp - 0x84]
push edx
push 0x20206
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, 2
jne 0xd8cbed
push 0
lea eax, [ebp - 0x84]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x88], 0
mov esi, eax
mov dword [ebp - 0x90], 3
je 0xd8cbed
mov edx, dword [ebp - 0x84]
push 4
lea ecx, [ebp - 0x90]
push ecx
push 4
push 0
push str.restart
push edx
call ebx
test esi, esi
jne 0xd8cc41
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push ecx
push edx
call ebx
test eax, eax
jne 0xd8cc34
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8cc2d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00d9c65d
add esp, 4
mov eax, 1
jmp 0xd8cc55
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8cc53
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00d9c65d
add esp, 4
xor eax, eax
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.00d9c668
mov esp, ebp
pop ebp
ret