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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x7c0
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [esp + 0x7b8], eax
lea ecx, [esp + 0x44]
mov dword [ecx], 0xffffffff
xor edi, edi
lea eax, [esp + 0x40]
mov dword [eax], edi
sub esp, 0x24
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
movaps xmm0, xmmword [0x101b13f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esp + 4], 0
test eax, eax
je 0x1013caa9
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1013ca8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 4]
and bl, 1
mov ecx, dword [esp + 0x7b8]
xor ecx, ebp
call fcn.101465a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0x208
lea eax, [esp + 0x5b0]
push ebx
push edi
push eax
call fcn.10149430
add esp, 0xc
lea eax, [esp + 0x3a8]
push ebx
push edi
push eax
call fcn.10149430
add esp, 0xc
lea eax, [esp + 0x2e0]
push 0xc8
push edi
push eax
call fcn.10149430
add esp, 0xc
lea eax, [esp + 0xd8]
push ebx
push edi
push eax
call fcn.10149430
add esp, 0xc
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movaps xmmword [eax + 0x70], xmm0
movaps xmmword [eax + 0x60], xmm0
movaps xmmword [eax + 0x50], xmm0
movaps xmmword [eax + 0x40], xmm0
movaps xmmword [eax + 0x30], xmm0
movaps xmmword [eax + 0x20], xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
lea eax, [esp + 0x38]
mov dword [eax + 4], edi
mov dword [eax], edi
lea eax, [esp + 0x34]
mov dword [eax], edi
lea eax, [esp + 0x30]
mov dword [eax], edi
lea eax, [esp + 0x2c]
mov dword [eax], 0x104
lea eax, [esp + 0x28]
mov dword [eax], edi
lea eax, [esp + 0x24]
mov dword [eax], edi
lea eax, [esp + 0x48]
mov dword [eax], edi
mov word [eax + 4], 0
mov dword [esp + 4], 0
xor ecx, ecx
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x3c]
push eax
lea ebx, [esp + 0x5c4]
push ebx
mov dword [esp + 0x20], ecx
push ecx
push dword [esp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1013ca7b
xor eax, eax
mov edi, 0x208
push edi
push eax
lea esi, [esp + 0x3b0]
push esi
call fcn.10149430
add esp, 0xc
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
xor edi, edi
push edi
push ebx
call fcn.10149430
add esp, 0xc
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x34], edi
sub esp, 0x24
lea eax, [esp + 0x68]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
movaps xmm0, xmmword [0x101b13f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013ca7b
mov esi, dword [esp + 0x34]
test esi, esi
je 0x1013ccff
push 0xc8
push edi
lea ebx, [esp + 0x2e8]
push ebx
call fcn.10149430
add esp, 0xc
mov dword [esp + 0x30], 0x64
lea eax, [esp + 0x30]
push eax
push ebx
push edi
push edi
push str.ServiceName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1013cd01
mov dword [esp + 0xc], esi
push 0x208
push edi
lea esi, [esp + 0xe0]
push esi
call fcn.10149430
add esp, 0xc
push str.._
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
call esi
push ebx
lea eax, [esp + 0xdc]
push eax
call esi
mov dword [esp + 0x20], 0xffffffff
sub esp, 0x1c
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
movaps xmm0, xmmword [0x101b1400]
movups xmmword [esp + 4], xmm0
lea eax, [esp + 0xf4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
push eax
call fcn.1003b3a4
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x1013cd13
lea ecx, [esp + 0x20]
call fcn.1003b3e0
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
jmp 0x1013cd05
xor esi, esi
mov ecx, dword [esp + 8]
inc ecx
test esi, esi
je 0x1013cb61
jmp 0x1013ca7b
mov dword [esp + 0x24], 0x1010101
mov dword [esp + 0x28], edi
push edi
lea ecx, [esp + 0x2c]
push ecx
push 6
lea ecx, [esp + 0x54]
push ecx
push 4
lea ecx, [esp + 0x38]
push ecx
push 0x170002
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1013ccec
cmp dword [esp + 0x28], 0
je 0x1013ccec
mov dword [esp + 0x24], 0x10202
mov dword [esp + 0x1c], edi
push edi
lea eax, [esp + 0x2c]
push eax
mov eax, 4
push eax
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
push 0x170002
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx esi, byte [esp + 0x4d]
movzx ecx, byte [esp + 0x4c]
movzx edx, byte [esp + 0x4b]
movzx ebx, byte [esp + 0x4a]
movzx eax, byte [esp + 0x49]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0x48]
push esi
lea esi, [esp + 0x54]
push ecx
push edx
push ebx
push dword [esp + 0x14]
push eax
push str._02X__02X__02X__02X__02X__02X
push 0xffffffffffffffff
push 0x40
push esi
call fcn.1007db00
add esp, 0x28
cmp dword [esp + 0x1c], 9
jne 0x1013cddc
lea ebx, [esp + 0x10]
mov ecx, ebx
push esi
call fcn.100349a0
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.1013d062
jmp 0x1013ce21
lea ecx, [esp + 0x10]
push esi
call fcn.100349a0
push 0x14
call fcn.10145ba4
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
movsd xmm0, qword [esp + 0x10]
movsd qword [eax + 8], xmm0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov dword [edx + 4], eax
inc dword [edx + 8]
cmp byte [esp + 0x1b], 0
jns 0x1013ce34
push dword [esp + 0x10]
call fcn.10145bd4
add esp, 4
mov al, 1
mov dword [esp + 4], eax
jmp 0x1013ccec