Function at 0x1009fb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10189721
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 2
mov dword [ebx], 0
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a007e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x10193fcc
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1001d330
test al, al
jne 0x1009fba6
push 0
push 0x10193fcc
mov ecx, ebx
call fcn.10020080
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], 1
call fcn.1001b540
mov ecx, eax
test ecx, ecx
je 0x100a0088
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
push 0x10193fcc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.1001d330
test al, al
jne 0x1009fbef
push 0
push 0x10193fcc
lea ecx, [ebp - 0x40]
call fcn.10020080
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
push eax
call fcn.1001d450
add eax, 0x10
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100a02d0
mov eax, dword [ebp - 0x40]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x48], eax
push eax
call fcn.1001d450
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.1009f7d0
mov esi, dword [ebp - 0x4c]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add esp, 4
or edi, 0xffffffff
mov dword [ebp - 0x44], ecx
test eax, eax
jne 0x1009fcd6
push 0x20019
push dword [ebp - 0x18]
call fcn.100a0460
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009fcd0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.1001d450
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
lea edi, [eax + 0x10]
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009fcc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1009fcd0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
dec eax
cmp eax, 0xa
ja case.0x1009fce7.5
movzx eax, byte [eax + 0x100a00ac]
jmp dword [eax*4 + 0x100a0094]
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100a0b30
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1001c9f0
mov edx, dword [ebp - 0x14]
jmp 0x1009ffd1
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.100a0750
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.1001c9f0
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009fd81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x101946c8
push 0x1019c87c
mov ecx, ebx
call fcn.100338b0
jmp case.0x1009fce7.5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [esi - 0x10]
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 9
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x38], 0
je 0x1009fe0c
push str.IsWow64Process
push 0x1019c850
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1009fe01
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0
mov eax, 0xf013f
jne 0x1009fe11
mov eax, 0xf003f
lea ecx, [ebp - 0x38]
push ecx
push eax
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009fe50
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1009fe50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0xb
je 0x1009fe5e
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, edi
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009fe88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x3c]
push dword [ebp - 0x14]
push str._I64d
push ebx
call fcn.1001e580
add esp, 0x10
jmp case.0x1009fce7.5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [esi - 0x10]
push eax
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x34], 0
je 0x1009ff1d
push str.IsWow64Process
push 0x1019c850
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1009ff12
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x3c]
cmp dword [ebp - 0x24], 0
mov eax, 0xf013f
jne 0x1009ff22
mov eax, 0xf003f
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009ff61
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1009ff61
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009ff85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
push 0x10199af0
push ebx
call fcn.1001e580
add esp, 0xc
jmp case.0x1009fce7.5
push dword [ebp - 0x18]
lea eax, [esi - 0x10]
push dword [ebp + 0x10]
push ecx
push ecx
mov edi, esp
push eax
mov dword [ebp - 0x1c], edi
call fcn.1001d450
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100a04e0
add esp, 0x14
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.1001c9f0
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg case.0x1009fce7.5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a000b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a0026
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100a0044
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100a0060
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10017a40
push 0x80004005
call fcn.10017a40
nop
out dx, al
cld
or dword [eax], edx
cwde
dec dword [ecx]
adc byte [ecx + 0x2c1009fe], ah
std
or dword [eax], edx
xchg edi, eax
std
or dword [eax], edx
in eax, dx
dec dword [ecx]
adc byte [eax], al
add byte [ecx], al
add al, byte [84214533]
add eax, -858993660
int3