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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566f84
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5df7e4]
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, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x818]
push eax
push 0xf003f
push 0
push str.SOFTWAREAlibabaWWLights
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x818], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
je 0x50b452
mov byte [ebp - 0x811], 0
jmp 0x50b610
push ecx
mov esi, esp
mov dword [ebp - 0x81c], esp
mov dword [ebp - 0x828], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004bbb10
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 0
mov ecx, edi
call fcn.0050ae00
mov byte [ebp - 4], 3
push ecx
mov esi, esp
mov dword [ebp - 0x828], esp
mov dword [ebp - 0x81c], esi
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
push eax
call fcn.004bbb10
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x820]
push eax
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.0050abe0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x810]
push 0x400
push eax
xor edi, edi
push edi
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x50b5bb
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x50b69b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.004bb4d0
test al, al
jne 0x50b554
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50b532
sub eax, edx
lea ecx, [ebp - 0x81c]
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004bbc70
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x50b69b
mov esi, dword [ebp - 0x81c]
push eax
push esi
call fcn.0052dcd6
add esp, 8
test eax, eax
je 0x50b653
inc edi
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50b59a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x50b4f2
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x811], 0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x820]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50b5ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x824]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x50b610
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x50b62f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x811]
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.005121be
mov esp, ebp
pop ebp
ret 4
push esi
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x818]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete byte [ebp - 0x811]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50b5ce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50b5ce
push 0x80004005
call fcn.004b95c0
int3