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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc520
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x24c4
call fcn.004f2630
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x24d4]
xor esi, esi
push eax
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], esi
call fcn.004c6c30
add esp, 8
xor ebx, ebx
push 0x100
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x28]
jge 0x4c73bb
shl eax, 7
lea edx, [ebp + eax - 0x24d4]
lea eax, [ebp - 0x4d4]
push edx
push str._sSYSTEMCurrentControlSetServices
push eax
call fcn.004f175f
add esp, 0xc
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x20], esi
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x2d4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x14], edx
cmp eax, edx
jge 0x4c7044
mov cl, byte [ebp + eax - 0x2d4]
cmp cl, 0x5c
mov byte [ebp + eax - 0x54], cl
je 0x4c7044
inc eax
jmp 0x4c702d
mov byte [ebp + eax - 0x53], 0
lea edi, [ebp - 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x3d4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x3d4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
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]
mov ecx, edx
lea eax, [ebp - 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
lea ecx, [ebp - 0x4d4]
push 0
push ecx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c73a3
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push 0
mov eax, 0x80
push 0
push 0
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
push 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
cmp edi, 0x103
mov dword [ebp - 0x3c], edi
je 0x4c7390
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
push closesocket
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + ebx*2]
shl ecx, 7
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp + ecx - 0x24d4]
mov dword [ebp - 0x30], 1
shl eax, 7
push edx
add eax, esi
push str.HKU_sSYSTEMCurrentControlSetServices_s
push eax
mov dword [ebp - 0x24], 0x80
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x154]
lea eax, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
push edx
push eax
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c7380
lea edi, [ebp - 0x154]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x154]
mov byte [ebp - 4], 1
not ecx
dec ecx
cmp al, 0x22
mov esi, ecx
jne 0x4c71bd
xor eax, eax
cmp eax, esi
jge 0x4c71b5
mov dl, byte [ebp + eax - 0x153]
mov byte [ebp + eax - 0x154], dl
inc eax
jmp 0x4c71a0
mov byte [ebp + esi - 0x156], 0
cmp byte [ebp - 0x154], 0x25
jne 0x4c7338
cmp byte [ebp - 0x153], 0x50
jne 0x4c7203
lea eax, [esi + 1]
test eax, eax
jle 0x4c71eb
mov cl, byte [ebp + eax - 0x154]
mov byte [ebp + eax - 0x152], cl
dec eax
jmp 0x4c71d6
xor eax, eax
cmp eax, 0x10
jge 0x4c7203
mov dl, byte [ebp + eax - 0x3d4]
mov byte [ebp + eax - 0x154], dl
inc eax
jmp 0x4c71ed
cmp byte [ebp - 0x153], 0x70
jne 0x4c723c
lea eax, [esi + 1]
test eax, eax
jle 0x4c7224
mov cl, byte [ebp + eax - 0x154]
mov byte [ebp + eax - 0x152], cl
dec eax
jmp 0x4c720f
xor eax, eax
cmp eax, 0x10
jge 0x4c723c
mov dl, byte [ebp + eax - 0x3d4]
mov byte [ebp + eax - 0x154], dl
inc eax
jmp 0x4c7226
cmp byte [ebp - 0x153], 0x53
jne 0x4c72a7
xor edx, edx
mov eax, 0xc
lea ecx, [esi + 1]
cmp eax, ecx
jg 0x4c7265
mov cl, byte [ebp + eax - 0x154]
inc edx
mov byte [ebp + eax - 0x1e0], cl
inc eax
jmp 0x4c724c
xor eax, eax
cmp eax, dword [ebp - 0x14]
jge 0x4c727d
mov cl, byte [ebp + eax - 0x2d4]
mov byte [ebp + eax - 0x154], cl
inc eax
jmp 0x4c7267
xor eax, eax
cmp eax, edx
jge 0x4c729a
mov ecx, dword [ebp - 0x14]
lea edi, [ecx + eax]
mov cl, byte [ebp + eax - 0x1d4]
inc eax
mov byte [ebp + edi - 0x154], cl
jmp 0x4c727f
mov eax, dword [ebp - 0x14]
add edx, eax
mov byte [ebp + edx - 0x154], 0
cmp byte [ebp - 0x153], 0x73
jne 0x4c7312
xor edx, edx
mov eax, 0xc
lea ecx, [esi + 1]
cmp eax, ecx
jg 0x4c72d0
mov cl, byte [ebp + eax - 0x154]
inc edx
mov byte [ebp + eax - 0x1a0], cl
inc eax
jmp 0x4c72b7
xor eax, eax
cmp eax, dword [ebp - 0x14]
jge 0x4c72e8
mov cl, byte [ebp + eax - 0x2d4]
mov byte [ebp + eax - 0x154], cl
inc eax
jmp 0x4c72d2
xor eax, eax
cmp eax, edx
jge 0x4c7305
mov ecx, dword [ebp - 0x14]
lea esi, [ecx + eax]
mov cl, byte [ebp + eax - 0x194]
inc eax
mov byte [ebp + esi - 0x154], cl
jmp 0x4c72ea
mov eax, dword [ebp - 0x14]
add edx, eax
mov byte [ebp + edx - 0x154], 0
lea edi, [ebp - 0x154]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x155]
mov cl, byte [ebp + ecx - 0x155]
cmp cl, 0x5c
jne 0x4c7338
mov byte [eax], 0
lea ecx, [ebp - 0x154]
push ecx
call fcn.004fa6c0
mov ecx, dword [ebp + 8]
lea edx, [ebx + ebx*2]
shl edx, 7
mov edi, eax
xor eax, eax
lea edx, [edx + ecx + 0x80]
or ecx, 0xffffffff
add esp, 4
mov dword [ebp - 4], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x3c]
inc ebx
cmp ebx, 0x7f
je 0x4c73a3
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
inc ecx
cmp edi, 0x103
mov dword [ebp - 0x20], ecx
jne 0x4c70c4
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
inc eax
xor esi, esi
mov dword [ebp - 0x18], eax
jmp 0x4c6fdb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
push ecx
mov dword [eax], ebx
call fcn.004f265f
add esp, 4
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