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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d1e0
push 0x100066b4
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 0x1000550c
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 0x10005733
cmp dword [ebp - 0x398], edi
jne 0x10005733
lea eax, [ebp - 0x290]
mov dword [ebp - 0x39c], eax
cmp dword [ebp - 0x268], 1
jne 0x10005712
cmp dword [ebp - 0x244], 2
jne 0x10005712
mov ecx, dword [ebp - 0x26c]
push ecx
push 0x1000f508
lea edx, [ebp - 0x3b4]
push edx
call fcn.100059b3
add esp, 0xc
cmp dword [ebp + 0x10], ebx
push 1
push str.SYSTEMCurrentControlSetServicesWinSock2WinSock2
push connect
jne 0x1000565b
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.10005830
test eax, eax
jne 0x100055e8
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.100060fe
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 0x10005712
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.100060fe
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.10005770
test eax, eax
jne 0x1000569f
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.100060fe
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 0x10005712
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.100060fe
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.10005759
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.100060fe
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