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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 4
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0xfffffffd
mov dword [ebp - 0x24], 0xfffffffc
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x7cda8fa2
mov eax, 0x80070057
jmp 0x7cda9105
cmp dword [ebp + 8], esi
mov dword [edi], esi
jne 0x7cda9050
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x42
push eax
lea eax, [ebp - 0x70]
push eax
push 0x7cd81808
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x7cda8fe6
lea eax, [ebp - 0x70]
push 0x7cd81860
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 8], 0xa
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
push esi
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
cmp eax, esi
jne 0x7cda9008
mov eax, 0x8007000e
jmp 0x7cda9105
mov dword [eax], esi
mov esi, dword [ebp + 0xc]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax + 0x18], 0
and dword [eax + 0x20], 0
lea edi, [eax + 0x28]
mov dword [eax + 0x14], 1
mov dword [eax + 0x24], 2
mov dword [eax + 0x1c], edi
mov ecx, dword [ebp - 8]
lea esi, [ebp - 0x70]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x7cda9105
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x7cda92bf
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x7cda92bf
mov ecx, eax
shl ecx, 6
shl eax, 4
mov dword [ebp - 0x14], ecx
lea eax, [eax + ecx + 0x18]
push eax
push esi
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x2c], ebx
jne 0x7cda90ac
mov dword [ebp - 0xc], 0x8007000e
jmp 0x7cda90e4
mov dword [ebx], esi
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
shl eax, 4
push eax
push esi
push dword [0x7ce50ed0]
call dword [0x7ce4df60]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x7cda910c
mov dword [ebp - 0xc], 0x8007000e
xor esi, esi
cmp dword [ebp - 0x10], esi
je 0x7cda90f9
push dword [ebp - 0x10]
push esi
push dword [0x7ce50ed0]
call dword [0x7ce4df64]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], esi
shl ecx, 4
cmp dword [ebp - 4], esi
lea edi, [ecx + ebx + 0x18]
jbe 0x7cda924a
lea ebx, [eax + 8]
lea eax, [ebp - 0x70]
push 0x21
push eax
mov esi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x7cda90e2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x70]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x7cda90e2
push 0x52
pop eax
cmp dword [ebp - 8], eax
jbe 0x7cda916f
mov dword [ebp - 8], eax
and word [edi + 0x50], 0
push 0xa
lea eax, [ebp - 0x70]
push 0
push eax
call sub.ntdll.dll_wcstol
add esp, 0xc
cmp eax, dword [ebp - 0x18]
mov dword [ebx - 8], eax
jle 0x7cda9190
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
and dword [ebx], 0
push 2
pop ecx
mov dword [ebx + 4], ecx
mov ax, word [edi]
mov edx, dword [0x7cd81590]
test ax, ax
je 0x7cda91b7
cmp ax, dx
je 0x7cda91b7
mov ax, word [esi + ecx]
add esi, ecx
test ax, ax
jne 0x7cda91a7
mov ecx, esi
sub ecx, edi
sar ecx, 1
inc ecx
cmp word [esi], dx
mov dword [ebp - 0x1c], ecx
jne 0x7cda922a
and word [esi], 0
inc esi
mov edx, dword [0x7cd81590]
inc esi
mov dword [ebp - 0x28], esi
mov ax, word [esi]
test ax, ax
je 0x7cda91ec
cmp ax, dx
je 0x7cda91ec
inc esi
inc esi
mov ax, word [esi]
test ax, ax
jne 0x7cda91dd
cmp word [esi], dx
jne 0x7cda920f
xor eax, eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], ax
je 0x7cda920f
push 0xa
push eax
push esi
call sub.ntdll.dll_wcstol
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
cmp word [eax], 0
je 0x7cda922a
push 0xa
push 0
push eax
call sub.ntdll.dll_wcstol
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebx], eax
sub dword [ebp - 0x14], ecx
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ebx - 4], edi
add ebx, 0x10
cmp eax, dword [ebp - 4]
lea edi, [edi + ecx*2]
jb 0x7cda9125
mov ebx, dword [ebp - 0x2c]
xor esi, esi
cmp dword [ebp - 4], esi
mov dword [ebp + 0xc], esi
jbe 0x7cda92b5
lea ecx, [ebx + 0x20]
cmp dword [ebp - 4], esi
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
jle 0x7cda9286
mov esi, dword [ebp - 0x10]
mov edx, dword [esi]
cmp edx, edi
jge 0x7cda9276
cmp edx, dword [ebp - 0x24]
jle 0x7cda9276
mov eax, dword [ebp - 0x14]
mov edi, edx
inc dword [ebp - 0x14]
mov edx, dword [ebp - 4]
add esi, 0x10
cmp dword [ebp - 0x14], edx
jl 0x7cda9266
xor esi, esi
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edi
shl eax, 4
add eax, edx
inc dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ecx - 8], edx
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [eax + 4]
mov dword [ecx - 4], eax
mov eax, dword [ebp + 0xc]
add ecx, 0x10
cmp eax, dword [ebp - 4]
jb 0x7cda9255
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x7cda90e2
mov dword [ebp - 0xc], 0x80040180
jmp 0x7cda90e4