Function at 0x431090
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f5c6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ce4bc]
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 edi, ecx
mov dword [ebp - 0x48], edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x50], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
test esi, esi
je 0x4312ce
cmp esi, 0xffffffff
je 0x4312ce
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00430770
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00412130
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x431160
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431156
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x431156
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x4a96dc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401cd0
push 0xc
push str.LocalService
lea ecx, [ebp - 0x40]
call fcn.00401cd0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push dword [edi + 0x1c]
push 0xf01ff
push str.WPS_Office_Cloud_Service
push str.wpscloudsvr
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
mov dword [ebp - 0x54], edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.00401af0
test edi, edi
je 0x4312a9
cmp edi, 0xffffffff
je 0x4312a9
mov ecx, dword [ebp - 0x48]
call fcn.0042fbc0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
push eax
push edi
call fcn.00431310
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x431224
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x43122e
push eax
call ecx
push dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push 0x65
push eax
call fcn.004115b0
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x431296
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43128c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43128c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
push edi
call ebx
push esi
call ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
call edi
jmp 0x4312eb
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test edi, edi
je 0x4312e5
cmp edi, 0xffffffff
je 0x4312e5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x4312eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test esi, esi
je 0x4312ee
cmp esi, 0xffffffff
je 0x4312ee
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call edi
mov eax, ebx
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.0049901c
mov esp, ebp
pop ebp
ret