Function at 0x457f9d
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
push str.QHService
lea ecx, [ebp - 0x14]
call fcn.00404be0
push str.QHService.exe
lea ecx, [ebp - 0x10]
call fcn.00404be0
push str.QHActiveDefense
lea ecx, [ebp - 0x20]
call fcn.00404be0
push str.QHActiveDefense.exe
lea ecx, [ebp - 8]
call fcn.00404be0
push 1
lea ecx, [ebp - 0x14]
call fcn.004018a0
push eax
call fcn.0045b9dd
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
call fcn.00457ded
add esp, 0x14
test eax, eax
je 0x458014
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
call fcn.00456746
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x4b6e68], bl
je 0x458051
call fcn.004539e9
mov dword [ebp - 0x1c], ebx
xor esi, esi
jmp 0x45803b
push 0x3e8
call edi
inc esi
cmp esi, 5
ja 0x458051
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call fcn.00457ded
add esp, 0xc
cmp eax, 1
je 0x45802e
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00457ded
add esp, 0xc
test eax, eax
je 0x458095
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
call fcn.00456746
xor esi, esi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.00457ded
add esp, 0xc
test eax, eax
je 0x458095
push 0x3e8
call edi
inc esi
cmp esi, 5
jl 0x458073
mov eax, dword [ebp - 0x18]
add eax, 0x5c
push str._safemonQHActiveDefense.exe
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404cd0
add esp, 0xc
push str.___install
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push 0x48f9f8
push eax
call fcn.00456b22
add esp, 0xc
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404cd0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004016d0
mov eax, dword [0x4b6a64]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov eax, dword [edi - 0xc]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00443de4
lea ecx, [ebp - 0x2c]
test al, al
jne 0x45814f
call fcn.0045692c
lea ecx, [edi - 0x10]
call fcn.004016d0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004016d0
xor al, al
pop edi
pop esi
pop ebx
leave
ret
call fcn.00456945
mov edi, dword [edi - 0xc]
mov esi, dword [ebp - 0x2c]
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0xc]
call fcn.004018a0
push eax
push esi
call fcn.00464ff0
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00464d20
xor eax, eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x3c], ebx
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x80], 0x44
push esi
mov dword [ebp - 0x54], 1
call fcn.0044412c
add esp, 0x40
test eax, eax
jne 0x4581d2
lea ecx, [ebp - 0x2c]
call fcn.0045692c
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004016d0
lea ecx, [esi - 0x10]
jmp 0x458117
mov byte [ebp - 1], bl
xor edi, edi
cmp byte [ebp - 1], bl
jne 0x4581fb
push 0x3e8
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
sete byte [ebp - 1]
cmp eax, 0xffffffff
je 0x4581fb
inc edi
cmp edi, 0xa
jl 0x4581d7
push dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x3c]
call edi
cmp byte [ebp - 1], bl
jne 0x45825e
lea ecx, [ebp - 0x2c]
call fcn.0045692c
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004016d0
lea ecx, [esi - 0x10]
call fcn.004016d0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004016d0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004016d0
mov al, bl
jmp 0x45814a
mov ecx, dword [ebp - 0x18]
push 2
mov edi, str.QHActiveDefense
push edi
call fcn.004567bb
push 0x20000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov byte [ebp - 1], bl
cmp esi, ebx
je 0x4582bf
push 0x20000010
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x4582bc
lea eax, [ebp - 0x24]
push eax
push 1
push edi
mov dword [ebp - 0x24], str.install
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4582b9
mov byte [ebp - 1], 1
push edi
call ebx
push esi
call ebx
mov bl, byte [ebp - 1]
mov esi, dword [ebp - 0x1c]
jmp 0x458210