Function at 0x10a55f7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0x7f
pop ecx
xor esi, esi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x204], si
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push 0x1011d5c
push 0x80000002
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
mov dword [ebp - 0x408], eax
jne 0x10a56d6
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push 0x1004a58
push dword [ebp - 0x410]
mov ebx, 0x200
mov dword [ebp - 0x428], ebx
call edi
cmp eax, esi
mov dword [ebp - 0x408], eax
jne 0x10a56d6
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push 0x1011d40
push dword [ebp - 0x410]
mov dword [ebp - 0x428], ebx
call edi
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x410], esi
je 0x10a56ea
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x408], esi
jne 0x10a5738
push 1
push 0x630
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp - 0x408], edi
je 0x10a5738
push 0xffffffffffffffff
push 0x80
push 3
push esi
push 3
push esi
push 0x1011d14
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x424], eax
jne 0x10a573f
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x10a5980
lea eax, [ebp - 0x404]
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 - 0x404]
push eax
mov dword [edi + 0x10], 0x18
call ebx
add esp, 0xc
push esi
lea ecx, [ebp - 0x41c]
push ecx
push 0x20
shl eax, 1
lea ecx, [ebp - 0x458]
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 - 0x424]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10a57b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10a599a
cmp dword [ebp - 0x41c], 4
mov dword [ebp - 0x40c], esi
jb 0x10a5959
push 1
push dword [ebp - 0x458]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x41c], esi
je 0x10a599a
push esi
lea ecx, [ebp - 0x41c]
push ecx
push dword [ebp - 0x458]
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 - 0x424]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10a598d
mov eax, dword [ebp - 0x40c]
cmp dword [eax + 4], esi
mov dword [ebp - 0x420], esi
jbe 0x10a5959
add eax, 0xc
mov dword [ebp - 0x42c], eax
jmp 0x10a5846
mov eax, dword [ebp - 0x42c]
mov esi, dword [eax - 4]
movzx eax, word [eax]
add esi, dword [ebp - 0x40c]
push 0x1011cf8
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x414], eax
call ebx
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x414], eax
pop ecx
jbe 0x10a5891
push 0x1011cf8
call ebx
pop ecx
mov ecx, eax
shl ecx, 1
mov edi, esi
mov esi, 0x1011cf8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10a58b4
mov edi, dword [ebp - 0x408]
inc dword [ebp - 0x420]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x420]
add dword [ebp - 0x42c], 0x18
cmp ecx, dword [eax + 4]
jb 0x10a5840
jmp 0x10a5959
lea eax, [ebp - 0x204]
push 1
push eax
call ebx
mov esi, dword [ebp - 0x414]
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 - 0x418], eax
jne 0x10a58e7
mov edi, dword [ebp - 0x408]
xor esi, esi
jmp 0x10a595f
mov edi, 0x1011cf8
push edi
call ebx
shl eax, 1
sub esi, eax
push edi
mov dword [ebp - 0x414], esi
call ebx
mov edi, dword [ebp - 0x418]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x430]
lea esi, [ecx + eax*2]
mov ecx, dword [ebp - 0x414]
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 - 0x204], 0
je 0x10a5953
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x204]
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 0x10a5953
and word [eax], 0
mov edi, dword [ebp - 0x408]
mov esi, dword [ebp - 0x418]
push edi
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0x40c]
call edi
pop ecx
pop ecx
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret
push dword [ebp - 0x40c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10a5971