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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 0x1c]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x11c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x21c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x31c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
push 1
push 0
push 0x415534
push 0x80000006
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4017d1
lea ecx, [ebp - 0x24]
push 0x413a60
push ecx
mov dword [ebp - 0x24], 0x415508
call fcn.004094da
or eax, 0xffffffff
jmp 0x4017dc
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x20]
push 0
push 0
lea edi, [esi + 0x4a34]
push 0
inc eax
push ecx
push edi
mov ebx, 0x100
push eax
push edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x401ae0
test eax, eax
je 0x40182c
lea eax, [ebp - 0x2c]
push 0x413a60
push eax
mov dword [ebp - 0x2c], 0x4154d4
call fcn.004094da
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push edi
push edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40185b
lea eax, [ebp - 0x30]
push 0x413a60
push eax
mov dword [ebp - 0x30], 0x4154a4
call fcn.004094da
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
lea ebx, [esi + 0x4c34]
push ecx
push ebx
push 0
push 0
push 0x415498
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4018ae
lea eax, [ebp - 0x34]
push 0x413a60
push eax
mov dword [ebp - 0x34], 0x415468
call fcn.004094da
mov ecx, dword [ebp - 0x38]
push 0x10
push 0x415460
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 0x401ae0
ret
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x415458
lea edx, [esi + 0x4b34]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4018c5
lea edx, [esi + 0x4b34]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x415454]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [ebp - 0x14], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x14]
dec edi
mov ecx, eax
mov edx, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [edx + 0x4b34]
and ecx, 3
mov dword [ebp - 0x14], 0x100
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4017d6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 0
push 0x41544c
push ecx
mov dword [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017d6
push 0x415444
push ebx
call fcn.00412c60
add esp, 8
test eax, eax
jne 0x4017d6
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x100
push edx
push ebx
push eax
push eax
mov eax, dword [ebp - 0x18]
push 0x415440
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4017d6
mov esi, dword [ebp - 0x1c]
mov eax, ebx
lea edx, [esi + 0x1c]
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019af
mov edx, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x100
push ecx
push ebx
push 0
push 0
push 0x415434
push edx
call edi
test eax, eax
jne 0x4019f2
lea edx, [esi + 0x11c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019e8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 0
push 0x41542c
push ecx
mov dword [ebp - 0x14], 0x100
call edi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x415400
add esi, 0x4b34
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401a24
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x1c]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [eax + 0x4b34]
or ecx, 0xffffffff
xor eax, eax
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 [ebp - 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x18]
mov esi, 0x100
push ecx
push 1
push eax
lea eax, [edx + 0x4b34]
push eax
push 0x80000002
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ae0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push 0
push 0x4153f4
push ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x18]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401ac6
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x21c]
sub ecx, ebx
mov al, byte [ebx]
mov byte [ecx + ebx], al
inc ebx
test al, al
jne 0x401abc
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4153f0
lea edx, [ecx + 0x31c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401ad6
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret