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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405160
push 0x402448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x358], bl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1f0], 0xff
mov dword [ebp - 0x120], 0x64
mov byte [ebp - 0x11c], bl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x124], ebx
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x32
xor eax, eax
lea edi, [ebp - 0x1ec]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x35c], 0xc7
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x1ec]
push ecx
mov edx, dword [ebp - 0x124]
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x401887
mov dword [ebp - 0x124], ebx
jmp 0x40188d
inc dword [ebp - 0x124]
mov byte [ebp - 0x4ec], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x4eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x64
xor eax, eax
lea edi, [ebp - 0x4ec]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1ec]
lea edx, [ebp - 0x4ec]
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x4ec]
mov edi, str.SoftwareMicrosoftWindowsShellNoRoamMUICache
or ecx, 0xffffffff
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
lea ecx, [ebp - 0x4ec]
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401833
mov dword [ebp - 0x4f0], ebx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x254]
push eax
push 0
push 0
lea ecx, [ebp - 0x1f0]
push ecx
lea edx, [ebp - 0x358]
push edx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x4f4], eax
cmp eax, 0x103
jne 0x40199f
mov ecx, dword [ebp - 0x1c]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [ebp - 0x258]
push edx
call esi
xor ebx, ebx
jmp 0x401833
push 0x40612c
lea eax, [ebp - 0x254]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call esi
test eax, eax
je 0x4019c9
push str.TM2013
lea ecx, [ebp - 0x254]
push ecx
call esi
test eax, eax
jne 0x401a2f
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x358]
lea edx, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
lea ecx, [ebp - 0x11c]
push ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
call esi
lea edx, [ebp - 0x11c]
push edx
call esi
lea eax, [ebp - 0x11c]
push eax
call esi
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00401420
add esp, 4
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x254]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1f0], 0xff
mov dword [ebp - 0x120], 0x64
inc ebx
jmp 0x401936