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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x425590
push edi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00439ab0
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x7f0]
add esp, 0xc
push eax
push 0x208
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x425545
push ebx
xor ebx, ebx
mov dword [ebp - 0x7f4], 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x7f4]
mov dword [ebp - 0x7ec], ebx
push eax
lea eax, [ebp - 0x3d8]
push eax
push ebx
push dword [ebp - 0x7f0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x425538
lea eax, [ebp - 0x7fc]
push eax
push 0x201
push 0
lea eax, [ebp - 0x3d8]
push eax
push dword [ebp - 0x7f0]
call edi
test eax, eax
jne 0x4254fc
lea eax, [ebp - 0x800]
mov dword [ebp - 0x804], 1
push eax
lea eax, [ebp - 0x5e0]
mov dword [ebp - 0x800], 0x208
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x7fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4254f0
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00439ab0
lea eax, [ebp - 0x5e0]
push eax
push str.._s
lea eax, [ebp - 0x7e8]
push 0x208
push eax
call fcn.004259a0
add esp, 0x1c
lea eax, [ebp - 0x7e8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4254ea
xor ebx, ebx
mov dword [ebp - 0x808], 0x1010101
push ebx
lea eax, [ebp - 0x7f8]
mov dword [ebp - 0x7f8], 0
push eax
push 0x104
lea eax, [ebp - 0x1d0]
push eax
push 4
lea eax, [ebp - 0x808]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x425486
cmp dword [ebp - 0x7f8], ebx
jbe 0x425486
movzx eax, byte [ebp - 0x1cb]
push eax
movzx eax, byte [ebp - 0x1cc]
push eax
movzx eax, byte [ebp - 0x1cd]
push eax
movzx eax, byte [ebp - 0x1ce]
push eax
movzx eax, byte [ebp - 0x1cf]
push eax
movzx eax, byte [ebp - 0x1d0]
push eax
push str._02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.0041b740
add esp, 0x24
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4254e4
cmp byte [ebp - 0x68], 0
je 0x4254ac
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x4254e4
lea eax, [ebp - 0x68]
mov edx, 0x64
lea edi, [ebp - 0xcc]
mov ecx, eax
sub edi, ecx
nop
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x4254d9
mov cl, byte [edi + eax]
test cl, cl
je 0x4254d9
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4254c0
test edx, edx
lea ecx, [eax - 1]
cmovne ecx, eax
mov byte [ecx], 0
mov ebx, dword [ebp - 0x7ec]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x7fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x7f4]
mov dword [ebp - 0x7f4], 0x104
push eax
lea eax, [ebp - 0x3d8]
inc ebx
push eax
push ebx
push dword [ebp - 0x7f0]
mov dword [ebp - 0x7ec], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x425331
push dword [ebp - 0x7f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
cmp byte [ebp - 0x68], 0
pop edi
je 0x425590
lea edx, [ebp - 0x68]
mov ecx, 0x64
sub edx, esi
lea eax, [ecx + 0x7fffff9a]
test eax, eax
je 0x42556f
mov al, byte [edx + esi]
test al, al
je 0x42556f
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x425556
test ecx, ecx
lea eax, [esi - 1]
cmovne eax, esi
pop esi
mov byte [eax], 0
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004378e6
mov esp, ebp
pop ebp
ret