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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x77d260c4]
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 0x77cfe9cd
mov edi, 0xc000000d
jmp 0x77cfedd2
mov eax, dword [esi + 4]
cmp eax, 0x478
jne 0x77cfe9e1
mov dword [ebp - 0x21c], edx
mov esi, edx
jmp 0x77cfe9e8
cmp eax, 0x4c0
jne 0x77cfe9c3
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 0x77cfeda5
cmp word [ebp - 0x234], 0x200
jae 0x77cfeda5
mov ecx, dword [ebp - 0x214]
lea eax, [ecx + 0x464]
cmp dword [eax], 0x8003
mov dword [ebp - 0x238], eax
jne 0x77cfeda5
cmp dword [ecx + 0x420], 0x10
jne 0x77cfeda5
test esi, esi
je 0x77cfea7a
cmp dword [esi + 0x4bc], 0x800c
jne 0x77cfeda5
cmp dword [esi + 0x478], 0x20
jne 0x77cfeda5
and word [ebp - 0x22c], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push ebx
push 0x77cef218
push dword [ebx + 0x14]
mov word [ebp - 0x22a], 0x208
call fcn.77cff68d
mov edi, eax
test edi, edi
jl 0x77cfedaa
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x2001f
push eax
push dword [0x77d2a6ec]
push dword [ebx + 0x18]
call fcn.77cb6edb
mov edi, eax
test edi, edi
jl 0x77cfedaa
test esi, esi
je 0x77cfeaef
mov esi, 0x20006
jmp 0x77cfeb1b
cmp byte [ebp + 8], 0
jne 0x77cfeb16
cmp dword [ebx + 0xa8], 0
je 0x77cfeb16
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 0x77cfeb8b
mov esi, 0x10000
push 0x77cfee20
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 [0x77d2a6ec]
push dword [ebx + 0x18]
call fcn.77cb6edb
mov edi, eax
test edi, edi
jge 0x77cfeb8b
cmp dword [ebp - 0x21c], 0
jne 0x77cfedaa
cmp edi, 0xc0000034
jne 0x77cfedaa
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 0x77cfede8
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
movzx eax, word [ebp - 0x23e]
push eax
push dword [ebp - 0x23c]
push 1
push 0
push 0x77cfedf0
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
movzx eax, word [ebp - 0x232]
push eax
push dword [ebp - 0x230]
push 1
push 0
push 0x77cfee08
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 0x77cfedf8
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 0x77cfee10
push dword [ebp - 0x210]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 0x77cfee00
push dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 0x77cfee18
push dword [ebp - 0x210]
movsd dword es:[edi], dword [esi]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
mov eax, dword [ebp - 0x21c]
xor ecx, ecx
cmp eax, ecx
je 0x77cfed71
push dword [eax + 0x478]
lea esi, [eax + 0x47c]
push esi
push 3
push ecx
push 0x77cfee00
push dword [ebp - 0x218]
call ebx
mov edi, eax
test edi, edi
jl 0x77cfedaa
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 0x77cfee18
push dword [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
call ebx
jmp 0x77cfed9b
cmp dword [ebp - 0x218], ecx
je 0x77cfeda1
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 0x77cfedaa
xor edi, edi
jmp 0x77cfedaa
mov edi, 0xc000000d
cmp dword [ebp - 0x218], 0
mov esi, dword [sym.imp.ntdll.dll_NtClose]
je 0x77cfedc1
push dword [ebp - 0x218]
call esi
cmp dword [ebp - 0x210], 0
je 0x77cfedd2
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.77cd6011
leave
ret 0xc