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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4370
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.0041c9e0
mov dword [ebp - 4], 0
cmp dword [0x515bf0], 0
jne 0x4406b6
mov dword [0x515bf0], 1
call fcn.0048ea70
cmp eax, 8
jne 0x4406b6
call fcn.00487450
cmp eax, 0x3839
jl 0x4406b6
mov dword [0x515bec], 1
jmp 0x4406bf
cmp dword [0x515bec], 0
je 0x4406ce
push 0x12
push str.QMIEProtect_ev.sys
lea ecx, [ebp - 0x34]
call fcn.0041cd40
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 0x440912
test eax, eax
je 0x44071a
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 0x440740
xor ecx, ecx
jmp 0x440754
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440745
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004393e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0048d580
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 0x4407b5
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 0x440790
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, 0x4ef314
lea ecx, [ebp - 0x30]
call fcn.00438690
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00422020
add esp, 8
mov ebx, dword [eax]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x440815
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 0x4407f0
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 0x44082f
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 0x44084d
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 0x440870
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 0x440890
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 0x4408e4
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 0x4408e4
push 0x18
push str.QMIEProtect
push 1
push 0
push 0x4ef380
push eax
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4408e4
push 4
push 0x4ed1c8
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 0x4408fe
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00433850
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 0x44091d
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 0x440943
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.004a474b
mov esp, ebp
pop ebp
ret