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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x1005d26
cmp dword [ebp + 0xc], ebx
je 0x1005d26
cmp dword [ebp + 0x14], ebx
je 0x1005d26
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1005d29
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebx
je 0x1005ba7
lea eax, [ebp - 4]
push eax
call fcn.01001b65
jmp 0x1005d29
cmp dword [ebp - 0x1c], ebx
jne 0x1005bba
lea eax, [ebp - 4]
push eax
call fcn.01001b65
jmp 0x1005d16
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x1005bca
mov dword [ebp - 8], 0x100
jmp 0x1005bd6
cmp eax, 0x100
jae 0x1005bd6
add eax, eax
mov dword [ebp - 8], eax
call fcn.0100b5ae
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1005bed
lea eax, [ebp - 4]
push eax
call fcn.01001b65
jmp 0x1005c16
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 4]
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1005c1d
lea eax, [ebp - 4]
push eax
call fcn.01001b65
lea eax, [ebp - 0x14]
push eax
call fcn.0100b623
push 0xe
jmp 0x1005d28
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
jbe 0x1005c71
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
add eax, eax
cmp eax, ebx
je 0x1005c3f
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1005c39
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1005cc2
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0100ba41
cmp eax, 0xffffffff
jne 0x1005cca
push 0xe
pop esi
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x18]
push eax
call fcn.01009f4b
push dword [ebp - 0x14]
call fcn.0100b64e
cmp esi, 0xe
mov dword [ebp - 0x20], eax
je 0x1005cfc
cmp eax, ebx
je 0x1005cfc
xor esi, esi
cmp eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jbe 0x1005cfc
mov edi, dword [ebp + 0x10]
inc edi
push esi
push dword [ebp - 0x14]
call fcn.0100bc80
push dword [ebp + 0x14]
push edi
push eax
push dword [ebp - 4]
call fcn.01005b20
cmp eax, ebx
je 0x1005cd6
cmp dword [ebp - 0xc], ebx
jne 0x1005cd9
mov dword [ebp - 0xc], eax
jmp 0x1005cd9
cmp dword [ebp - 0xc], ebx
jne 0x1005cca
mov dword [ebp - 0xc], esi
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x1005c2a
jmp 0x1005c71
inc dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x1005c9e
cmp dword [ebp - 0x10], ebx
je 0x1005cfc
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x1005cf5
cmp dword [ebp - 0x10], eax
jne 0x1005cf5
xor esi, esi
jmp 0x1005cff
mov esi, 0x80030201
jmp 0x1005cff
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.0100b623
lea eax, [ebp - 4]
push eax
call fcn.01001b65
cmp esi, ebx
pop edi
jne 0x1005d29
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x1005d29
push 0x57
pop esi
cmp dword [ebp + 0x10], ebx
jne 0x1005d7b
cmp esi, ebx
je 0x1005d62
cmp esi, 0x80030201
jne 0x1005d4d
push ebx
push 0x8d
call fcn.0100b4a7
push eax
call fcn.0100965b
jmp 0x1005d53
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
jmp 0x1005d75
push ebx
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
mov eax, esi
pop esi
pop ebx
leave
ret 0x10