Function at 0x47ae90
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a10d0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x62cf50]
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 edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
push edi
push esi
push ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x47b177
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
mov eax, edi
or eax, 8
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x47b177
test eax, eax
jne 0x47b179
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47af20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409db0
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x47b02e
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
cmp ebx, 8
cmovae eax, ecx
cmp word [eax + esi*2 - 2], 0x5c
je 0x47b02b
cmp esi, ebx
jae 0x47af85
lea eax, [esi + 1]
cmp ebx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, ecx
mov dword [eax + esi*2], 0x5c
jmp 0x47b028
mov ecx, 0x7ffffffe
mov eax, ecx
sub eax, esi
cmp eax, 1
jb 0x47b195
lea edi, [esi + 1]
or edi, 7
mov dword [ebp - 0x14], edi
cmp edi, ecx
jbe 0x47afa8
mov edi, ecx
jmp 0x47afc3
mov eax, ebx
shr eax, 1
sub ecx, eax
cmp ebx, ecx
jbe 0x47afb9
mov edi, 0x7ffffffe
jmp 0x47afc3
add eax, ebx
cmp edi, eax
mov dword [ebp - 0x14], eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409eb0
mov dword [ebp - 0x18], edi
lea ecx, [esi + 1]
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + esi]
mov dword [ebp - 0x14], eax
lea edi, [ecx + eax]
push ecx
cmp ebx, 8
jb 0x47b00c
lfence
mov esi, dword [ebp - 0x2c]
push esi
push eax
call fcn.0056a3d0
add esp, 0xc
mov dword [edi], 0x5c
lea eax, [ebx + 1]
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.0040a5e0
jmp 0x47b01f
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0056a3d0
add esp, 0xc
mov dword [edi], 0x5c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x44]
push 0x104
push eax
call fcn.00434a50
add esp, 8
push eax
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x47b112
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
cmp ecx, eax
ja 0x47b09e
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], ecx
cmovae eax, dword [ebp - 0x44]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x47b0ae
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x44]
lfence
call fcn.00434ab0
mov ecx, dword [ebp - 0x1c]
cmp esi, ecx
ja 0x47b0cb
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x47b0dd
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
lfence
call fcn.00434ab0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040f730
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push edi
cmovae eax, dword [ebp - 0x2c]
push eax
push ebx
call fcn.0047ae90
add esp, 0xc
test eax, eax
je 0x47b046
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
push dword [ebp - 0x50]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x47b143
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 3
cmp eax, 8
jb 0x47b173
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040a5e0
mov eax, esi
jmp 0x47b179
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.004016cd
mov esp, ebp
pop ebp
ret
call fcn.0047ea80
int3