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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f848
push 0x10025bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x154], 0
push 0x20
push 0
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x258]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x25c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10010584
mov dword [ebp - 0x24], 0xffffffff
jmp case.default.0x100105a0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 3
ja case.default.0x100105a0
mov ecx, dword [ebp - 0x260]
jmp dword [ecx*4 + 0x10010a18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
sub eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 6
ja case.0x100105d2.4
mov ecx, dword [ebp - 0x264]
jmp dword [ecx*4 + 0x10010a28]
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10010629
lea ecx, [ebp - 0x12c]
push ecx
call fcn.10010280
add esp, 4
push eax
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x100105d2.4
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100106d4
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x28], edx
jmp 0x1001067b
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
test edx, edx
je 0x100106ba
push 0x104
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
push 0x104
push 0x1008c26c
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x10010666
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x100105d2.4
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10010723
mov ecx, dword [ebp - 0x150]
push ecx
push 0x1008c270
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp case.0x100105d2.4
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x100105d2.4
mov dword [ebp - 0x24], 1
jmp case.default.0x100105a0
mov eax, 1
test eax, eax
je 0x10010807
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x154]
add ecx, 1
mov dword [ebp - 0x154], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100107cc
jmp 0x10010807
lea edx, [ebp - 0x12c]
push edx
push 0x1008c274
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x100105a0.1
jmp case.default.0x100105a0
mov eax, 1
test eax, eax
je 0x100109d5
push 0x20
push 0
lea ecx, [ebp - 0x14c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x12c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x154], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x100108ba
jmp 0x100109d5
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
sub edx, 1
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x270], 6
ja case.0x100108e5.4
mov eax, dword [ebp - 0x270]
jmp dword [eax*4 + 0x10010a44]
lea ecx, [ebp - 0x12c]
push ecx
push str.REG_SZ
lea edx, [ebp - 0x14c]
push edx
push 0x1008c284
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x100108e5.4
lea ecx, [ebp - 0x12c]
push ecx
push str.REG_EXPAND_SZ
lea edx, [ebp - 0x14c]
push edx
push str.__24s___15s__s__r_n
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x100108e5.4
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x12c]
push edx
push str.REG_DWORD
lea eax, [ebp - 0x14c]
push eax
push str.__24s___15s_0x_x__d___r_n
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp case.0x100108e5.4
push str.REG_MULTI_SZ
lea edx, [ebp - 0x14c]
push edx
push 0x1008c2f0
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp case.0x100108e5.4
push str.REG_BINARY
lea ecx, [ebp - 0x14c]
push ecx
push str.__24s___15s__r_n
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp case.0x100105a0.2
jmp case.default.0x100105a0
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100109ec
jmp 0x10010a04
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret