Function at 0x1099051
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push edi
push 0x7f
pop ecx
xor esi, esi
xor eax, eax
mov word [ebp - 0x254], si
lea edi, [ebp - 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push 0x1011ce4
push 0x80000002
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10990f6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push 0x1004ad8
push dword [ebp - 0xc]
mov ebx, 0x200
mov dword [ebp - 0x24], ebx
call edi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10990f6
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
push 0x1011cc8
push dword [ebp - 0xc]
mov dword [ebp - 0x24], ebx
call edi
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], esi
je 0x1099104
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
jne 0x1099149
push 1
push 0x630
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp - 4], edi
je 0x1099149
push 0xffffffffffffffff
push 0x80
push 3
push esi
push 3
push esi
push 0x1011c9c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x1099150
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x1099325
lea eax, [ebp - 0x454]
push eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x454]
push eax
mov dword [edi + 0x10], 0x18
call ebx
add esp, 0xc
push esi
lea ecx, [ebp - 0x10]
push ecx
push 0x20
shl eax, 1
lea ecx, [ebp - 0x54]
push ecx
movzx ecx, word [edi + 4]
mov word [edi + 0x14], ax
movzx eax, ax
lea eax, [eax + ecx + 0x18]
push eax
push edi
push 0x6d0008
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10991bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1099334
cmp dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
jb 0x1099307
push 1
push dword [ebp - 0x54]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
je 0x1099334
push esi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x54]
movzx ecx, word [edi + 4]
push eax
movzx eax, word [edi + 0x14]
lea eax, [eax + ecx + 0x18]
push eax
push edi
push 0x6d0008
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x109932a
mov eax, dword [ebp - 8]
cmp dword [eax + 4], esi
mov dword [ebp - 0x1c], esi
jbe 0x1099307
add eax, 0xc
mov dword [ebp - 0x28], eax
jmp 0x109922a
mov eax, dword [ebp - 0x28]
mov esi, dword [eax - 4]
movzx eax, word [eax]
add esi, dword [ebp - 8]
push 0x1011c80
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
call ebx
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x18], eax
pop ecx
jbe 0x1099266
push 0x1011c80
call ebx
pop ecx
mov ecx, eax
shl ecx, 1
mov edi, esi
mov esi, 0x1011c80
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x109927d
mov edi, dword [ebp - 4]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x28], 0x18
cmp ecx, dword [eax + 4]
jb 0x1099227
jmp 0x1099307
lea eax, [ebp - 0x254]
push 1
push eax
call ebx
mov esi, dword [ebp - 0x18]
pop ecx
lea eax, [esi + eax*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x10992a7
mov edi, dword [ebp - 4]
xor esi, esi
jmp 0x109930a
mov edi, 0x1011c80
push edi
call ebx
shl eax, 1
sub esi, eax
push edi
mov dword [ebp - 0x18], esi
call ebx
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
lea esi, [ecx + eax*2]
mov ecx, dword [ebp - 0x18]
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]
cmp word [ebp - 0x254], 0
je 0x1099304
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
push esi
call ebx
lea eax, [esi + eax*2 - 2]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x1099304
and word [eax], 0
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 8]
call edi
pop ecx
pop ecx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x1099319