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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
or eax, 0xffffffff
mov dword [ebp - 0x10c], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x110]
push eax
push esi
push 1
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
call fcn.004ea790
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
call fcn.004ea870
add esp, 0x18
test al, al
je 0x4eb01a
mov edx, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x110]
push edi
mov edi, edx
shr edi, 2
cmp byte [ebp + 0xc], 0
je 0x4ead97
mov esi, dword [ebp - 0x10c]
test ecx, ecx
je 0x4ead76
mov eax, 1
cmp edi, eax
jbe 0x4ead11
cmp dword [esi + eax*4], ecx
je 0x4eacec
inc eax
cmp eax, edi
jb 0x4eace0
jmp 0x4ead11
cmp eax, 0xffffffff
je 0x4ead11
sub edi, eax
lea ecx, [esi + eax*4]
lea eax, [edi*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.004ee270
mov edx, dword [ebp - 0x114]
add esp, 0xc
lea eax, [ebp - 0x10c]
sub edx, 4
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x114], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ead76
mov eax, dword [ebp - 0x114]
cmp eax, 4
jbe 0x4ead4a
shr eax, 2
dec eax
jmp 0x4ead4c
xor eax, eax
mov dword [esi], eax
push dword [ebp - 0x114]
push esi
push 3
push 0
push str.PNP_TDI
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4eb019
push esi
call fcn.004eb8b8
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10c]
test ecx, ecx
jne 0x4eaddd
mov eax, 1
cmp edi, eax
jbe 0x4eadc5
jmp 0x4eadb0
mov edx, dword [ebx + eax*4]
cmp edx, ecx
jb 0x4eadc0
lea ecx, [edx + 1]
mov dword [ebp - 0x110], ecx
inc eax
cmp eax, edi
jb 0x4eadb0
lea eax, [ebp - 0x110]
push eax
push esi
push 0
call fcn.004ea790
mov ecx, dword [ebp - 0x110]
add esp, 0xc
mov eax, 1
cmp edi, eax
jbe 0x4eadf8
cmp dword [ebx + eax*4], ecx
je 0x4eadf2
inc eax
cmp eax, edi
jb 0x4eade6
jmp 0x4eadf8
mov dword [ebp - 0x118], eax
push 0x514e20
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004f0f7b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4eae88
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 4
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0x514dec
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
test al, al
jne 0x4eaf01
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.Tcpip
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004f0f7b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eaf01
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 4
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0x514dec
push dword [ebp - 0x10c]
call esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x4eaf1e
mov eax, 1
cmp edi, eax
jbe 0x4eaf1e
cmp dword [ebx + eax*4], ecx
je 0x4eaf6c
inc eax
cmp eax, edi
jb 0x4eaf14
or ecx, 0xffffffff
mov eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x4eaf70
cmp ecx, 0xffffffff
je 0x4eafaf
cmp ecx, eax
jae 0x4eb00b
sub eax, ecx
cmp eax, 1
jbe 0x4eb00b
lea eax, [eax*4 - 4]
push eax
lea esi, [ebx + 4]
lea esi, [esi + ecx*4]
lea eax, [ebx + 8]
lea eax, [eax + ecx*4]
push esi
push eax
call fcn.004ee270
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov dword [esi], eax
jmp 0x4eafaf
mov ecx, eax
jmp 0x4eaf21
cmp ecx, 0xffffffff
je 0x4eaf9f
sub edi, ecx
lea esi, [ebx + 4]
lea esi, [esi + ecx*4]
lea eax, [edi*4 - 4]
push eax
lea eax, [ebx + 8]
lea eax, [eax + ecx*4]
push esi
push eax
call fcn.004ee270
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov dword [esi], eax
jmp 0x4eafa8
mov eax, dword [ebp - 0x110]
mov dword [ebx + edi*4], eax
add dword [ebp - 0x114], 4
lea eax, [ebp - 0x118]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eb00b
mov eax, dword [ebp - 0x114]
cmp eax, 4
jbe 0x4eafdf
shr eax, 2
dec eax
jmp 0x4eafe1
xor eax, eax
mov dword [ebx], eax
push dword [ebp - 0x114]
push ebx
push 3
push 0
push str.PNP_TDI
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4eb018
push ebx
call fcn.004eb8b8
add esp, 4
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret