Function at 0x4e6d70
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x864988
push 0x4fd4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, 0x378
mov dword [ebp - 0x398], edi
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4e6ddc
mov eax, 0xfffffcdd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x394]
push ecx
push ebx
push ebx
push str.PackedCatalogItem
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e7003
cmp dword [ebp - 0x398], edi
jne 0x4e7003
lea eax, [ebp - 0x290]
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x268], 1
jne 0x4e6fe2
cmp dword [ebp - 0x244], 2
jne 0x4e6fe2
mov ecx, dword [ebp - 0x26c]
push ecx
push 0x885584
lea edx, [ebp - 0x3b4]
push edx
call fcn.004fcd8e
add esp, 0xc
cmp dword [ebp + 0x10], ebx
push 1
push str.SYSTEMCurrentControlSetServicesWinSock2NaturalPacket
push reloc.OLEAUT32.dll_SysReAllocString
jne 0x4e6f2b
lea edi, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x3b4]
push ecx
mov ecx, esi
call fcn.004e7100
test eax, eax
jne 0x4e6eb8
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.004fb4da
add esp, 8
mov eax, 0xfffffcda
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x394]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
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 ecx, dword [ebp - 0x398]
push ecx
lea edx, [ebp - 0x394]
push edx
push 3
push ebx
push str.PackedCatalogItem
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4e6fe2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.004fb4da
add esp, 8
mov eax, 0xfffffcd9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x104
lea edx, [ebp - 0x4b8]
push edx
lea eax, [ebp - 0x3b4]
push eax
mov ecx, esi
call fcn.004e7040
test eax, eax
jne 0x4e6f6f
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.004fb4da
add esp, 8
mov eax, 0xfffffcdb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [ebp - 0x4b8]
lea edx, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
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 ecx, dword [ebp - 0x398]
push ecx
lea edx, [ebp - 0x394]
push edx
push 3
push ebx
push str.PackedCatalogItem
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4e6fe2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.004fb4da
add esp, 8
mov eax, 0xfffffcd9
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.004e7029
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.004fb4da
add esp, 8
mov eax, 0xfffffcdb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc