Function at 0x77cf1ae5
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
xor edx, edx
cmp dword [ebx + 0x10], 2
mov ecx, esi
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], ecx
je 0x77cf1b35
mov edi, 0xc000000d
jmp 0x77cf1f3a
mov eax, dword [esi + 4]
cmp eax, 0x478
jne 0x77cf1b49
mov dword [ebp - 0x21c], edx
mov esi, edx
jmp 0x77cf1b50
cmp eax, 0x4c0
jne 0x77cf1b2b
mov edi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
add ecx, 0x20
push ecx
lea eax, [ebp - 0x240]
push eax
call edi
mov eax, dword [ebp - 0x214]
add eax, 0x220
push eax
lea eax, [ebp - 0x234]
push eax
call edi
cmp word [ebp - 0x240], 0x200
jae 0x77cf1f0d
cmp word [ebp - 0x234], 0x200
jae 0x77cf1f0d
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + 0x464]
cmp dword [eax], 0x8003
mov dword [ebp - 0x238], eax
jne 0x77cf1f0d
cmp dword [ecx + 0x420], 0x10
jne 0x77cf1f0d
test esi, esi
je 0x77cf1be2
cmp dword [esi + 0x4bc], 0x800c
jne 0x77cf1f0d
cmp dword [esi + 0x478], 0x20
jne 0x77cf1f0d
and word [ebp - 0x22c], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push 0x77ce0a18
push dword [ebx + 0x14]
mov word [ebp - 0x22a], 0x208
call fcn.77cf27f5
mov edi, eax
test edi, edi
jl 0x77cf1f12
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x2001f
push eax
push dword [0x77d1e6a8]
push dword [ebx + 0x18]
call fcn.77cbeaa7
mov edi, eax
test edi, edi
jl 0x77cf1f12
test esi, esi
je 0x77cf1c57
mov esi, 0x20006
jmp 0x77cf1c83
cmp byte [ebp + 8], 0
jne 0x77cf1c7e
cmp dword [ebx + 0xa8], 0
je 0x77cf1c7e
mov edi, dword [ebp - 0x214]
push 4
add edi, 0x424
pop ecx
lea esi, [ebx + 0x28]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x77cf1cf3
mov esi, 0x10000
push 0x77cf1f88
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov edi, eax
test edi, edi
jl 0x77cf1f12
cmp dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
push eax
setne al
or esi, 0x20019
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [0x77d1e6a8]
push dword [ebx + 0x18]
call fcn.77cbeaa7
mov edi, eax
test edi, edi
jge 0x77cf1cf3
cmp dword [ebp - 0x21c], 0
jne 0x77cf1f12
cmp edi, 0xc0000034
jne 0x77cf1f12
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ebx, dword [sym.imp.ntdll.dll_NtSetValueKey]
push 8
lea eax, [ebp - 0x248]
push eax
push 0xb
push 0
push 0x77cf1f50
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
movzx eax, word [ebp - 0x23e]
push eax
push dword [ebp - 0x23c]
push 1
push 0
push 0x77cf1f58
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
movzx eax, word [ebp - 0x232]
push eax
push dword [ebp - 0x230]
push 1
push 0
push 0x77cf1f70
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 0x470]
push 4
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push 4
push 0
push 0x77cf1f60
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov eax, dword [ebp - 0x224]
mov esi, dword [ebp - 0x220]
mov dword [esi + 0xb0], eax
mov eax, dword [ebp - 0x214]
push 8
add eax, 0x468
push eax
push 0xb
push 0
push 0x77cf1f78
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov eax, dword [ebp - 0x214]
add eax, 0x468
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x214]
push dword [eax + 0x420]
lea ecx, [eax + 0x424]
push ecx
push 3
push 0
push 0x77cf1f68
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov dword [esi + 0xa8], 1
lea edi, [esi + 0x28]
mov esi, dword [ebp - 0x214]
movsd dword es:[edi], dword [esi]
push 4
push dword [ebp - 0x238]
movsd dword es:[edi], dword [esi]
push 4
push 0
movsd dword es:[edi], dword [esi]
push 0x77cf1f80
push dword [ebp - 0x210]
movsd dword es:[edi], dword [esi]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov eax, dword [ebp - 0x21c]
xor ecx, ecx
cmp eax, ecx
je 0x77cf1ed9
push dword [eax + 0x478]
lea esi, [eax + 0x47c]
push esi
push 3
push ecx
push 0x77cf1f68
push dword [ebp - 0x218]
call ebx
mov edi, eax
test edi, edi
jl 0x77cf1f12
mov eax, dword [ebp - 0x220]
push 8
pop ecx
mov dword [eax + 0xac], 1
lea edi, [eax + 0x68]
mov eax, dword [ebp - 0x21c]
push 4
add eax, 0x4bc
push eax
push 4
push 0
push 0x77cf1f80
push dword [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
call ebx
jmp 0x77cf1f03
cmp dword [ebp - 0x218], ecx
je 0x77cf1f09
mov edx, dword [ebp - 0x220]
push 8
mov dword [edx + 0xac], ecx
pop ecx
push dword [ebp - 0x218]
xor eax, eax
lea edi, [edx + 0x68]
rep stosd dword es:[edi], eax
call dword [sym.imp.ntdll.dll_NtDeleteKey]
mov edi, eax
test edi, edi
jl 0x77cf1f12
xor edi, edi
jmp 0x77cf1f12
mov edi, 0xc000000d
cmp dword [ebp - 0x218], 0
mov esi, dword [sym.imp.ntdll.dll_NtClose]
je 0x77cf1f29
push dword [ebp - 0x218]
call esi
cmp dword [ebp - 0x210], 0
je 0x77cf1f3a
push dword [ebp - 0x210]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0xc