Function at 0x4b8620
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
call fcn.004f266a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x30], ebx
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x2d0]
lea edx, [ebp - 0x5d0]
push ecx
push str._s_system32drivers
push edx
call fcn.004f175f
lea edi, [ebp - 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x2c], edx
cmp eax, edx
jge 0x4b86b7
mov cl, byte [ebp + eax - 0x2d0]
cmp cl, 0x5c
mov byte [ebp + eax - 0x50], cl
je 0x4b86b7
inc eax
jmp 0x4b86a0
mov byte [ebp + eax - 0x4f], 0
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x3d0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x3d0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 0x1c], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
push closesocket
mov eax, str.SYSTEMCurrentControlSetServices
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b8a63
mov edx, dword [ebp - 0x28]
push 0
push 0
mov eax, 0x80
push 0
lea ecx, [ebp - 0x34]
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
mov dword [ebp - 0x38], esi
je 0x4b8a50
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push ecx
push closesocket
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x4d0]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.ObjectName
push eax
mov dword [ebp - 0x14], 1
call edi
test eax, eax
je 0x4b8a46
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x4b8a46
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x150]
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x4b8822
xor eax, eax
cmp eax, edi
jge 0x4b881a
mov dl, byte [ebp + eax - 0x14f]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x4b8805
mov byte [ebp + edi - 0x152], 0
cmp byte [ebp - 0x150], 0x25
jne 0x4b8997
cmp byte [ebp - 0x14f], 0x50
jne 0x4b8868
lea eax, [edi + 1]
test eax, eax
jle 0x4b8850
mov cl, byte [ebp + eax - 0x150]
mov byte [ebp + eax - 0x14e], cl
dec eax
jmp 0x4b883b
xor eax, eax
cmp eax, 0x10
jge 0x4b8868
mov dl, byte [ebp + eax - 0x3d0]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x4b8852
cmp byte [ebp - 0x14f], 0x70
jne 0x4b88a1
lea eax, [edi + 1]
test eax, eax
jle 0x4b8889
mov cl, byte [ebp + eax - 0x150]
mov byte [ebp + eax - 0x14e], cl
dec eax
jmp 0x4b8874
xor eax, eax
cmp eax, 0x10
jge 0x4b88a1
mov dl, byte [ebp + eax - 0x3d0]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x4b888b
cmp byte [ebp - 0x14f], 0x53
jne 0x4b890a
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4b88ca
mov cl, byte [ebp + eax - 0x150]
inc edx
mov byte [ebp + eax - 0x1dc], cl
inc eax
jmp 0x4b88b1
xor eax, eax
mov esi, dword [ebp - 0x2c]
cmp eax, esi
jge 0x4b88e4
mov cl, byte [ebp + eax - 0x2d0]
mov byte [ebp + eax - 0x150], cl
inc eax
jmp 0x4b88cc
xor eax, eax
cmp eax, edx
jge 0x4b88fe
mov bl, byte [ebp + eax - 0x1d0]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x150], bl
jmp 0x4b88e6
add edx, esi
mov byte [ebp + edx - 0x150], 0
jmp 0x4b890d
mov esi, dword [ebp - 0x2c]
cmp byte [ebp - 0x14f], 0x73
jne 0x4b8971
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x4b8936
mov cl, byte [ebp + eax - 0x150]
inc edx
mov byte [ebp + eax - 0x19c], cl
inc eax
jmp 0x4b891d
xor eax, eax
cmp eax, esi
jge 0x4b894d
mov cl, byte [ebp + eax - 0x2d0]
mov byte [ebp + eax - 0x150], cl
inc eax
jmp 0x4b8938
xor eax, eax
cmp eax, edx
jge 0x4b8967
mov bl, byte [ebp + eax - 0x190]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x150], bl
jmp 0x4b894f
add edx, esi
mov byte [ebp + edx - 0x150], 0
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x151]
mov cl, byte [ebp + ecx - 0x151]
cmp cl, 0x5c
jne 0x4b8997
mov byte [eax], 0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x4d0]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.Start
push edx
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b89dd
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
and eax, 0xff
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x150]
push eax
shl ebx, 8
call fcn.004fa6c0
mov ecx, dword [ebp + 8]
mov edi, eax
xor eax, eax
lea edx, [ebx + ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0xf2336c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, str.SYSTEMCurrentControlSetServices
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
push ecx
push eax
push str.HKLM_s_s
push edx
call fcn.004f175f
mov eax, dword [ebp - 0x1c]
add esp, 0x14
inc eax
cmp eax, 0xff
mov dword [ebp - 0x1c], eax
jg 0x4b8a63
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x28]
inc ecx
cmp esi, 0x103
mov dword [ebp - 0x28], ecx
jne 0x4b8739
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov dword [0xf3f478], eax
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret