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

Disassembly:
mov eax, 0x4b4c
call fcn.00406b60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4b5c]
push edi
xor edi, edi
push esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], edi
call fcn.0040e230
mov ebp, eax
cmp ebp, edi
jne 0x40e30a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4b4c
ret 8
mov ebx, dword [sym.imp.MSVCRT.dll_printf]
push esi
push str._s_r_n
call ebx
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edx, eax
add esp, 0x10
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x65c]
test edx, edx
rep stosd dword es:[edi], eax
je 0x40e35f
lea edi, [edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x65c]
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, [esp + 0x65c]
push ecx
push str.subkey_s_r_n
call ebx
lea edi, [esp + 0x664]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jae 0x40e395
lea edx, [esp + 0x14]
push edx
push 0xf003f
push eax
push eax
jmp 0x40e3a9
lea eax, [esp + 0x14]
lea ecx, [esp + 0x65c]
push eax
push 0xf003f
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e94f
push eax
push eax
lea edx, [esp + 0x54]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x58]
push 0
lea eax, [esp + 0x44]
push edx
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x40e404
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4b4c
ret 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push str.subkeyNum_d_subValueNum_d_r_n
call ebx
add esp, 0xc
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40e447
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4b4c
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax], 0x83
mov dword [esp + 0x10], 1
xor esi, esi
xor eax, eax
mov ecx, 0x3f
mov dword [esp + 0x30], eax
lea edi, [esp + 0x15d]
mov dword [esp + 0x34], eax
mov byte [esp + 0x5c], 0
mov dword [esp + 0x38], eax
mov edx, 0xff
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x15c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x5d]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x5c]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
push 0
lea edx, [esp + 0x16c]
push ecx
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, eax
inc esi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x25c]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x50], esi
rep stosd dword es:[edi], eax
jne 0x40e7a6
mov esi, dword [sym.imp.MSVCRT.dll_printf]
lea ecx, [esp + 0x15c]
push ecx
call esi
push 0x4172a8
call esi
mov edx, dword [esp + 0x50]
add esp, 8
lea eax, [edx - 1]
cmp eax, 6
ja case.0x40e51d.5
jmp dword [eax*4 + 0x40e960]
mov edi, str.REG_SZ
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
jmp 0x40e67e
mov edi, str.REG_BINARY
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test eax, eax
jbe 0x40e69b
xor ecx, ecx
lea edx, [esp + ebp + 0x25c]
mov cl, byte [esp + esi + 0x5c]
push ecx
push str._02x
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add ebp, 3
add esp, 0xc
cmp ebp, 0x400
ja 0x40e69b
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x40e58e
jmp 0x40e69b
mov edi, str.REG_DWORD
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
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
mov eax, dword [esp + 0x5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x264]
push str.0x_08X__d_
push ecx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
jmp 0x40e69b
mov edi, str.REG_EXPAND_SZ
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
jmp 0x40e67e
mov edi, str.REG_MULTI_SZ
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
jmp 0x40e67e
lea edx, [esp + 0x30]
mov edi, str.REG_UNKNOW
or ecx, 0xffffffff
xor eax, eax
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]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
lea ecx, [esp + 0x5c]
push ecx
call esi
push 0x417060
call esi
add esp, 8
lea edx, [esp + 0x25c]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x15c]
push eax
call ebx
lea ecx, [esp + 0x30]
add esi, eax
push ecx
call ebx
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
lea eax, [esi + eax + 3]
push ebp
lea esi, [eax + edi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x40e6fb
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [esp + 0x1c], eax
mov ebp, eax
lea edx, [esp + 0x15c]
push edx
call ebx
mov ecx, eax
lea esi, [esp + 0x15c]
add edi, ebp
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, [esp + 0x15c]
push ecx
call ebx
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x14], edi
call ebx
mov ecx, eax
lea esi, [esp + 0x30]
inc ecx
add edi, ebp
mov edx, ecx
lea eax, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x25c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call ebx
mov ecx, eax
lea esi, [esp + 0x25c]
inc ecx
add edi, ebp
mov eax, ecx
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, [esp + 0x25c]
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
jmp 0x40e45a
cmp edx, 0x103
jne 0x40e45a
mov edi, dword [sym.imp.MSVCRT.dll_printf]
push str._r_nsend_buffer_r_n
call edi
mov esi, dword [esp + 0x20]
add esp, 4
test esi, esi
jne 0x40e7e3
push str.lpbufferNULL_r_n
call edi
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b4c
ret 8
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
call fcn.004065e8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40e826
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x4b4c
ret 8
lea eax, [esp + 0xb5c]
mov byte [ebp], 0x84
mov ecx, dword [esp + 0x14]
push 0x100
push eax
mov edi, 1
push 0
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x40e932
lea edx, [esp + 0xb5c]
push edx
call ebx
inc eax
push ebp
lea esi, [eax + edi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x40e885
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
lea eax, [esp + 0xb5c]
push eax
call ebx
mov ecx, eax
lea esi, [esp + 0xb5c]
mov edx, ecx
add edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xb5c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
lea eax, [esp + 0x24]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xb5c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e8f6
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xa5c]
push 0x100
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x40e901
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xb5c]
inc eax
push 0x100
push ecx
push eax
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, dword [esp + 0x10]
cmp eax, 0x103
jne 0x40e860
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
push edi
push ebp
call fcn.004065e8
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x4b4c
ret 8