Function at 0x100f9b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014eba3
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x101ba518]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x50], 0x18
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x48], 0x10170ffc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [0x101c9be8]
test eax, eax
je 0x100f9bad
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
lea ecx, [ebp - 0x10]
push ecx
call eax
jmp 0x100f9bc0
lea eax, [ebp - 0x50]
push eax
push 0x20019
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x100f9d88
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.100f9dd0
mov edi, dword [ebp - 0x30]
mov esi, eax
test esi, esi
js 0x100f9d77
mov eax, dword [0x101c9bec]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x100f9c1f
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x38]
push edi
push 2
push 0x10170fec
push dword [ebp - 0x10]
call eax
jmp 0x100f9c37
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x38]
push edi
push 2
push 0x10170fec
push dword [ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test esi, esi
js 0x100f9d77
cmp dword [edi + 4], 4
je 0x100f9c51
mov esi, 0xc0000034
jmp 0x100f9d77
mov ecx, 0x28
call fcn.100b98a0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x100f9c6f
mov ecx, eax
call fcn.100f9870
jmp 0x100f9c71
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push eax
call fcn.100f9e60
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 0
je 0x100f9d66
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100f9d66
mov eax, dword [eax + 4]
test eax, eax
je 0x100f9d63
mov ecx, dword [ebp - 0x24]
push 0x26
push dword [0x10170ef8]
call fcn.100be310
mov esi, eax
test esi, esi
jns 0x100f9cc0
mov edi, dword [ebp - 0x30]
jmp 0x100f9d6b
mov ecx, dword [ebp - 0x24]
push 0x2a
push dword [0x10170fe8]
lea ecx, [ecx + 0x14]
call fcn.100be310
mov edi, dword [ebp - 0x30]
mov esi, eax
test esi, esi
js 0x100f9d6b
mov esi, dword [edi + 0xc]
mov edx, esi
test esi, esi
jne 0x100f9cee
lea edx, [esi + 1]
jmp 0x100f9d06
xor ecx, ecx
test esi, esi
je 0x100f9d03
mov eax, 0xcccccccd
inc ecx
mul edx
shr edx, 3
test edx, edx
jne 0x100f9cf4
movzx edx, cx
mov ebx, dword [ebp - 0x24]
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [edx*2 + 2]
mov word [ebp - 0x2a], ax
mov eax, dword [ebx]
shr eax, 1
cmp eax, 0xffff
jbe 0x100f9d29
xor eax, eax
jmp 0x100f9d2c
movzx eax, ax
movzx ecx, ax
movzx eax, dx
sub ecx, eax
mov eax, dword [ebx + 0x10]
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
push 0xa
push esi
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
mov esi, eax
test esi, esi
js 0x100f9d6b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.100c0110
xor esi, esi
jmp 0x100f9d6b
mov edi, dword [ebp - 0x30]
mov esi, 0xc000009a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.100b9ba0
mov byte [ebp - 4], 0
test edi, edi
je 0x100f9d88
push edi
call fcn.101160e1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100f9dbb
cmp byte [0x101c99d0], 0
jne 0x100f9dbb
mov ecx, dword [0x101c9bcc]
push eax
test ecx, ecx
je 0x100f9dae
call ecx
jmp 0x100f9db4
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret