Function at 0x4551c0
Capabilities:
Query or enumerate registry value
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2520
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53d9f8]
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
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4553ab
cmp esi, 0xffffffff
je 0x4553ab
push 0x14
push str.wpscloudsvr
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x6c], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x455397
cmp edi, 0xffffffff
je 0x455397
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x455397
push str.wpscloudsvr
lea ecx, [ebp - 0x40]
call fcn.00404c50
push 0x22
xor eax, eax
mov byte [ebp - 4], 2
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004033b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00403230
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x60]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000002
mov dword [ebp - 0x60], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455313
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0x208
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push str.Start
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x64]
cmp edx, 8
jb 0x455352
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455348
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x455348
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x45538e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x455384
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x455384
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
cmp ebx, 4
je 0x455397
mov bl, 1
jmp 0x455399
xor bl, bl
test edi, edi
je 0x4553ad
cmp edi, 0xffffffff
je 0x4553ad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4553ad
xor bl, bl
test esi, esi
je 0x4553bd
cmp esi, 0xffffffff
je 0x4553bd
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
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.004bee49
mov esp, ebp
pop ebp
ret