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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693277
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa58
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xa11], dl
mov esi, ecx
mov dword [ebp - 0xa30], esi
mov dword [ebp - 0xa20], esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.__._6A8DCD5A_CB21_4FFB_BA2D_622381D69E3C
mov dword [ebp - 0xa20], esi
mov dword [ebp - 0xa28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xa44], edi
cmp edi, 0xffffffff
jne 0x41040d
mov dword [ebp - 0xa58], 0
mov dword [ebp - 0xa54], 0
mov dword [ebp - 0xa50], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c8]
push 0x39
xorps xmm0, xmm0
mov dword [ebp - 0x9b8], 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
movups xmmword [ebp - 0x9c8], xmm0
mov dword [ebp - 0x9b4], 0
call fcn.00402060
xorps xmm0, xmm0
mov dword [ebp - 0x9a0], 0
xor eax, eax
mov dword [ebp - 0x99c], 7
movups xmmword [ebp - 0x9b0], xmm0
mov word [ebp - 0x9b0], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa1c]
cmp dword [ebp - 0x9b4], 7
lea eax, [ebp - 0x9c8]
push ecx
cmova eax, dword [ebp - 0x9c8]
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410345
mov eax, dword [ebp - 0xa1c]
xor esi, esi
mov dword [ebp - 0xa58], eax
mov dword [ebp - 0xa54], 0
nop dword [eax + eax]
push 0x800
lea eax, [ebp - 0x998]
push 0
push eax
call fcn.0053fb70
add esp, 0xc
mov dword [ebp - 0xa24], 0x800
lea eax, [ebp - 0xa64]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x998]
push eax
push esi
push dword [ebp - 0xa1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41023b
inc esi
mov dword [ebp - 0xa2c], esi
xor esi, esi
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], esi
mov dword [ebp - 0xa34], esi
mov byte [ebp - 4], 3
mov eax, bind
mov ecx, dword [ebp - 0x9b8]
sub eax, ecx
cmp eax, 1
jb 0x41052e
cmp dword [ebp - 0x9b4], 7
lea eax, [ebp - 0x9c8]
push 1
cmova eax, dword [ebp - 0x9c8]
push 0x735d18
push ecx
push eax
lea eax, [ebp - 0x9c8]
push eax
push dword [ebp - 0xa20]
lea ecx, [ebp - 0xa10]
call fcn.00402140
mov edi, dword [ebp - 0xa28]
or edi, 2
lea ecx, [ebp - 0x998]
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe50
sub ecx, edx
lea eax, [ebp - 0x998]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa10]
call fcn.004021f0
mov dword [ebp - 0x9d0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x9e0], xmm0
mov dword [ebp - 0x9cc], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
mov dword [ebp - 0xa18], ecx
or edi, 4
mov dword [ebp - 0xa28], edi
movups xmmword [ebp - 0x9e0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x9d0], xmm0
mov word [eax], cx
lea ecx, [ebp - 0xa18]
push ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
lea eax, [ebp - 0x9e0]
cmp dword [ebp - 0x9cc], 7
push 0x2001f
cmova eax, dword [ebp - 0x9e0]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ff0d
mov esi, dword [ebp - 0xa18]
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], eax
mov ecx, dword [ebp - 0x9cc]
xor edi, edi
test eax, eax
cmovne edi, eax
cmp ecx, 7
jbe 0x40ff54
mov edx, dword [ebp - 0x9e0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ff4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x9fc]
mov dword [ebp - 0x9d0], 0
mov dword [ebp - 0x9cc], 7
mov word [ebp - 0x9e0], ax
cmp ecx, 7
jbe 0x40ffb5
mov edx, dword [ebp - 0xa10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ffab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
test edi, edi
je 0x40ffe9
test esi, esi
je 0x40ffce
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa3c], 0
mov edi, dword [ebp - 0xa44]
mov esi, dword [ebp - 0xa2c]
mov dword [ebp - 0xa38], 0
jmp 0x40fd80
push 0x800
lea eax, [ebp - 0x998]
push 0
push eax
call fcn.0053fb70
add esp, 0xc
mov dword [ebp - 0xa18], 0x1000
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa24], 0
push eax
lea eax, [ebp - 0x998]
push eax
lea eax, [ebp - 0xa4c]
push eax
push 0
push str.ServiceName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41007b
mov eax, dword [ebp - 0xa4c]
cmp eax, 1
je 0x41004a
cmp eax, 2
jne 0x41007b
mov ecx, dword [ebp - 0xa18]
test ecx, ecx
je 0x41006a
test cl, 1
jne 0x41007b
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x99a], 0
je 0x410073
jmp 0x41007b
xor eax, eax
mov word [ebp - 0x998], ax
shr ecx, 1
mov dword [ebp - 0xa24], ecx
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x9e8], 0
push str.__._
lea ecx, [ebp - 0x9f8]
mov dword [ebp - 0x9e4], 0
movups xmmword [ebp - 0x9f8], xmm0
call fcn.00402060
lea ecx, [ebp - 0x998]
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4100c0
sub ecx, edx
lea eax, [ebp - 0x998]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x9f8]
call fcn.004021f0
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x99c]
movq qword [ebp - 0xa48], xmm1
movups xmmword [ebp - 0x9d8], xmm0
cmp ecx, 7
jbe 0x41015b
mov edx, dword [ebp - 0x9b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410142
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
movups xmm0, xmmword [ebp - 0x9d8]
add esp, 8
movq xmm1, qword [ebp - 0xa48]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x9e4]
movq qword [ebp - 0x9a0], xmm1
movups xmmword [ebp - 0x9b0], xmm0
cmp ecx, 7
jbe 0x4101ae
mov edx, dword [ebp - 0x9f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4101a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
push 0
push 0
push 3
xor eax, eax
mov dword [ebp - 0x9e8], 0
cmp dword [ebp - 0x99c], 7
push 0
mov word [ebp - 0x9f8], ax
lea eax, [ebp - 0x9b0]
cmova eax, dword [ebp - 0x9b0]
push 3
push SysReAllocStringLen
push eax
mov dword [ebp - 0x9e4], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xa44], edi
cmp edi, 0xffffffff
jne 0x41022c
test esi, esi
je 0x410217
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa3c], 0
mov esi, dword [ebp - 0xa2c]
mov dword [ebp - 0xa38], 0
jmp 0x40fd80
test esi, esi
je 0x41023b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x410241
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x99c]
cmp ecx, 7
jbe 0x410285
mov edx, dword [ebp - 0x9b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41027b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x9a0], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x9b4]
mov dword [ebp - 0x99c], 7
mov word [ebp - 0x9b0], ax
cmp ecx, 7
jbe 0x4102e5
mov edx, dword [ebp - 0x9c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4102db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x9c8], ax
mov eax, dword [ebp - 0xa1c]
mov dword [ebp - 0x9b8], 0
mov dword [ebp - 0x9b4], 7
test eax, eax
je 0x410316
push eax
call esi
mov esi, dword [ebp - 0xa30]
cmp edi, 0xffffffff
jne 0x41040d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 0x735258
jmp 0x410507
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x735258
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00402060
mov ecx, dword [ebp - 0x99c]
cmp ecx, 7
jbe 0x4103a7
mov edx, dword [ebp - 0x9b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41039d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov ecx, dword [ebp - 0x9b4]
xor eax, eax
mov dword [ebp - 0x9a0], 0
mov dword [ebp - 0x99c], 7
mov word [ebp - 0x9b0], ax
cmp ecx, 7
jbe 0x41050e
mov edx, dword [ebp - 0x9c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4103fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410533
push ecx
push edx
call fcn.0048a4f6
add esp, 8
jmp 0x41050e
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 0xa20], 0x1010101
push 0
push eax
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0x198]
push 0x80
push 0
push eax
call fcn.0053fb70
add esp, 0xc
lea eax, [ebp - 0xa5c]
push 0
push eax
push 0x100
lea eax, [ebp - 0x118]
push eax
push 4
lea eax, [ebp - 0xa20]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4104c5
cmp byte [ebp - 0xa11], 1
movzx eax, byte [ebp - 0x113]
push eax
movzx eax, byte [ebp - 0x114]
push eax
movzx eax, byte [ebp - 0x115]
push eax
movzx eax, byte [ebp - 0x116]
push eax
movzx eax, byte [ebp - 0x117]
push eax
movzx eax, byte [ebp - 0x118]
push eax
lea eax, [ebp - 0x198]
jne 0x4104b7
push str._02X__02X__02X__02X__02X__02X
jmp 0x4104bc
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00410f70
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea ecx, [ebp - 0x198]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4104f0
sub ecx, edx
lea eax, [ebp - 0x198]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401460
call fcn.00543627
int3