Function at 0x411780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x7f02
mov dword [esp + 0x34], ecx
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x34], eax
mov eax, dword [0x425f60]
cmp eax, 0xffffffff
jne 0x411979
push 9
push str.softwaremicrosoftwindows_ntcurrentversionperflib
push str._s_03x
push 0x42c678
call fcn.00414780
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x42c678
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x411b97
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push ebx
push edx
push ebx
push str.Counters
push eax
call esi
cmp eax, ebx
jne 0x411b97
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00414f90
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x411b97
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x20]
push ecx
push ebx
push str.Counters
push edx
call esi
cmp eax, ebx
jne 0x411b97
mov ebp, dword [esp + 0x10]
mov ebx, ebp
cmp byte [ebp], 0
je 0x411970
cmp ebx, ebp
jbe 0x4118b0
movsx eax, byte [ebx - 2]
lea esi, [ebx - 2]
push eax
call fcn.00414720
add esp, 4
test eax, eax
je 0x4118b0
movsx ecx, byte [esi - 1]
dec esi
push ecx
call fcn.00414720
add esp, 4
test eax, eax
jne 0x41189e
push str.process
push ebx
call fcn.00414c40
add esp, 8
test eax, eax
jne 0x41190d
movsx edx, byte [ebx - 2]
lea esi, [ebx - 2]
push edx
call fcn.00414720
add esp, 4
test eax, eax
je 0x4118e8
movsx eax, byte [esi - 1]
dec esi
push eax
call fcn.00414720
add esp, 4
test eax, eax
jne 0x4118d6
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x42c678
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x411954
push str.id_process
push ebx
call fcn.00414c40
add esp, 8
test eax, eax
jne 0x411954
movsx eax, byte [ebx - 2]
lea esi, [ebx - 2]
push eax
call fcn.00414720
add esp, 4
test eax, eax
je 0x411945
movsx ecx, byte [esi - 1]
dec esi
push ecx
call fcn.00414720
add esp, 4
test eax, eax
jne 0x411933
inc esi
push esi
call fcn.004145a0
add esp, 4
mov dword [0x425f60], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x411886
push ebp
call fcn.00414ef0
add esp, 4
push 0x19000
mov dword [esp + 0x18], 0x19000
call fcn.00414f90
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x411b97
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
mov edi, esi
mov ebx, 3
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebp, 0x46
and ecx, ebx
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push esi
push ecx
push 0
push 0x42c678
push 0x80000004
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x411a04
test ecx, ecx
jbe 0x411a04
cmp word [esi], 0x50
jne 0x411a04
cmp word [esi + 2], 0x45
jne 0x411a04
cmp word [esi + 4], 0x52
jne 0x411a04
cmp word [esi + 6], bp
je 0x411a49
cmp eax, 0xea
jne 0x411b97
mov edx, dword [esp + 0x10]
add ecx, 0xc800
push ecx
push edx
mov dword [esp + 0x1c], ecx
call fcn.00415a60
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x18], edi
add esp, 8
mov esi, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
jmp 0x4119bd
mov eax, dword [esi + 0x18]
xor ecx, ecx
add eax, esi
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x20]
add edx, eax
test esi, esi
jbe 0x411a71
mov edi, dword [0x425f60]
add edx, 4
cmp dword [edx], edi
je 0x411a71
add edx, 0x28
inc ecx
cmp ecx, esi
jb 0x411a65
mov esi, dword [eax + 0x28]
mov ebx, dword [eax + 4]
mov edi, esi
mov dword [esp + 0x20], esi
shl edi, 6
add edi, esi
add ebx, eax
shl edi, 2
push edi
call fcn.00414f90
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x411b9f
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
jbe 0x411b9f
mov dword [esp + 0x2c], esi
mov ecx, dword [ebx + 0x10]
push 0
push 0
lea eax, [esp + 0x40]
push 0x104
push eax
add ecx, ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x411b06
mov edi, str.unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x38]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x38]
lea eax, [edx + ecx + 1]
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebx]
add eax, ebx
not ecx
mov ebx, dword [eax]
dec ecx
add ebx, eax
mov eax, dword [esp + 0x2c]
dec eax
lea ebp, [ebp + ecx + 1]
mov dword [esp + 0x2c], eax
jne 0x411abe
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add ecx, 2
push ecx
push ebp
call fcn.00415a60
mov edx, dword [esp + 0x38]
add esp, 8
mov dword [edx + 0x7b0], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411bcb
push eax
call fcn.00414ef0
add esp, 4
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x411bdc
push eax
call edi
push 0x80000004
call edi
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret