Function at 0x487950
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55dc4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov bl, 2
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.00527a11
add esp, 8
test eax, eax
je 0x4879a2
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x4879a5
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x20]
test al, al
jne 0x4879b7
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x120]
push 0x104
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x487a08
lea ecx, [ebp - 0x32c]
call fcn.0045eaa0
push 1
push str.Error_bi200001_r_n
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 3
call fcn.0045eb80
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], bl
call fcn.0045eb70
jmp 0x487bd6
lea edx, [ebp - 0x42c]
lea eax, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x530]
push eax
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 0x120]
push edx
push eax
call fcn.0052776a
mov ecx, dword [ebp + 0x1c]
add esp, 0x14
lea edx, [ebp - 0x530]
lea eax, [ebp + 8]
push ecx
push edx
push eax
lea ecx, [ebp - 0x120]
push 0x5a47ec
push ecx
call fcn.00527718
add esp, 0x14
lea edx, [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push edi
push edi
push edi
push edi
push edi
push edi
push edx
push eax
push edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x487b3d
cmp dword [ebp + 0x1c], edi
je 0x487b3d
xor ebx, ebx
test edi, edi
jne 0x487b3d
lea ecx, [ebp - 0x224]
push 0x104
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x487b37
lea edx, [ebp - 0x18]
lea eax, [ebp + 8]
push edx
push eax
push edi
push 0xf003f
push edi
push 0x5c6ff0
lea ecx, [ebp - 0x224]
push edi
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x487b37
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x430]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487b2d
lea edx, [ebp - 0x430]
lea eax, [ebp - 0x120]
push edx
push eax
call fcn.0052f680
add esp, 8
test eax, eax
jne 0x487b2d
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x224]
push ecx
push edx
call fcn.00527a11
add esp, 8
test eax, eax
je 0x487b2d
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
jmp 0x487a7e
mov al, byte [ebp + 0x20]
test al, al
je 0x487bd6
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x20]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x487bd6
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
lea ecx, [ebp - 0x120]
push ecx
push 1
push eax
push eax
push edx
call esi
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.contexts
push ecx
mov dword [ebp + 8], 0xf3
call esi
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x487bd6
mov ebx, dword [ebp + 0x14]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [ebp + 0x18]
push eax
push edx
call esi
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.005421be
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c