Function at 0x4ebd98
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x28], ecx
push 0x5b
mov ecx, dword [ebp - 0x28]
call fcn.004ec25c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004ebff8
push 0x5bd698
mov ecx, dword [ebp - 0x28]
call fcn.004ebff8
mov dword [ebp - 0x18], 0
mov ecx, 1
test ecx, ecx
je 0x4ebecd
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x10], 0x4000
lea edx, [ebp - 0x10]
push edx
push 0x5c3ef8
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0x5cbef8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4ebe29
jmp 0x4ebecd
cmp dword [ebp - 8], 0
je 0x4ebe3e
push 0x5cbef8
mov ecx, dword [ebp - 0x28]
call fcn.004ec035
jmp 0x4ebe48
push 0x40
mov ecx, dword [ebp - 0x28]
call fcn.004ec25c
push 0x3d
mov ecx, dword [ebp - 0x28]
call fcn.004ec25c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
je 0x4ebe66
cmp dword [ebp - 0x30], 4
je 0x4ebe75
jmp 0x4ebe9b
push 0x5c3ef8
mov ecx, dword [ebp - 0x28]
call fcn.004ec035
jmp 0x4ebeb0
cmp dword [ebp - 0x10], 4
jne 0x4ebe9b
push str.dword:
mov ecx, dword [ebp - 0x28]
call fcn.004ebff8
push 1
mov ecx, dword [0x5c3ef8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004ec1db
jmp 0x4ebeb0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x5c3ef8
mov ecx, dword [ebp - 0x28]
call fcn.004ec0ab
push 0xa
mov ecx, dword [ebp - 0x28]
call fcn.004ec25c
cmp dword [0x5cc700], 0x7c
jne 0x4ebec8
jmp 0x4ebfef
jmp 0x4ebdcb
push 0xa
mov ecx, dword [ebp - 0x28]
call fcn.004ec25c
cmp dword [ebp - 0x24], 0x103
je 0x4ebeea
mov dword [0x5cc700], 0x7d
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
lea eax, [edx + edx + 0x400]
add eax, 3
and al, 0xfc
call fcn.005374e0
mov dword [ebp - 0x34], esp
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov word [eax], 0x5c
mov ecx, dword [ebp - 0x20]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov word [edx], 0
mov dword [ebp - 0x18], 0
mov eax, 1
test eax, eax
je 0x4ebfdc
push 0x200
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4ebf8c
jmp 0x4ebfdc
lea eax, [ebp - 0xc]
push eax
push 9
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ebfcd
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004ebd98
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5cc700], 0x7c
jne 0x4ebfcb
jmp 0x4ebfef
jmp 0x4ebfd7
mov dword [0x5cc700], 0x7e
jmp 0x4ebf4e
cmp dword [ebp - 0x24], 0x103
je 0x4ebfef
mov dword [0x5cc700], 0x7d
lea esp, [ebp - 0x38]
mov esp, ebp
pop ebp
ret 8