Function at 0x441870
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5600
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.QMIEProtect.sys
lea ecx, [ebp - 0x34]
call fcn.0041c970
mov dword [ebp - 4], 0
cmp dword [0x515c70], 0
jne 0x4418e6
mov dword [0x515c70], 1
call fcn.0048fb70
cmp eax, 8
jne 0x4418e6
call fcn.00488a30
cmp eax, 0x3839
jl 0x4418e6
mov dword [0x515c6c], 1
jmp 0x4418ef
cmp dword [0x515c6c], 0
je 0x4418fe
push 0x12
push str.QMIEProtect_ev.sys
lea ecx, [ebp - 0x34]
call fcn.0041ccd0
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesQMIEProtect
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or edi, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x441b42
test eax, eax
je 0x44194a
push str.DeleteFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esi + 4]
lea eax, [esi + 4]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x441970
xor ecx, ecx
jmp 0x441984
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x441975
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00439160
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0048e680
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmovae ebx, dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4419e5
mov edx, ebx
lea ecx, [edx + 2]
mov dword [ebp - 0x38], ecx
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4419c0
sub edx, dword [ebp - 0x38]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push ebx
push 1
push 0
push str.InstallDir
push eax
call esi
push dword [ebp - 0x3c]
mov edx, 0x4f0364
lea ecx, [ebp - 0x30]
call fcn.00438410
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00421dd0
add esp, 8
mov ebx, dword [eax]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x441a45
mov edx, ebx
lea ecx, [edx + 2]
mov dword [ebp - 0x3c], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x441a20
sub edx, dword [ebp - 0x3c]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push ebx
push 1
push 0
push str.ImagePath
push eax
call esi
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x441a5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x441a7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x441aa0
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push 0
push str.ErrorControl
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 2
test eax, eax
je 0x441ac0
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push 0
push str.Start
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 1
test eax, eax
je 0x441b14
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push 0
push str.Type
push eax
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x441b14
push 0x18
push str.QMIEProtect
push 1
push 0
push 0x4f03d0
push eax
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x441b14
push 4
push 0x4ee158
push 1
push 0
push str.autostart
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x441b2e
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433600
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
test eax, eax
je 0x441b4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x441b73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret